hey all i write a program for my mini using Qt2.2 i need to link my program to shared librarys when i compile the program i add my librarys to the make file and it cmpiles with no error but when i try to run the binary on my mini i get this error cant link to shard library ! where should my librarys be ? or how can i link my librarys staticly ? i try -static it didnt work ! thanx
shared library !
If you link your program dynamically, these libraries must also be present at your target. What libraries are required can be checked with " readelf -d <your program> | grep NEEDED" on your host. And shared libraries must exist in directories where the dynamic linker expect them: usually '/lib' or '/usr/lib'. Non common directories can be added with the LD_LIBRARY_PATH environment variable. To link your program statically the static libraries must be present. If only '*.so' libraries exist the linker falls back to dynamic linking.
it gives me the following error : error while loading shared libraries: libqtopia2.so.2: cannot open shared object file: No such file or directory ------------------ the libqtopia2.so.2 library is missing , i searched /lib and /usr/lib it does not exist there
try to search libqtopia2 in your board rootfs: find . | grep libqtopia2 ( normally it is located at opt/qtopia/....) Add it to LD_LIBRARY_PATH and RUN. Or you need a qt app like this link: http://equallybad.blogspot.com/2010/02/project-how-to-setup-default-dev-...