LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   starting qt4 - compiling problem (https://www.linuxquestions.org/questions/programming-9/starting-qt4-compiling-problem-569286/)

divukman 07-14-2007 09:01 AM

starting qt4 - compiling problem
 
Just started qt4 and got an error on Hello World compilation...
Simple question, what's missing? Google was not helpful.
Thanks :)
Code:

$ make
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o hello.o hello.cpp
g++  -o qt4 hello.o    -L/usr/lib -lQtGui -lQtCore -lpthread
/usr/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
collect2: ld returned 1 exit status
make: *** [qt4] Error 1


Problem solved by:
Code:

$ sudo aptitude install -t testing fontconfig fontconfig-config  libfontconfig1  libfontconfig1-dev  libgd2-noxpm libgd2-noxpm-dev  libgd2-xpm  libgd2-xpm-dev  libxft-dev  libxft2

graemef 07-14-2007 11:25 PM

You probably want to look at the QT make tool qmake, it helps considerably with the compilation of projects. Check out the QT manual


All times are GMT -5. The time now is 04:43 AM.