[Debian-med-packaging] Cmake help for htqc needed

Andreas Tille andreas at an3as.eu
Tue Jun 23 08:41:56 UTC 2015


Hi Leopold,

On Tue, Jun 23, 2015 at 09:51:43AM +0200, Leopold Palomo-Avellaneda wrote:
> > Now some other questions raised:
> > 
> >   1. How can I switch to dynamic linking of the set of executables?
> 
> AFAIK in the htqc sources there are two static libraries: htio2 and ht_common.
> 
> These two are defined in this file:
> src/CMakeLists.txt
> 
> add_library(htio2 STATIC ${HTIO_SOURCE_FILES} ${JUCE_SOURCE_FILES})
> 
> add_library(ht_common STATIC ${HTQC_SOURCE_FILES})
> 
> 
> dropping the STATIC word the libraries in Debian would be dynamic (.so). If 
> you expose that libraries (libXXXX and libXXXX-dev) remember that then to 
> follow debian policies, you must add sonames.

That's correct.

> It you need it, I write you the line needed.

I would really appreciate if you could provide a patch that would build
*.so and *.a libraries.  If this works I'd provide a libhtqc and a
libhtqc-dev package.

> >   2. How can I sensibly trigger the test suite?
> 
> I'm not an expert, but in the CMakelist in the root you must add:
> 
> enable_testing()
> 
> before add_subdirectory stanzas.
> 
> After, just:
> make test
> 
> I think that dh_auto_test should work.

Yes, it works (and produces 1/29 failure - so if you try building use
DEB_BUILD_OPT=nocheck).  Thanks for the hint.

Kind regards

      Andreas.

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list