Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #201550 > unrolled thread

Package shared library with application

Started byDamir Porobic <damir_porobic@live.com>
First post2018-10-23 17:20 +0200
Last post2018-10-24 08:30 +0200
Articles 6 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  Package shared library with application Damir Porobic <damir_porobic@live.com> - 2018-10-23 17:20 +0200
    Re: Package shared library with application Dan Ritter <dsr@randomstring.org> - 2018-10-23 17:50 +0200
      Re: Package shared library with application Roberto C. Sánchez <roberto@debian.org> - 2018-10-24 01:20 +0200
        Re: Package shared library with application Roberto C. Sánchez <roberto@debian.org> - 2018-10-24 21:00 +0200
          Re: Package shared library with application Roberto C. Sánchez <roberto@debian.org> - 2018-10-24 21:20 +0200
    Re: Package shared library with application deloptes <deloptes@gmail.com> - 2018-10-24 08:30 +0200

#201550 — Package shared library with application

FromDamir Porobic <damir_porobic@live.com>
Date2018-10-23 17:20 +0200
SubjectPackage shared library with application
Message-ID<wM6Dp-7iy-31@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi All,


I'm trying to package my application together with a shared library that I have written but run now into following error:


dpkg-shlibdeps: error: no dependency information found for /usr/lib/x86_64-linux-gnu/libkImageAnnotator.so.0.0.1 (used by debian/ksnip/bin/ksnip)
Hint: check if the library actually comes from a package.


After searching for a solution, I saw that some folks suggest, as a workaround, to add following to the rules:


override_dh_shlibdeps:

     dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info


Is that a correct approach or just a hack that could cause later on problems?


Thanks in advance!


Best regards,
Damir

[toc] | [next] | [standalone]


#201552

FromDan Ritter <dsr@randomstring.org>
Date2018-10-23 17:50 +0200
Message-ID<wM76q-7s7-9@gated-at.bofh.it>
In reply to#201550
On Tue, Oct 23, 2018 at 08:36:37AM +0000, Damir Porobic wrote:
> Hi All,
> 
> 
> I'm trying to package my application together with a shared library that I have written but run now into following error:
> 
> 
> dpkg-shlibdeps: error: no dependency information found for /usr/lib/x86_64-linux-gnu/libkImageAnnotator.so.0.0.1 (used by debian/ksnip/bin/ksnip)
> Hint: check if the library actually comes from a package.
> 
> 
> After searching for a solution, I saw that some folks suggest, as a workaround, to add following to the rules:
> 
> 
> override_dh_shlibdeps:
> 
>      dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
> 
> 
> Is that a correct approach or just a hack that could cause later on problems?

If you're only using the package internally, it's fine.

If you're planning on offering the application to Debian or to
the public, you should make a separate package for
libkImageAnnotator or include it in this one formally.

-dsr-

[toc] | [prev] | [next] | [standalone]


#201570

FromRoberto C. Sánchez <roberto@debian.org>
Date2018-10-24 01:20 +0200
Message-ID<wMe7T-3jf-1@gated-at.bofh.it>
In reply to#201552
On Tue, Oct 23, 2018 at 06:42:40PM +0000, Damir Porobic wrote:
>    Even with this option set, I'm still failing failing to start the
>    application after installing from package, I get an error saying: error
>    while loading shared libraries: libkImageAnnotator.so.0.0.1: cannot open
>    shared object file: No such file or directory
>    Any idea what the reason could be? The lib was installed under /usr/lib/

It is difficult to help without the complete picture.  Can you please
provide the complete build output from when you built the package and
the complete console output from the package installation and the fail
launch attempt?

Regards,

-Roberto

-- 
Roberto C. Sánchez

[toc] | [prev] | [next] | [standalone]


#201605

FromRoberto C. Sánchez <roberto@debian.org>
Date2018-10-24 21:00 +0200
Message-ID<wMwxP-5Js-7@gated-at.bofh.it>
In reply to#201570
On Wed, Oct 24, 2018 at 06:34:16PM +0000, Damir Porobic wrote:
>    > It is difficult to help without the complete picture.  Can you please
>    > provide the complete build output from when you built the package and
>    > the complete console output from the package installation and the fail
>    > launch attempt?
> 
>    Here is the installation and the failed launch:
>    [1]https://pastebin.com/QnvuFa0W
>    And here the build output: [2]https://pastebin.com/jbaxKfnj
>    I've checked on the machine where I install it and it looks like the lib
>    was not installed there.
>    I'm building the package in a Ubuntu docker container on travis ci. Let me
>    know if you need something else.
>    Thanks again for your time!
>    Regards,
>    Damir
> 
It looks like your build does not actually create/install a library
called libkImageAnnotator.so.0.0.1.  That would be why it cannot be
found by the application binary.  Is the source package available online
somewhere I can take a look?

Regards,

-Roberto

-- 
Roberto C. Sánchez

[toc] | [prev] | [next] | [standalone]


#201607

FromRoberto C. Sánchez <roberto@debian.org>
Date2018-10-24 21:20 +0200
Message-ID<wMwRb-65i-3@gated-at.bofh.it>
In reply to#201605
On Wed, Oct 24, 2018 at 07:10:06PM +0000, Damir Porobic wrote:
>    > It looks like your build does not actually create/install a library
>    > called libkImageAnnotator.so.0.0.1.  That would be why it cannot be
>    > found by the application binary.  Is the source package available online
>    > somewhere I can take a look?
> 
>    It does create and install the library on the docker container where I
>    build the package, here is the log with the whole output from the CI:
>    [1]https://travis-ci.org/DamirPorobic/ksnip/jobs/445294545
>    Here the part from the logs:
> 
>  Install the project...
>  -- Install configuration: ""
>  -- Installing: /usr/lib/x86_64-linux-gnu/cmake/kImageAnnotator/kImageAnnotatorConfig.cmake
>  -- Installing: /usr/lib/x86_64-linux-gnu/cmake/kImageAnnotator/kImageAnnotatorConfig-version.cmake
>  -- Installing: /usr/lib/x86_64-linux-gnu/cmake/kImageAnnotator/kImageAnnotator-targets.cmake
>  -- Installing: /usr/lib/x86_64-linux-gnu/cmake/kImageAnnotator/kImageAnnotator-targets-noconfig.cmake
>  -- Installing: /usr/lib/x86_64-linux-gnu/libkImageAnnotator.so.0.0.1
>  -- Installing: /usr/lib/x86_64-linux-gnu/libkImageAnnotator.so
>  -- Installing: /usr/include/kImageAnnotator
>  -- Installing: /usr/include/kImageAnnotator/KImageAnnotator.h
>  -- Installing: /usr/include/kImageAnnotator/KImageAnnotatorExport.h
> 
Here is the part from your pastebin:

Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "None"
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/bin/ksnip
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/usr/share/ksnip/translations/ksnip_de.qm
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/usr/share/ksnip/translations/ksnip_es.qm
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/usr/share/ksnip/translations/ksnip_nl.qm
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/usr/share/ksnip/translations/ksnip_no.qm
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/usr/share/ksnip/translations/ksnip_pl.qm
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/usr/share/ksnip/translations/ksnip_ru.qm
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/usr/share/applications/ksnip.desktop
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/usr/share/pixmaps/ksnip.png
-- Installing: /home/travis/build/DamirPorobic/ksnip/debBuild/debian/ksnip/usr/share/metainfo/ksnip.appdata.xml

It appears that your package build is doing something different than you
think it is, perhaps depending on the build environment.

>    This is the project on github:
>    [2]https://github.com/DamirPorobic/ksnip/tree/addRpmAndDebToContinouseCi
> 

I will try to take a look at it a bit later.

Regards,

-Roberto
-- 
Roberto C. Sánchez

[toc] | [prev] | [next] | [standalone]


#201575

Fromdeloptes <deloptes@gmail.com>
Date2018-10-24 08:30 +0200
Message-ID<wMkQ1-7lk-1@gated-at.bofh.it>
In reply to#201550
Damir Porobic wrote:

> Hi All,
> 
> 
> I'm trying to package my application together with a shared library that I
> have written but run now into following error:
> 
> 
> dpkg-shlibdeps: error: no dependency information found for
> /usr/lib/x86_64-linux-gnu/libkImageAnnotator.so.0.0.1 (used by
> debian/ksnip/bin/ksnip) Hint: check if the library actually comes from a
> package.
> 
> 
> After searching for a solution, I saw that some folks suggest, as a
> workaround, to add following to the rules:
> 
> 
> override_dh_shlibdeps:
> 
>      dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
> 

Do you have it in the install file and also I am not sure about the
CamelCase
Does it install correctly after compilation?

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web