/usr/bin/ld: cannot find -lQtGui
Good day.
I try to compile a program w/ the help of qmake and make and on make
running stage I get:
$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB
-DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4
-I. -I. -o 1.o 1.cpp g++ -Wl,-O1 -o atry 1.o -L/usr/lib -lQtGui
-lQtCore -lpthread
/usr/bin/ld: cannot find -lQtGui
collect2: ld returned 1 exit status make: *** [atry] Error 1
Googling have shouwn me that I can try replacing a lib and then it will
magically be compiled, another approach is to install
freetype1-dev libgtk2.0-dev
but I have the first already installed and the second brings a lot of
dependencies, and, because I use KDE environment I do not have a so
many GTK packages - rather I would decline using of qmake/make and will
continue using g++ directly.
So, may You know a better solution for my problem?
Thank You for Your time.
Reply to: