Solved

Compiling Qt libraries cross platform

Posted on 2014-02-20
3
300 Views
Last Modified: 2014-02-24
HI Experts,

I'm curious to know what's the best regarded way to write code for cross platform when using Qt?  Do most people choose Visual Studio for Windows and most use gcc on linux, all with the same source, but with different projects?  Or do these projects all compile from makefiles that are recognized by most major compilers?  It doesn't seem like you write once, build anywhere...  Seems more like write once, write again, fix up tweak, tweak some more...  Am I missing something?

I'd love to hear some of your tricks of the trade.  Even if you don't think they're the best -cuz they're probably better than you think...

Thanks,
Mike
0
Comment
Question by:thready
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 39875867
Well, using QT Creator, you won't even face these problems, since it transparently let's you select the toolchain you want to use. Apartrt from that, Makefiles work on all platforms.
0
 
LVL 1

Author Comment

by:thready
ID: 39884539
That's what I'm using.  I downloaded the qca project, opened up Qt Creator from the .pro file.  I hit build - the only thing available to build with on my machine is MinGW, so I chose that one.  The build seems to compile for a while and then I hit compile errors.  I thought maybe they didn't test with building with MinGW and maybe there are differences in compiler errors.  Now I'm trying with Visual Studio Express and I get the same issues.  I guess I'm making my life difficult in using this library, or I'm configuring something wrong.  Not sure what to think.  I'll hit up some youtube videos to get more acquainted with Qt.
0
 
LVL 1

Author Closing Comment

by:thready
ID: 39884562
The qca project depends on Qt 4.2 and I'm on 5.2.1.  Go figure.  :)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question