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

mtt24 at nmr.mgh.harvard.edu mtt24 at nmr.mgh.harvard.edu
Wed Mar 11 17:16:17 CET 2009


Thanks! It is working now.








> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
>   <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
>   <title></title>
> </head>
> <body bgcolor="#ffffff" text="#000000">
> Juan D Guzman wrote:
> <blockquote cite="mid:49B78B04.5010206 at gmail.com" type="cite">
>   <pre wrap="">Robert Hairgrove wrote:
>   </pre>
>   <blockquote type="cite">
>     <pre wrap=""><a class="moz-txt-link-abbreviated"
> href="mailto:mtt24 at nmr.mgh.harvard.edu">mtt24 at nmr.mgh.harvard.edu</a>
> wrote:
>
>     </pre>
>     <blockquote type="cite">
>       <pre wrap="">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:
>
>
>       </pre>
>       <blockquote type="cite">
>         <pre wrap="">locate libfreetype
>
>         </pre>
>       </blockquote>
>       <pre wrap="">/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
>
>
>
>
>
>       </pre>
>     </blockquote>
>     <pre wrap="">Did you install the libfreetype-dev package as well?
> _______________________________________________
> Qt-creator mailing list
> <a class="moz-txt-link-abbreviated"
> href="mailto:Qt-creator at trolltech.com">Qt-creator at trolltech.com</a>
> <a class="moz-txt-link-freetext"
> href="http://lists.trolltech.com/mailman/listinfo/qt-creator">http://lists.trolltech.com/mailman/listinfo/qt-creator</a>
>
>
>     </pre>
>   </blockquote>
>   <pre wrap=""><!---->did you try adding the path to where freetype is
> found to your pro file?
> _______________________________________________
> Qt-creator mailing list
> <a class="moz-txt-link-abbreviated"
> href="mailto:Qt-creator at trolltech.com">Qt-creator at trolltech.com</a>
> <a class="moz-txt-link-freetext"
> href="http://lists.trolltech.com/mailman/listinfo/qt-creator">http://lists.trolltech.com/mailman/listinfo/qt-creator</a>
>
>   </pre>
> </blockquote>
> I just installed Kubuntu 9.04 Jaunty Jackalope and added QtCreator
> 1.0.<br>
> When I attempted to compile my project I got an error which was
> essentially like yours... "When executing build step 'Make'.<br>
> <br>
> I found the default compiler on Jaunty was 4.3.3 so I installed 4.3.2
> and everything compiled nicely.<br>
> GG<br>
> </body>
> </html>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>




More information about the Qt-creator-old mailing list