PDA

View Full Version : Could anybody help me?



antsu
11th February 2010, 07:34
Hi all,
could somebody help me? I try to compiling with arm-qtopia and next error occurs:
" /usr/bin/ld: cannot find -lqtopia2 "
What this mean and what I will be able to try do?
Please, help me.
Thanks in all.

franz
11th February 2010, 07:45
The linker cannot find a library called libqtopia2.(so|a). It might be called libQtopia.(so|a) or libQtopia2.(so|a) or something like that.

ChrisW67
11th February 2010, 07:46
It means that the specified library was not found on the library path used by the linker. You are possibly missing a "-Lpath" option.

antsu
11th February 2010, 17:34
It means that the specified library was not found on the library path used by the linker. You are possibly missing a "-Lpath" option.

Hi ChrisW67, I found the library file libqtopia2.so.2.1.0 and now I don't know how I can set the path.
Makefile includes: LIBS= $(SUBLIBS) -lqtopia2 -lqtopia -lqpe -L/...
and I tried to add -L/path(the path where libqtopia2 is) but it is the same case.
I tried to set SUBLIBS with export but it doesn't work.
So, how I can set the library path?

Thanks for you.

franz
11th February 2010, 18:58
Use


LIBS += ...


It might improve matters

ChrisW67
11th February 2010, 22:08
The missing "+" symbol that Franz points out is very important. Without it, you will be removing any basic settings qmake had arranged for you.

antsu
13th February 2010, 11:17
Hi franz and ChrisW67. Thanks for you.
Because I'm not be familiar with Linux I need to learn more about it...
So example projects includes some specs files. And these files set a environment variables before a makefile called.
This was reason why the library path was not found.
I had to only change the right path to those files.