On Sat, 27 Dec 2014, Thiago Macieira wrote:
> 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

That works well, thanks.


Cheers,

-- 
Cristian
_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to