[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freecycle-users] QT Include (freecycle-SVN-20070103)
From: |
Viceic Predrag |
Subject: |
Re: [Freecycle-users] QT Include (freecycle-SVN-20070103) |
Date: |
Wed, 3 Jan 2007 10:09:03 +0100 |
User-agent: |
KMail/1.9.5 |
HI Esben,
Happy New year to you too!!
You should in no way modify the way your includes are handled with your
distribution, ie. i /usr/local/include as this can have many negative
effects.
You can add
INCLUDEPATH+=/usr/include/qt
somewhere near the beginnig of src.pro file
What distribution are you using?
Predrag
Le mercredi 3 janvier 2007 01:39, Esben Stien a écrit :
> All the best for the new year;).
>
> Trying to compile latest freecycle, but it fails to detect the QT
> include path. Here's excerpts from /usr/lib/pkgconfig/qt-mt.pc:
>
> prefix=/usr
> includedir=${prefix}/include/qt
>
> This means include directory for QT is /usr/include/qt, but here's
> what happens when I run make:
>
> g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DHAS_JACK -DHAS_ALSA
> -DHAS_LIBINSTPATCH -DHAS_AUBIO -DHAS_SOUNDTOUCH -DHAS_MIDI -DQT_NO_DEBUG
> -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT
> -I/usr/share/qt/mkspecs/default -I. -I../src -I/usr/include
> -I/usr/local/include -I/opt/gnome/include/glib-2.0 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/include/qt -o freecycle.o freecycle.cpp In
> file included from freecycle.cpp:21:
> freecycle.h:24:25: error: qmainwindow.h: No such file or directory
>
> It's looking in /include/qt for some reason.
>
> It works finding qt when I symlink /usr/include to /include, but then
> it suddenly can't find glib.h, so I guess there is something wrong
> with how it reads pkgconfig data.
>
> Any pointers how to proceed?.