-   Programming (
-   -   Compiling qt4 apps for non-qt4 linux, win, mac (

birdseye 10-29-2005 06:47 AM

Compiling qt4 apps for non-qt4 linux, win, mac
Hi all,

I have written a small qt4 game. I have currently got it working on Linux (with qt4 dev packages installed) I want to compile it to work on linux without the qt4 libs installed, and for mac and windows machines.

How would I go about this? I have heard bits and peices about static linked libraries, and so forth, but don't really understand it.

Thanks for any help,


sasho 10-29-2005 08:13 AM

Use the '-static' flag. I've never done it myself, so post back the results.

birdseye 10-29-2005 11:29 AM

I'm sorry, is that qmake -static, or make -static?


sasho 10-30-2005 09:17 AM

add -static to the compiler flags in the makefile, for example:

CCFLAGS += -static

birdseye 10-31-2005 04:45 AM

Thanks for that, I'll give it a go and post back the results.

All times are GMT -5. The time now is 01:18 AM.