View Full Version : QT Creator build error

June 2nd, 2009, 12:47 AM
Hello, after being advised by some of the good chaps on this forum to use QT Creator as my IDE (it has all the feautres I need) I downloaded and installed it. WHen trying to build a small text application I get the following build error:

:-1: error: collect2: ld returned 1 exit status

In more detail in the compile section:

p, li { white-space: pre-wrap; } Running build steps for project Test...
Configuration unchanged, skipping QMake step.
Starting: /usr/bin/make -w
make: Entering directory `/home/caliga/Test'
g++ -Wl,-rpath,/home/caliga/qtsdk-2009.02/qt/lib -o Test main.o mainwindow.o moc_mainwindow.o -L/home/caliga/qtsdk-2009.02/qt/lib -lQtGui -L/home/caliga/qtsdk-2009.02/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
/usr/bin/ld: cannot find -lfreetype
collect2: ld returned 1 exit status
make: *** [Test] Error 1
make: Leaving directory `/home/caliga/Test'
Exited with code 2.
Error while building project Test
When executing build step 'Make'

Any idea how to go about fixing this? IM relitively new to Linux, so baby steps would be greately apreciated. Especially if you have a simple "apt-get" answer to this :]

Love and peace <3

June 2nd, 2009, 07:42 PM
For the specific error you're getting, you'll need to run:

sudo apt-get install libfreetype6-dev

You'll get the development version of the freetype library.
You might get more errors when you try building after you install
the freetype library. Check out this link: