Click here to Skip to main content
Rate this: bad
good
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 Guy169
Comments
Richard MacCutchan at 19-Dec-12 8:11am
   
Do you have access to a Linux system?
Rate this: bad
good
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: http://qt-project.org/forums/viewthread/16474[^].
  Permalink  
v2
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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 ++
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 329
2 BillWoodruff 210
3 Afzaal Ahmad Zeeshan 204
4 CPallini 185
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2014
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