This forum has been archived. All content is frozen. Please use KDE Discuss instead.

building tellico debian package with webcam support

Tags: None
(comma "," separated)
japs
Registered Member
Posts
6
Karma
0
OS
Hi all,
I was trying to build a Debian package of Tellico from the latest sources with webcam barcode scanning activated. I tried to modify both CMakeLists.txt:
option(ENABLE_WEBCAM "..." TRUE)
and debian/rules:
-DENABLE_WEBCAM=true
but neither achieved the expected result.

Has anybody got any clue about what's going wrong? Someone has successfully made a similar attempt?

Thanks,j
robbystephenson
KDE Developer
Posts
384
Karma
1
OS
And you've got libv4l installed? What exactly is the error you're getting? Is there cmake output that indicates webcam support is being compiled or not?
japs
Registered Member
Posts
6
Karma
0
OS
robbystephenson wrote:And you've got libv4l installed? What exactly is the error you're getting? Is there cmake output that indicates webcam support is being compiled or not?


I do have libv4l installed. The package tellico-(...).deb is created correcly, and works great. Yet the option to use the webcam is still grayed out.

In order to build, I had to rm -r debian/source, because of an odd quilt error. I had found this bypass in a forum.

After the tellico package is created though, I do get an error:
Code: Select all
dh_install -i
cp: cannot stat `debian/tmp/debian/tmp/usr/share/locale': No such file or directory
dh_install: cp -a debian/tmp/debian/tmp/usr/share/locale debian/tellico-data//usr/share/ returned exit code 1
make: *** [binary-indep] Error 2


After posting the original message, and some further research, I noticed that the sources are supposed to build all three packages tellico, tellico-data and tellico-scripts. I'm now trying to find a solution to the error quoted above, so that the sequent two packages will build too.

I'll keep looking into it, but if you have further suggestions, they are more than welcome. Thanks!
robbystephenson
KDE Developer
Posts
384
Karma
1
OS
japs wrote:
robbystephenson wrote:And you've got libv4l installed? What exactly is the error you're getting? Is there cmake output that indicates webcam support is being compiled or not?


I do have libv4l installed. The package tellico-(...).deb is created correcly, and works great. Yet the option to use the webcam is still grayed out.
Can you look at the cmake output when you build it? Is there any indication there about libv4l being found and webcam support enabled?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You may need the libv4l-devel package installed for it to be found.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
japs
Registered Member
Posts
6
Karma
0
OS
robbystephenson wrote:Can you look at the cmake output when you build it? Is there any indication there about libv4l being found and webcam support enabled?
Hi, There is indeed indication that v4l has been found
Code: Select all
-- checking for module 'libv4l1>=0.6'
--   found libv4l1, version 0.8.5
[ 83%] Building CXX object src/barcode/CMakeFiles/barcode.dir/barcode_v4l.o
I confirm I have libv4l-dev installed.

I still can't understand the problem with locales. I tried to add locales to build-dep, but didn't solve the problem. That stops the building process and impedes the creation of packages tellico-data and tellico-scripts. If I use the target build instead of binary, everything runs smoothly without any error. I didn't test such build, though, cause in the building virtual machine I haven't got a desktop environment installed, nor space to install it.
robbystephenson
KDE Developer
Posts
384
Karma
1
OS
japs wrote:
robbystephenson wrote:Can you look at the cmake output when you build it? Is there any indication there about libv4l being found and webcam support enabled?
Hi, There is indeed indication that v4l has been found
Code: Select all
-- checking for module 'libv4l1>=0.6'
--   found libv4l1, version 0.8.5
[ 83%] Building CXX object src/barcode/CMakeFiles/barcode.dir/barcode_v4l.o
I confirm I have libv4l-dev installed.
Hmmm, I'm not sure what to tell you then. The config.h file in the top-level build directory should have ENABLE_WEBCAM defined in that case, and the config option would be enabled if ENABLE_WEBCAM is defined. Then, when the webcam is plugged in, the "Search Internet" dialog should pop up the webcam image.

Just to check all the bases (and I know this is a something of a silly question), but you're sure you're running the correct executable once you build Tellico, and not the original Debian one that did not have webcam support?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If Tellico uses the kdeinit4 launching system, then simply launching the right executable may not be enough. You may need to alter environment variables so that KDEInit4 can find your self compiled Tellico.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
japs
Registered Member
Posts
6
Karma
0
OS
robbystephenson wrote:Just to check all the bases (and I know this is a something of a silly question), but you're sure you're running the correct executable once you build Tellico, and not the original Debian one that did not have webcam support?

Hi, you're right checking the basis, but no, I'm positive that I run what I built. What I did was purging Tellico out of my system and then dpkg -i the package I built, which I cannot mistake as it has my name on it.

I keep thinking that the problem is that I cannot manage to go past that "locale" error during dpkg-buildpackage, and that impedes building the packages tellico-data and tellico-scripts that, I'm assuming, contain the pieces of the program that actually provide webcam support.
Code: Select all
dh_install -i
cp: cannot stat `debian/tmp/debian/tmp/usr/share/locale': No such file or directory
dh_install: cp -a debian/tmp/debian/tmp/usr/share/locale debian/tellico-data//usr/share/ returned exit code 1
make: *** [binary-indep] Error 2

If I could manage to go through this step, I'm positive that my problem would be solved.
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS
I have built it in a Sid chroot. Since you provide so little information about what you have done and gotten the most I can do for you now is tell you how I did it.
Code: Select all
#Get the source
apt-get source tellico

#install dependencies
apt-get build-dep tellico
apt-get install libv4l-dev

#modify debian/rules: «-DENABLE_WEBCAM=true»

#build packages
dpkg-buildpackage

#Checks:
$ ldd debian/tmp/usr/bin/tellico |grep -i v4l
        libv4l1.so.0 => /usr/lib/x86_64-linux-gnu/libv4l1.so.0 (0x00007f56a5ad5000)
        libv4l2.so.0 => /usr/lib/x86_64-linux-gnu/libv4l2.so.0 (0x00007f569ddb5000)
        libv4lconvert.so.0 => /usr/lib/x86_64-linux-gnu/libv4lconvert.so.0 (0x00007f5699061000)
$ ls ../*deb
../tellico-data_2.3.3-1_all.deb  ../tellico-scripts_2.3.3-1_all.deb  ../tellico_2.3.3-1_amd64.deb



The Quilt error makes me suspect you are trying to build it in an stable or outdated version of Debian.


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell