ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If I download the source for a program like .. gaim, I can do a normal ./configure && make && make install, but is there a way i can make a Windows binary with that source using GNU/Linux tools?
The short answer is no - the binary format used is not compatible with windows. You may be able to modify and compile it under windows (or wine?), I haven't tried it though.
Not on Linux, but on Windows you can install Cygwin and run many Linux applications in that environment, or you could install the Windows version of gcc and make on your system, the gtk libraries, and compile the application as a Windows binary. FYI, if you google for "gaim for windows" your first hit will be a precompiled Windows binary of gaim.
FYI, if you google for "gaim for windows" your first hit will be a precompiled Windows binary of gaim.
Yeah, I've noticed this.. but I also thought "the developers had to compile it, lets hope they did it through linux "
Just wondering... If they used a windows version of gcc to compile it in windows, why cant the linux gcc just run a -windows option or something? Wouldn't the gcc just write it in the "windows binary format" ?
Also, does that mean you would HAVE to compile a PPC application on a PPC platform? Not on x86 and move it over to PPC?
Also, does that mean you would HAVE to compile a PPC application on a PPC platform? Not on x86 and move it over to PPC?
Not sure, but I think you can compile for different architectures on the machine you're compiling on (and I think it's called cross-compiling). Again, I'm not sure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.