You are not logged in.

#1 2006-11-01 23:15:41

Damnshock
Member
From: Barcelona
Registered: 2006-09-13
Posts: 414

Compiling QT4 programs [ solved]

I've recently begin looking at the Trolltech doc site, trying to learn some programming under QT (and also C++).

I noticed that i wasn't able to compile the most simple program under qt4, because of a lack of good configuration with the variables and the compiler could not find my #include libraries. If any of you wanna compile programs with qt4, you should change your enviroment variables to

QTDIR=/opt/qt4
QMAKESPEC=/opt/qt4/mkspecs/linux-g++

This way you can compile your programs wink

Cheers

PD: remember to "qmake -project" and "qmake" before running "make"

PD2: this is for completely newbies as me wink

PD3: any of you wanna teach me some c++ and qt4? wink


My blog: blog.marcdeop.com
Jabber ID: damnshock@jabber.org

Offline

#2 2006-11-02 10:39:14

tmaynard
Member
Registered: 2005-07-29
Posts: 34

Re: Compiling QT4 programs [ solved]

as root:

qt-config qt4

then:

logout/login or run "source /etc/profile"

will take care of your environment vars for you.

Have fun with QT!

Offline

#3 2006-11-02 11:07:35

Damnshock
Member
From: Barcelona
Registered: 2006-09-13
Posts: 414

Re: Compiling QT4 programs [ solved]

Thanks tmaynard, didn't know that wink

Cheers


My blog: blog.marcdeop.com
Jabber ID: damnshock@jabber.org

Offline

Board footer

Powered by FluxBB