LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-28-2009, 11:43 AM   #1
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
help with creating qt4 apps with other libraries-kdevelop with debian squeeze


Hello I've recently began learning openGL graphical programming using SDL and I wanted to use these in conjunction with qt4. Usually when i create a C++ project i can just create a hello world and then include and link all the libraries I need. However when I try to open a qt4 project I can nowhere find in project options a place to link other libraries(with normal make its under project options->configure->linker extensions or something). Also it uses QMake as opposed to normal make. I've tried to include qt4 in a normal make program but I cannot find what I am supposed to link and the libraries are referenced so strangely(its a maze of subdirectories and oddly placed headers) I cannot figure out what or how I should include anything. So really I am asking how can I use QT4, SDL, and openGL all within the same project? any help would be greatly appreciated!
 
Old 09-29-2009, 05:33 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by mf93 View Post
Hello I've recently began learning openGL graphical programming using SDL and I wanted to use these in conjunction with qt4. Usually when i create a C++ project i can just create a hello world and then include and link all the libraries I need. However when I try to open a qt4 project I can nowhere find in project options a place to link other libraries(with normal make its under project options->configure->linker extensions or something). Also it uses QMake as opposed to normal make. I've tried to include qt4 in a normal make program but I cannot find what I am supposed to link and the libraries are referenced so strangely(its a maze of subdirectories and oddly placed headers) I cannot figure out what or how I should include anything. So really I am asking how can I use QT4, SDL, and openGL all within the same project? any help would be greatly appreciated!
The easy and pragmatic answer is to avoid QT4. Over a period of years I wrote many programs using QT3, only to have Trolltech summarily end support for QT3 and require everyone to upgrade to QT4 with no rearward compatibility path or conversion method -- meaning everything had to be rewritten from scratch.

My point? Even if everything goes perfectly and you create a bunch of useful software, the source of the GUI library may screw you and you will have to start over. You only need to have this experience once to learn the lesson forever.
 
Old 10-04-2009, 06:07 PM   #3
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Original Poster
Rep: Reputation: 36
qt4 really seems my best bet for creating portable GUI's without learning 10 different GUI library extensions
 
  


Reply



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
kde4 style apps in gnome (squeeze) text problem radiodee1 Debian 3 07-25-2009 10:31 AM
Can't compile KDE apps after upgrade to Qt4 simopal6 Linux - Software 4 01-19-2008 12:16 AM
Compiling qt4 apps for non-qt4 linux, win, mac birdseye Programming 4 10-31-2005 04:45 AM
Using libraries in KDevelop ratpuller Programming 0 04-18-2004 02:02 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration