[Qt-creator] Hi, I have a problem with QTCreator
Victor Sardina
Victor.Sardina at noaa.gov
Sun Mar 22 06:47:27 CET 2009
Diego:
That simply means that the linker (at /usr/bin/ld) cannot find the
"libgobject2.so" (?) library and link it into your executable. Other
than that the compilation appears to succeed without problems. Your mail
also appear to indicate that to fix that you just need to add the
location of the libgobject-2.0.so (?) library to your .pro (project
file). In a nutshell, open the Hello.pro (?) file and add a line of the
form:
"LIBS += /path/to/your/libgobjects-2.0.so"
to it. Then recompile and see how it goes. You could attain the same
results in other ways, but that should work in a straightforward way.
Good luck,
Victor
Diego Camacho wrote:
> when y tried to compile o build a simple project like helloworld
> y have the following error:
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Running build steps for project HelloWorld...
>
> Creating gdb macros library...
>
> Starting: /opt/qtsdk-2009.01/qt/bin/qmake
> /home/hackvan/HelloWorld/HelloWorld.pro -spec linux-g++ -r
> CONFIG+=debug_and_release CONFIG+=debug
>
> Exited with code 0.
>
> Starting: /usr/bin/make debug -w
>
> make: Entering directory `/home/hackvan/HelloWorld'
>
> /usr/bin/make -f Makefile.Debug
>
> make[1]: Entering directory `/home/hackvan/HelloWorld'
>
> g++ -Wl,-rpath,/opt/qtsdk-2009.01/qt/lib -o HelloWorld debug/main.o
> debug/helloworlddialog.o debug/moc_helloworlddialog.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 -lgobject-2.0
>
> make[1]: Leaving directory `/home/hackvan/HelloWorld'
>
> make: Leaving directory `/home/hackvan/HelloWorld'
>
> collect2: ld returned 1 exit status
>
> make[1]: *** [HelloWorld] Error 1
>
> make: *** [debug] Error 2
>
> Exited with code 2.
>
> Error while building project HelloWorld
>
> When executing build step 'Make'
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------
> and i don't know what i suppose to do.
>
> before the installing, I install the g++ compiler, the gdb debugger
> and gobjc; all I install it through the synaptic package manager
> on my ubuntu 8.04.
>
> any suggestion?
>
> thanks,
>
>
> --
> -----------------------------------------------------
> Diego Armando Camacho Peña.
> Fundación Universitaria San Martín.
> Ingeniero de Sistemas.
> GNU/Linux User
> Open Source Developer
> http://www.hackvanews.tk/
> http://identi.ca/hackvan
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
More information about the Qt-creator-old
mailing list