Click here to Skip to main content
15,886,676 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Dear developers,

i have a C++ program which is written in QT, now the development stuff is done and it is compiled to be used inside windows but now i want to compile it for linux too.
but the thing is i don't know how to do it :-(

Note: I'm using QT 4.7.4 32 bit and mingw on windows 7.
Posted
Comments
Richard MacCutchan 19-Dec-12 8:11am    
Do you have access to a Linux system?

It looks using a Linux virtual machine would be the easy path, see the following discussion: http://qt-project.org/forums/viewthread/16474[^].
 
Share this answer
 
v2
Well... set up your compiler to and IDE onto your Linux machine (if you use an IDE). Now, you'll have to rebuild your Qt libraries for Linux, that should be in their documentation (although I have noticed their documentation kind of sucks). Once you have built the libraries, configure your IDE (or makefile) to compile your project using the Qt libraries.

As a sidenote, IDE's work with the compiler by essentially making a makefile (or similar) that is then fed to the compiler to tell it what to compile and what options to use (same with linker). You'll have to essentially recompile/link Qt and your project on your Linux target OS.

If you need more specific help, post more specific details in regards to where you're stuck.
 
Share this answer
 
you can use linux open suse. It so good for you to compiler c, or c ++
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900