Menu

#147 make error webcamstudio_0.73-r604

0.72
New
nobody
None
Medium
Linux
Unspecified
Defect
2017-06-01
2017-05-31
Tony G
No

hi can someone here help me with installing webcamstudio_0.73-r604 in a fedora22 64bit box?
1) I know ws has been discontinued but I'd like to get it working if I can, it looks like just the thing I need right now.
2) I'm not an ubuntu fan and I'd rather not get into a new linux flavour after learning about fedora/centos for several years now.
I'm following the readme and so far I've made it down to step 5. It says "compile webcamstudio-module-111 (Shipped in this archive "vloopback") with "make" & "sudo make install"., but my package has webcamstudio-module-109.tar.bz2. I extracted it and it made the vloopback folder. It then says to run make but when I ran make I got this:

make
Building webcamstudio kernel module...
make -C /lib/modules/4.4.14-200.fc22.x86_64/build M=/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback modules
make[1]: Entering directory '/usr/src/kernels/4.4.14-200.fc22.x86_64'
CC [M] /home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.o
/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.c: In function ‘attr_store_maxopeners’:
/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.c:496:6: error: implicit declaration of function ‘strict_strtoul’ [-Werror=implicit-function-declaration]
if (strict_strtoul(buf, 0, &curr))
^
/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.c: In function ‘init_vdev’:
/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.c:2012:7: error: ‘struct video_device’ has no member named ‘debug’
vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
^
/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.c:2012:17: error: ‘V4L2_DEBUG_IOCTL’ undeclared (first use in this function)
vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
^
/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.c:2012:17: note: each undeclared identifier is reported only once for each function it appears in
/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.c:2012:36: error: ‘V4L2_DEBUG_IOCTL_ARG’ undeclared (first use in this function)
vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:264: recipe for target '/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.o' failed
make[2]: [/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback/webcamstudio.o] Error 1
Makefile:1389: recipe for target 'module/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback' failed
make[1]:
[module/home/packages/webcamstudio-0.73/ArchFedoraOpenSuse/vloopback] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.4.14-200.fc22.x86_64'
Makefile:13: recipe for target 'webcamstudio.ko' failed
make: *** [webcamstudio.ko] Error 2

any help much appreciated.

Discussion

  • Tony G

    Tony G - 2017-05-31

    update: it's ok, I downloaded and extracted v4l2loopback-master and ran make and make install -ti went ok. However the readme says: "Copy libwebcamstudio.so in /usr/lib64 (or your user libs folder ...) but I don't get any libwebcamstudio.so, I've only got libwebcamstudio.c in the original vloopback folder. How do I get the libwebcamstudio.so file?

     

    Last edit: Tony G 2017-05-31
  • Tony G

    Tony G - 2017-06-01

    phobos thankyou for your feedback, I'm making my way through the readme(s), I'm now at <Step 11=""> where it says

    Finally navigate where WebcamStudio.jar is....

    but I have no WebcamStudio.jar anywhere on my system. Where should this file be? I searched on google to download it but no joy.

     

    Last edit: Tony G 2017-06-01
    • PhobosK

      PhobosK - 2017-06-01

      The launchpad bazaar link above points to the latest sources... In order to use them you need to compile the Jar file, not to download it from somewhere... The sources can be used with the NetBeans IDE, so you open them as a project there and build and run and you will get the jar file + nededed libraries and a folder structure to run the application multiple times ... But that is your option if you want to compile yourself and you know at least some basic rules and procedures of compiling a Java application :)

      Another option would be to download the Ubuntu latest deb file https://launchpad.net/~webcamstudio/+archive/ubuntu/webcamstudio-dailybuilds/+files/webcamstudio_0.73-466~201701081046~ubuntu16.04.1_amd64.deb

      (general link: https://launchpad.net/~webcamstudio/+archive/ubuntu/webcamstudio-dailybuilds/+packages?field.name_filter=&field.status_filter=published&field.series_filter=xenial)

      Then decompress it using "File roller" for example, and then decompress the resultant data.tar.xz file.... You will get all the files needed in a folder structure that is like /,/usr etc etc... Then you may put the files in their respective folders....
      But let me warn you.. This second option is actually a very bad idea/hack/way to make webcamstudio work on Fedora 22... And I would advice against it... And it may or may not work out of the box... It may require some changes to the paths in the wrappers etc... the 64bit libs may be incompetible with the glibc of Fedora 22 etc etc problems.... And finally this would not use the Fedora package manager, which is always the preferred way to install applications...

      Sadly I do not have enough time to prepare an rpm package for Fedora 22... I may have some time in a couple of months to build a snap package maybe... but as far as I know snap packages are supported from Fedora 24 onwards...

       
  • Tony G

    Tony G - 2017-06-01

    thankyou again phobos, I'm going to try youer first suggestion and get the latest sources from http://bazaar.launchpad.net. I don't know anything about netbeans or a way to download the whole folder tree in one go but I'll search on google and work it out. I really would like to get WS working on my machine if possible. Tony

     
    • PhobosK

      PhobosK - 2017-06-01

      OK.
      If you do not succeed I will try to find some time at the end of the week to compile platform independent binary archive for the latest SVN :)

       
      • Tony G

        Tony G - 2017-06-03

        I've got the ws source files now and I managed to install netbeans 8.2 from oracle. Are there any dociments at your site that explain how to use netbeans to complie the source files?

         
      • Tony G

        Tony G - 2017-06-06

        if your suggestion of a 'platform independent binary archive' helps a newbie install ws that would be much appreciated, I'm still hitting brick walls with this.

         

Log in to post a comment.