linker error with QT/QT Creator Debian linux
I installed QT (the latest stable version, I believe it's 4.5.2 or something like that) with qt creator, and everytime I try to build a project, I get: collect2: ld returned 1 exit status according to the compiler info, -lgobject-2.0 can't be found. can anyone help me out? the compiler output is as follows:
Running build steps for project AddressBook…
Starting: /opt/qtsdk-2009.03/qt/bin/qmake /home/zkunxen/AddressBook/AddressBook.pro -spec linux-g++ -r CONFIG+=debug
Exited with code 0.
Starting: /usr/bin/make -w
make: Entering directory /home/zkunxen/AddressBook' g++ -Wl,-rpath,/opt/qtsdk-2009.03/qt/lib -o AddressBook main.o addressbook.o moc_addressbook.o -L/opt/qtsdk-2009.03/qt/lib -lQtGui -L/opt/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 /usr/bin/ld: cannot find -lgobject-2.0 collect2: ld returned 1 exit status make: Leaving directory
/home/zkunxen/AddressBook'
make: *** [AddressBook] Error 1
Exited with code 2.
Error while building project AddressBook
When executing build step 'Make'
I bolded the parts that show up in red in QtCreator.
I've tried googling it, but all the useful results are people asking the same/similar question with no answers.
Try to install these packages(they may be named slightly different for you)
libglib2.0-dev libsm-dev libxrender-dev libfontconfig-dev libxext-dev libxext6-dbg x11proto-xext-dev libfreetype6-dev
Installing those should fix your problem.
edit: Fixed a typo and added a few more packages which you may need at some point.