/ usr / bin / ld: cannot find -lfreetype qt

Compiling on Fedora 10.

I am using qt for the first time. I started by creating a simple graphical application with all the default settings. When I tried to build the project, I received the following error messages.

However, when I did a search for -lfreetype, I found it in the following directory. /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.so.6.3.18

Is there any way to solve this problem?

Thanks so much for any advice.

Running build steps for project test1...
Creating gdb macros library...
Configuration unchanged, skipping QMake step.
Starting: /usr/bin/make debug -w 
make: Entering directory `/home/steve/projects/qt/test1/test1'
/usr/bin/make -f Makefile.Debug
make[1]: Entering directory `/home/steve/projects/qt/test1/test1'
g++ -Wl,-rpath,/opt/qtsdk-2009.01/qt/lib -o test1 debug/main.o 
  debug/mainwindow.o debug/moc_mainwindow.o 
  -L/opt/qtsdk-2009.01/qt/lib 
  -lQtGui -L/opt/qtsdk-2009.01/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[1]: *** [test1] Error 1
make[1]: Leaving directory `/home/steve/projects/qt/test1/test1'
make: *** [debug] Error 2
make: Leaving directory `/home/steve/projects/qt/test1/test1'
Exited with code 2.
Error while building project test1
When executing build step 'Make'
+3
source share
7 answers

You need to install the freetype-devel package. The devel package contains header files that, in the case of freetype shoud, are located at / usr / include / freetype.

+6
source

Ubuntu 8.10, QT 4.5. "" :

  • QT lib - . "mv../../qtsdk-2009.01/qt/lib../../qtsdk-2009.01/qt/lib2"

  • "make" , .

  • lib

  • "make" , .

, .

+5

freetype1-dev libgtk2.0-dev .

0

Ubuntu 9.04 freetype1-dev libgtk2.0-dev .

, , , , , .. M QTcreator, , . - , .

..

0

ubuntu 9.04 (dell D820) - qt -

S R, , libgtk2.0-dev ( freetype6), .

, qt designer (

0

Elive, freetype1-dev libgtk2.0-dev /usr/bin/ld: -lSM, xorg-dev .

0

, libfreetype.so. "locate libfreetype.so", , "/usr/lib/libfreetype.so.6". libfreetype.so.6 , . "ln -s/usr/lib/libfreetype.so.6/usr/lib/libfreetype.so", , , . . !

0

Source: https://habr.com/ru/post/1704770/


All Articles