You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, November 16th 2009, 9:20pm

Newbie In Qt - Please Help

Hello all,

I am new to QT programming in linux and the QT compiler gives me the following errors:

Running build steps for project arisa...
[color=#0000ff]Starting: /home/omega7/qtsdk-2009.03/qt/bin/qmake /home/omega7/arisa/arisa.pro -spec linux-g++ -r CONFIG+=debug[/color]
[color=#0000ff]Exited with code 0.[/color]
[color=#0000ff]Starting: /usr/bin/make -w[/color]
make: Entering directory `/home/omega7/arisa'
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../qtsdk-2009.03/qt/mkspecs/linux-g++ -I. -I../qtsdk-2009.03/qt/include/QtCore -I../qtsdk-2009.03/qt/include/QtGui -I../qtsdk-2009.03/qt/include -I. -o main.o main.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../qtsdk-2009.03/qt/mkspecs/linux-g++ -I. -I../qtsdk-2009.03/qt/include/QtCore -I../qtsdk-2009.03/qt/include/QtGui -I../qtsdk-2009.03/qt/include -I. -o mainwindow.o mainwindow.cpp
/home/omega7/qtsdk-2009.03/qt/bin/moc -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../qtsdk-2009.03/qt/mkspecs/linux-g++ -I. -I../qtsdk-2009.03/qt/include/QtCore -I../qtsdk-2009.03/qt/include/QtGui -I../qtsdk-2009.03/qt/include -I. mainwindow.h -o moc_mainwindow.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../qtsdk-2009.03/qt/mkspecs/linux-g++ -I. -I../qtsdk-2009.03/qt/include/QtCore -I../qtsdk-2009.03/qt/include/QtGui -I../qtsdk-2009.03/qt/include -I. -o moc_mainwindow.o moc_mainwindow.cpp
g++ -Wl,-rpath,/home/omega7/qtsdk-2009.03/qt/lib -o arisa main.o mainwindow.o moc_mainwindow.o -L/home/omega7/qtsdk-2009.03/qt/lib -lQtGui -L/home/omega7/qtsdk-2009.03/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
make: Leaving directory `/home/omega7/arisa'
[color=#ff0000]/usr/bin/ld: cannot find -lfreetype[/color]
[color=#ff0000]collect2: ld returned 1 exit status[/color]
[color=#ff0000]make: *** [arisa] Error 1[/color]
Exited with code 2.
[color=#ff0000]Error while building project arisa[/color]
[color=#ff0000]When executing build step 'Make'[/color]


Please Help

Onwuka Arisa

  • "threaderslash" is male

Posts: 28

Location: Melbourne

Occupation: System Engineer - Enterprise software developer: client server database - Linux, Unix, Windows.

  • Send private message

2

Monday, November 16th 2009, 11:56pm

You program cannot find "/usr/bin/ld: cannot find -lfreetype" . It can be some lib file or some setup you are missing when configuring your installation.

Also, try to get a look in the following links:
http://www.linuxquestions.org/questions/…nd-lxext-365646
Question: when compiling: Message: /usr/bin/ld: cannot find -lQtGui_debug
http://newsgroups.derkeiler.com/Archive/…1/msg00058.html

Hope this help. ;)

This post has been edited 1 times, last edit by "threaderslash" (Nov 17th 2009, 12:06am)