LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-29-2005, 06:47 AM   #1
birdseye
Member
 
Registered: Mar 2005
Location: Wales, UK
Distribution: Gentoo, Debian, Ubuntu
Posts: 60

Rep: Reputation: 15
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,

Rhys
 
Old 10-29-2005, 08:13 AM   #2
sasho
Member
 
Registered: Jan 2005
Distribution: Arch
Posts: 120

Rep: Reputation: 17
Use the '-static' flag. I've never done it myself, so post back the results.
 
Old 10-29-2005, 11:29 AM   #3
birdseye
Member
 
Registered: Mar 2005
Location: Wales, UK
Distribution: Gentoo, Debian, Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
I'm sorry, is that qmake -static, or make -static?

Rhys
 
Old 10-30-2005, 09:17 AM   #4
sasho
Member
 
Registered: Jan 2005
Distribution: Arch
Posts: 120

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

CCFLAGS += -static
 
Old 10-31-2005, 04:45 AM   #5
birdseye
Member
 
Registered: Mar 2005
Location: Wales, UK
Distribution: Gentoo, Debian, Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks for that, I'll give it a go and post back the results.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
QT4 installing fakie_flip Programming 3 11-27-2006 06:03 PM
Using Mac Apps In Linux... Nebetsu Linux - General 8 09-28-2005 02:00 AM
installing qt4 fakie_flip Programming 7 09-14-2005 09:04 PM
qt3 or qt4 crAckZ Programming 1 09-06-2005 05:08 PM
linux apps and Mac OS X steve Linux - General 2 01-23-2002 09:18 PM


All times are GMT -5. The time now is 02:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration