build broken as '-lusb-1.0' is missing...

Thiago Macieira thiago at macieira.org
Sat Dec 27 05:38:07 PST 2014


On Saturday 27 December 2014 14:14:00 Cristian Ionescu-Idbohrn wrote:
> On Sat, 27 Dec 2014, Thiago Macieira wrote:
> > On Saturday 27 December 2014 11:38:16 Cristian Ionescu-Idbohrn wrote:
> > > ...from the generated Makefile (on the master branch).
> > > 
> > > If I manually add it:
> > > 	... -ldivecomputer -lusb-1.0 -lxslt -lxml2 ...
> > > 	
> > > 	                   ^^^^^^^^^
> > > 
> > > at a strategic point, on line 21:
> > > 	LIBS          = $(SUBLIBS) ...
> > > 
> > > I get a ./subsurface executable.
> > 
> > Indirect dependency due to static linking of libdivecomputer. We
> > already have code to deal with that by parsing its .la file.
> > 
> > How did you install libdivecomputer and where is the .la file?
> 
> I don't want to install libdivecomputer, nor marble.  I use `qmake'
> arguments 'LIBS+=...' and 'INCLUDEPATH+=...' to point to marble and
> libdivecomputer library locations.
> 
> Relative to subsurface repo code tree:
> 
> ../libdivecomputer/src/.libs/libdivecomputer.a
> ../libdivecomputer/src/.libs/libdivecomputer.lai
> ../libdivecomputer/src/libdivecomputer.la
> ../libdivecomputer/src/.libs/libdivecomputer.la -> ../libdivecomputer.la
> 
> Yes, the .la file refers to libusb:
> 
> 	# Libraries that this one depends upon.
> 	dependency_libs=' -lusb-1.0'
> 

Add to your qmake command-line:

	LIBDCDEVEL=1
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



More information about the subsurface mailing list