[C++] Configuratie error QT header files

Pagina: 1
Acties:

  • Oyster
  • Registratie: Januari 2003
  • Niet online
Voor mn C++ applicatie maak ik gebruik van QT. Zodra ik een bestaand programma probeer te configureren dmv ./configure krijg ik onderstaande melding.

code:
1
2
3
4
5
6
7
8
9
10
11
12
./configure 
No NVIDIA OpenGL driver found. Using regular Makefile
Creating Makefiles...
Creating regular Makefile
Testing libraries & tools ...
qttest.cpp:1:21: error: qglobal.h: No such file or directory
qttest.cpp: In function ‘int main(int, char**)’:
qttest.cpp:3: error: ‘QT_VERSION_STR’ was not declared in this scope
qttest.cpp:4: error: ‘QT_VERSION’ was not declared in this scope
./configure: 93: a.out: not found
Please upgrade your Qt installation
exit: 93: Illegal number: -1


Een locate naar qglobal.h geeft aan dat deze staat in:

/usr/include/qt3/qglobal.h
/usr/local/Trolltech/Qt-4.2.1/include/Qt/qglobal.h
/usr/local/Trolltech/Qt-4.2.1/include/QtCore/qglobal.h

Maar toch kan de configureer file hem niet vinden. Heeft iemand een idee hoe dit op te lossen is.

  • farlane
  • Registratie: Maart 2000
  • Laatst online: 30-11 00:17
Waarschijnlijk moet je een QT_INCLUDE oid maken die naar het correcte pad wijst

Somniferous whisperings of scarlet fields. Sleep calling me and in my dreams i wander. My reality is abandoned (I traverse afar). Not a care if I never everwake.


  • Oyster
  • Registratie: Januari 2003
  • Niet online
farlane schreef op dinsdag 28 november 2006 @ 17:11:
Waarschijnlijk moet je een QT_INCLUDE oid maken die naar het correcte pad wijst
In de handleiding van Qt staat dat er enkel een QTDIR $PATH aangemaakt moet worden die verwijst naar de Qt bin. Deze is toegevoegd aan het PATH zonder resultaat.

  • MSalters
  • Registratie: Juni 2001
  • Laatst online: 13-09 00:05
In dat geval moet je een -I gebruiken. Ergens zul je de compiler toch mopeten vertellen waar Qt staat.

Man hopes. Genius creates. Ralph Waldo Emerson
Never worry about theory as long as the machinery does what it's supposed to do. R. A. Heinlein