Link to home
Start Free TrialLog in
Avatar of thready
thready

asked on

Compiling Qt libraries cross platform

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
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thready
thready

ASKER

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.
Avatar of thready

ASKER

The qca project depends on Qt 4.2 and I'm on 5.2.1.  Go figure.  :)