ossobv / bcg729-deb

(obsolete) Debian/Ubuntu package for the Bcg729 G.729 codec library
Other
16 stars 17 forks source link

libbcg729-dev missing files #9

Open kaviyarj-28 opened 1 year ago

kaviyarj-28 commented 1 year ago

Hi I am trying to install dependencies G.729 library. Everything went fine untill I use this command "

dpkg-buildpackage -us -uc -sa -b -rfakeroot

" I get error at the end is

-- Installing: /root/rtpengine/bcg729-1.0.4/debian/tmp/usr/share/Bcg729/cmake/Bcg729ConfigVersion.cmake -- Installing: /root/rtpengine/bcg729-1.0.4/debian/tmp/usr/include/bcg729/decoder.h -- Installing: /root/rtpengine/bcg729-1.0.4/debian/tmp/usr/include/bcg729/encoder.h -- Installing: /root/rtpengine/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.a -- Installing: /root/rtpengine/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.so.0 -- Installing: /root/rtpengine/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.so make[1]: Leaving directory '/root/rtpengine/bcg729-1.0.4/obj-x86_64-linux-gnu' dh_install -O--buildsystem=cmake dh_install: Cannot find (any matches for) "usr/lib//pkgconfig/" (tried in ., debian/tmp)

dh_install: libbcg729-dev missing files: usr/lib//pkgconfig/ dh_install: missing files, aborting make: *** [debian/rules:13: binary] Error 25 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

Can you please help me out with this

wdoekes commented 1 year ago
  1. You're not using ./Dockerfile.build, so your environment could be broken/incomplete in all possible ways.
  2. You're installing version 1.0.4, while the latest is 1.1.1. If you switched to the right tag, you could build 1.0.4 though. That works properly, with ./Dockerfile.build.
  3. libbcg729-0 is already present in recent Ubuntu/Debian, so you should probably not need to build this manually at all.
wdoekes commented 1 year ago

As far as I can tell, you're mixing and matching things. Or using a different debian setup altogether (not the one from here). The install on 1.0.4 looks like this:

Making install in src
make[3]: Entering directory '/build/bcg729-1.0.4/src'
make[4]: Entering directory '/build/bcg729-1.0.4/src'
make[4]: Nothing to be done for 'install-data-am'.
 /bin/mkdir -p '/build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libbcg729.la '/build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu'
libtool: install: /usr/bin/install -c .libs/libbcg729.so.0.0.0 /build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.so.0.0.0
libtool: install: (cd /build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu && { ln -s -f libbcg729.so.0.0.0 libbcg729.so.0 || { rm -f libbcg729.so.0 && ln -s libbcg729.so.0.0.0 libbcg729.so.0; }; })
libtool: install: (cd /build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu && { ln -s -f libbcg729.so.0.0.0 libbcg729.so || { rm -f libbcg729.so && ln -s libbcg729.so.0.0.0 libbcg729.so; }; })
libtool: install: /usr/bin/install -c .libs/libbcg729.lai /build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.la
libtool: install: /usr/bin/install -c .libs/libbcg729.a /build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.a
libtool: install: chmod 644 /build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.a
libtool: install: ranlib /build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.a
libtool: warning: remember to run 'libtool --finish /usr/lib/x86_64-linux-gnu'
...
make[4]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig'
 /usr/bin/install -c -m 644 libbcg729.pc '/build/bcg729-1.0.4/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig'
make[4]: Leaving directory '/build/bcg729-1.0.4'
make[3]: Leaving directory '/build/bcg729-1.0.4'
make[2]: Leaving directory '/build/bcg729-1.0.4'
make[1]: Leaving directory '/build/bcg729-1.0.4'
   dh_install -O--parallel -O--buildsystem=autoconf

Or for 1.1.1:

Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "None"
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig/libbcg729.pc
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/share/Bcg729/cmake/Bcg729Targets.cmake
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/share/Bcg729/cmake/Bcg729Targets-none.cmake
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/share/Bcg729/cmake/Bcg729Config.cmake
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/share/Bcg729/cmake/Bcg729ConfigVersion.cmake
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/include/bcg729/decoder.h
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/include/bcg729/encoder.h
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.a
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.so.0
-- Installing: /build/bcg729-1.1.1/debian/tmp/usr/lib/x86_64-linux-gnu/libbcg729.so
make[1]: Leaving directory '/build/bcg729-1.1.1/obj-x86_64-linux-gnu'
   dh_install -O--buildsystem=cmake