Reply
Thread Tools
Posts: 317 | Thanked: 787 times | Joined on Oct 2009 @ Krakow, Poland
#1
I have recently added QtMobility dependency to CloudGPS and since then autobuilder dh_shlibdeps fails.

The QtMobility libraries that CloudGPS depends on are located in /opt/qtm11/lib. The problem is dh_shlibdeps does not search for libraries in this directory.

I think that if I would succeed in setting LD_LIBRARY_PATH to contain /opt/qtm11/lib it would solve the problem. I tried to export LD_LIBRARY_PATH in debian/rules file but it does not work, the log below explains it all:

Code:
export LD_LIBRARY_PATH=/host_usr/perl/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/opt/qtm11/lib
dh_testdir
dh_testroot
dh_installchangelogs 
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
echo LD_LIBRARY_PATH=/host_usr/perl/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib
LD_LIBRARY_PATH=/host_usr/perl/lib:/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib
dh_shlibdeps
dpkg-shlibdeps: error: couldn't find library libQtSensors.so.1 needed by debian/cloudgps/opt/cloudgps/cloudgps (ELF format: 'elf32-littlearm'; RPATH: '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/cloudgps.substvars debian/cloudgps/opt/cloudgps/cloudgps returned exit code 2
make: *** [binary-arch] Error 9
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
Please help me resolve this issue.

Last edited by dwaradzyn; 2011-12-04 at 17:20. Reason: Problem solved
 
Posts: 317 | Thanked: 787 times | Joined on Oct 2009 @ Krakow, Poland
#2
The solution was quite simple. I just changed:

Code:
dh_shlibdeps
into:
Code:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):/opt/qtm11/lib dh_shlibdeps
in debian/rules file and it worked.
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:29.