LINUX programming

Moderators: ITA
Number of threads: 1347
Number of posts: 2935

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
software not open-source Posted by tijoen on 18 Jan 2008 at 6:30 AM
Hi

If I build a server software in my Debian box, will it run on others Linux?

maybe it will need some libraries that aren't in the SO and show errors, right? maybe then I can add the libraries that I use into the executable while compiling?

My problem is:
I am building an application serverside that will run in windows and linux, it hasn't GUI, its just cmd type. I don't want it to have the source exposed, so I need to know how to let users use it in linux without having to expose my code.

THanks!
Joe
Report
Re: software not open-source Posted by nugent on 24 Jan 2008 at 4:12 PM
: Hi
:
: If I build a server software in my Debian box, will it run on others
: Linux?
:
: maybe it will need some libraries that aren't in the SO and show
: errors, right? maybe then I can add the libraries that I use into
: the executable while compiling?
:
: My problem is:
: I am building an application serverside that will run in windows and
: linux, it hasn't GUI, its just cmd type. I don't want it to have the
: source exposed, so I need to know how to let users use it in linux
: without having to expose my code.
:
: THanks!
: Joe

If it compiles on a debian system (or any other linux system) it should compile on any other linux distro if all the requirements are met such as external dependencies (external libraries that your software depends on) as the usual compiler on linux and other unixes is gcc (which should compile the same code on different system the same (if that makes sense))

As a side not you should be familiar with dynamic and static linking with libraries which gcc can do. With static linking the code from external libraries are copied into your program (which makes your binary bigger) whereas dynamic linking is basically done when your program is executed (which means smaller binaries, the libraries can be updated without changing (recompiling) your program, and your program can benefit from any improvements in the underlying libraries without recompiling your program)

But beware, when using external libraries you are subjected to their licensing conditions, a gpl library requires that your program is open source whereas a lgpl license does not require open source. Make sure you read and licenses carefully.



------
nugent




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.