Click here to Skip to main content
13,147,376 members (26,246 online)
Rate this:
Please Sign up or sign in to 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 19-Dec-12 0:43am
X Guy234
Richard MacCutchan 19-Dec-12 8:11am
Do you have access to a Linux system?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It looks using a Linux virtual machine would be the easy path, see the following discussion:[^].
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

you can use linux open suse. It so good for you to compiler c, or c ++

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100