Results 1 to 2 of 2

Thread: QT Creator build error

  1. #1
    Join Date
    May 2009
    Ubuntu 9.04 Jaunty Jackalope

    QT Creator build error

    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

  2. #2
    Join Date
    Dec 2007
    Athens, Greece
    Ubuntu 9.04 Jaunty Jackalope

    Re: QT Creator build error

    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:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts