Click here to Skip to main content
11,920,394 members (58,515 online)
Rate this:
Please Sign up or sign in to vote.
See more: C++ QT MinGW QT-Creator
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 Frown | :-(

Note: I'm using QT 4.7.4 32 bit and mingw on windows 7.
Posted 19-Dec-12 1:43am
X Guy182
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
0 OriginalGriff 415
1 phil.o 170
2 Dave Kreskowiak 155
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,203
3 George Jonsson 2,805
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web01 | 2.8.151120.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2015
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