Members Online
Total Online: 49 Web Spiders: 18
Guests Online: 42
Members Online: 7
Registered Members: 70199 Newest Member: deeznuts
|
View Thread
| Author |
linker error with QT/QT Creator Debian linux |
Zkunxen
Member
Posts: 47
Location:
Joined: 24.07.09 Rank: Elite |
|
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. |
|
| Author |
RE: linker error with QT/QT Creator Debian linux |
p4plus2
Member
Posts: 167
Location:
Joined: 31.03.08 Rank: God |
|
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.
"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera
"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine
Edited by p4plus2 on 05-08-09 22:51 |
|
| Author |
RE: linker error with QT/QT Creator Debian linux |
Zkunxen
Member
Posts: 47
Location:
Joined: 24.07.09 Rank: Elite |
|
|
Thank you, that was exactly what I needed. I installed those, and re-ran the IDE, built, and it worked, no problems. |
|
| Author |
RE: linker error with QT/QT Creator Debian linux |
p4plus2
Member
Posts: 167
Location:
Joined: 31.03.08 Rank: God |
|
|
Zkunxen wrote:
Thank you, that was exactly what I needed. I installed those, and re-ran the IDE, built, and it worked, no problems.
No problem, let me know if you have any more issues.
"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera
"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine |
|
|
|
|