[Qt-creator] qtcreator shows error during compilation: cannot find -lfreetype

Robert Hairgrove evorgriahr at hispeed.com
Wed Mar 11 07:53:26 CET 2009


mtt24 at nmr.mgh.harvard.edu wrote:
> Hi,
> 
> I am new to QT and got stuck building a simple project on qtcreator
> shipped with qt4.5.0. Below is the compile output when I build the
> program:
> 
> Running build steps for project hello...
> Creating gdb macros library...
> Configuration unchanged, skipping QMake step.
> Starting: /usr/bin/make debug -w
> make: Entering directory `/ncf/tools/mtt24/cplusplus/qtprograms/hello'
> /usr/bin/make -f Makefile.Debug
> make[1]: Entering directory `/ncf/tools/mtt24/cplusplus/qtprograms/hello'
> g++ -m64 -Wl,-rpath,/ncf/tools/mtt24/qt/qt/lib -o hello debug/main.o   
> -L/ncf/tools/mtt24/qt/qt/lib -L/usr/lib -lQtGui
> -L/ncf/tools/mtt24/qt/qt/lib -L/usr/X11R6/lib64 -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[1]: Leaving directory `/ncf/tools/mtt24/cplusplus/qtprograms/hello'
> make[1]: *** [hello] Error 1
> make: *** [debug] Error 2
> make: Leaving directory `/ncf/tools/mtt24/cplusplus/qtprograms/hello'
> Exited with code 2.
> Error while building project hello
> When executing build step 'Make'
> 
> 
> 
> 
> 
> **********************************************
> 
> 
> I also checked for the lib freetype on the machine I was running qtcreator
> on:
> 
>> locate libfreetype
> /usr/lib/libfreetype.so.6
> /usr/lib/libfreetype.so.6.3.16
> /usr/lib/xorg/modules/fonts/libfreetype.so
> /usr/share/doc/libfreetype6
> /usr/share/doc/libfreetype6/CHANGES.gz
> /usr/share/doc/libfreetype6/ChangeLog.gz
> /usr/share/doc/libfreetype6/FTL.TXT.gz
> /usr/share/doc/libfreetype6/PATENTS
> /usr/share/doc/libfreetype6/README.Debian
> /usr/share/doc/libfreetype6/TODO
> /usr/share/doc/libfreetype6/changelog.Debian.gz
> /usr/share/doc/libfreetype6/changelog.gz
> /usr/share/doc/libfreetype6/copyright
> /usr/share/doc/libfreetype6/ft2faq.html
> /usr/share/doc/libfreetype6/pcf
> /usr/share/doc/libfreetype6/pcf/README
> /var/lib/dpkg/info/libfreetype6.list
> /var/lib/dpkg/info/libfreetype6.md5sums
> /var/lib/dpkg/info/libfreetype6.postinst
> /var/lib/dpkg/info/libfreetype6.postrm
> /var/lib/dpkg/info/libfreetype6.shlibs
> 
> 
> I am a little lost on how to fix this issue. Any help would be appreciated.
> 
> Thanks,
> 
> Tanveer
> 
> 
> 
> 
Did you install the libfreetype-dev package as well?



More information about the Qt-creator-old mailing list