LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-14-2007, 09:01 AM   #1
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Blog Entries: 8

Rep: Reputation: 15
Lightbulb 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

Last edited by divukman; 07-14-2007 at 01:23 PM.
 
Old 07-14-2007, 11:25 PM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

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


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
Problem running QT4 hello world... abdo88 Programming 1 04-28-2007 02:37 PM
Problem Starting X After Compiling Kernel for Highmem jonegold Slackware 2 01-12-2007 12:39 AM
Problem installing qt4 impeteperry Ubuntu 3 03-18-2006 09:51 AM
kubuntu: problem building QT4 application eantoranz Ubuntu 1 01-23-2006 11:39 AM
Compiling qt4 apps for non-qt4 linux, win, mac birdseye Programming 4 10-31-2005 04:45 AM

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

All times are GMT -5. The time now is 06:40 PM.

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