Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: mjpg_streamer ubuntu 11.10 64bit

  1. #1
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    322
    Distro
    Ubuntu 14.04 Trusty Tahr

    mjpg_streamer ubuntu 11.10 64bit

    Solved - here's howto for Ubuntu 11.10 64bit mjpg_streamer

    Code:
    sudo apt-get install libjpeg62-dev
    Code:
    svn co https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer mjpg-streamer
    Code:
    cd /mjpg-streamer/mjpg-streamer/
    Code:
    make
    Code:
    sudo make install
    Should compile, install and work as it should...

    Big thanks to sevenmachines for the solution to this problem....


    basically, trying to compile from source...


    mjpg_streamer-r93/94

    Followed supplied install instructions...

    Do a
    Code:
    make all clean
    receive the following error

    Code:
    mjpg_streamer.c:27:28: fatal error: linux/videodev.h: No such file or directory
    compilation terminated.
    make: *** [mjpg_streamer.o] Error 1
    Went looking for the file and found it, albeit a slightly different...

    so im am assuming they mean this file which is located

    Code:
    /usr/include/linux/videodev2.h
    so i edited the source file with the line containing the linux/videodev.h and changed it to linux/videodev2.h

    then ran
    Code:
    make all clean
    which made a difference... but now i have a different error

    Code:
    mjpg_streamer.o: In function `signal_handler':
    mjpg_streamer.c:(.text+0x107): undefined reference to `dlclose'
    mjpg_streamer.c:(.text+0x12c): undefined reference to `dlclose'
    mjpg_streamer.o: In function `main':
    mjpg_streamer.c:(.text.startup+0x27c): undefined reference to `dlopen'
    mjpg_streamer.c:(.text.startup+0x29c): undefined reference to `dlsym'
    mjpg_streamer.c:(.text.startup+0x2bd): undefined reference to `dlsym'
    mjpg_streamer.c:(.text.startup+0x2de): undefined reference to `dlsym'
    mjpg_streamer.c:(.text.startup+0x2ff): undefined reference to `dlsym'
    mjpg_streamer.c:(.text.startup+0x378): undefined reference to `dlopen'
    mjpg_streamer.c:(.text.startup+0x395): undefined reference to `dlsym'
    mjpg_streamer.c:(.text.startup+0x3b0): undefined reference to `dlsym'
    mjpg_streamer.c:(.text.startup+0x3cb): undefined reference to `dlsym'
    mjpg_streamer.c:(.text.startup+0x3e6): undefined reference to `dlsym'
    mjpg_streamer.c:(.text.startup+0x532): undefined reference to `dlerror'
    mjpg_streamer.c:(.text.startup+0x6f1): undefined reference to `dlerror'
    mjpg_streamer.c:(.text.startup+0x839): undefined reference to `dlerror'
    collect2: ld returned 1 exit status
    make: *** [mjpg_streamer] Error 1
    Not entirely sure what to do now...
    Last edited by Plasma_NZ; November 30th, 2011 at 06:19 AM. Reason: rewording and adding more info

  2. #2
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    322
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: mjpg_streamer ubuntu 11.10 64bit

    Went to the sourceforge page, found someone else with the same problem... but has been no help there...

  3. #3
    Join Date
    Sep 2009
    Beans
    1,293

    Re: mjpg_streamer ubuntu 11.10 64bit

    Ubuntu now passes --as-needed to the compiler, this means libraries in the Makefile of mjpg-streamer need to be moved. See
    http://ubuntuforums.org/showpost.php...89&postcount=2

    Look for the section defined there in the Makefile and make the changes, or possibly, in the source directory, this should work

    Code:
    $ sed -i 's/$(CC) $(CFLAGS) $(LFLAGS) $(OBJECTS) -o $(APP_BINARY)/$(CC) $(CFLAGS) $(OBJECTS) $(LFLAGS) -o $(APP_BINARY)/g' Makefile 
    
    $ make

  4. #4
    Join Date
    Sep 2009
    Beans
    1,293

    Re: mjpg_streamer ubuntu 11.10 64bit

    Note,
    Code:
     $ make all
    to build everything
    Code:
     $ make clean
    to clean up the source tree and remove built files, not both at the same time

    Also, renaming include files to fix missing headers is generally likely to end in tears at some point, changing the names doesnt change the contents of the file after all I would recommend not making changes inside the system directories at all unless you know what you're doing

  5. #5
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    322
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: mjpg_streamer ubuntu 11.10 64bit

    Quote Originally Posted by SevenMachines View Post
    Ubuntu now passes --as-needed to the compiler, this means libraries in the Makefile of mjpg-streamer need to be moved. See
    http://ubuntuforums.org/showpost.php...89&postcount=2

    Look for the section defined there in the Makefile and make the changes, or possibly, in the source directory, this should work

    Code:
    $ sed -i 's/$(CC) $(CFLAGS) $(LFLAGS) $(OBJECTS) -o $(APP_BINARY)/$(CC) $(CFLAGS) $(OBJECTS) $(LFLAGS) -o $(APP_BINARY)/g' Makefile 
    
    $ make
    still have this pesky problem

    Code:
    physics@physics:~/Downloads/mjpg-streamer-r63$ make
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall   -c -o mjpg_streamer.o mjpg_streamer.c
    mjpg_streamer.c:27:28: fatal error: linux/videodev.h: No such file or directory
    compilation terminated.
    make: *** [mjpg_streamer.o] Error 1
    physics@physics:~/Downloads/mjpg-streamer-r63$
    - Have fixed that error by editing the makefile... now it spitting something else..

    Code:
    physics@physics:~/Downloads/mjpg-streamer-r63$ make
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall   -c -o mjpg_streamer.o mjpg_streamer.c
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall mjpg_streamer.o utils.o -olpthread -ldl -o mjpg_streamer
    chmod 755 mjpg_streamer
    make -C plugins/input_uvc all
    make[1]: Entering directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/input_uvc'
    gcc -c -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o jpeg_utils.lo jpeg_utils.c
    jpeg_utils.c:27:21: fatal error: jpeglib.h: No such file or directory
    compilation terminated.
    make[1]: *** [jpeg_utils.lo] Error 1
    make[1]: Leaving directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/input_uvc'
    make: *** [input_uvc.so] Error 2
    Ok, fixed that issue by install "libjpeg62-dev" - and now theres a different problem lol... never ending... once i've finished and its work i'll write a howto

    Code:
    make -C plugins/input_uvc all
    make[1]: Entering directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/input_uvc'
    gcc -c -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o jpeg_utils.lo jpeg_utils.c
    In file included from v4l2uvc.h:36:0,
                     from jpeg_utils.c:30:
    uvcvideo.h:38:0: warning: "V4L2_CID_BACKLIGHT_COMPENSATION" redefined [enabled by default]
    /usr/include/linux/videodev.h:1114:0: note: this is the location of the previous definition
    uvcvideo.h:39:0: warning: "V4L2_CID_POWER_LINE_FREQUENCY" redefined [enabled by default]
    /usr/include/linux/videodev.h:1105:0: note: this is the location of the previous definition
    uvcvideo.h:40:0: warning: "V4L2_CID_SHARPNESS" redefined [enabled by default]
    /usr/include/linux/videodev.h:1113:0: note: this is the location of the previous definition
    uvcvideo.h:41:0: warning: "V4L2_CID_HUE_AUTO" redefined [enabled by default]
    /usr/include/linux/videodev.h:1111:0: note: this is the location of the previous definition
    uvcvideo.h:43:0: warning: "V4L2_CID_FOCUS_AUTO" redefined [enabled by default]
    /usr/include/linux/videodev.h:1380:0: note: this is the location of the previous definition
    uvcvideo.h:44:0: warning: "V4L2_CID_FOCUS_ABSOLUTE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1378:0: note: this is the location of the previous definition
    uvcvideo.h:45:0: warning: "V4L2_CID_FOCUS_RELATIVE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1379:0: note: this is the location of the previous definition
    uvcvideo.h:47:0: warning: "V4L2_CID_PAN_RELATIVE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1370:0: note: this is the location of the previous definition
    uvcvideo.h:48:0: warning: "V4L2_CID_TILT_RELATIVE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1371:0: note: this is the location of the previous definition
    uvcvideo.h:51:0: warning: "V4L2_CID_EXPOSURE_AUTO" redefined [enabled by default]
    /usr/include/linux/videodev.h:1360:0: note: this is the location of the previous definition
    uvcvideo.h:52:0: warning: "V4L2_CID_EXPOSURE_ABSOLUTE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1367:0: note: this is the location of the previous definition
    uvcvideo.h:53:0: warning: "V4L2_CID_EXPOSURE_AUTO_PRIORITY" redefined [enabled by default]
    /usr/include/linux/videodev.h:1368:0: note: this is the location of the previous definition
    uvcvideo.h:56:0: warning: "V4L2_CID_WHITE_BALANCE_TEMPERATURE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1112:0: note: this is the location of the previous definition
    gcc -c -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o dynctrl.lo dynctrl.c
    In file included from dynctrl.c:35:0:
    uvcvideo.h:38:0: warning: "V4L2_CID_BACKLIGHT_COMPENSATION" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1114:0: note: this is the location of the previous definition
    uvcvideo.h:39:0: warning: "V4L2_CID_POWER_LINE_FREQUENCY" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1105:0: note: this is the location of the previous definition
    uvcvideo.h:40:0: warning: "V4L2_CID_SHARPNESS" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1113:0: note: this is the location of the previous definition
    uvcvideo.h:41:0: warning: "V4L2_CID_HUE_AUTO" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1111:0: note: this is the location of the previous definition
    uvcvideo.h:43:0: warning: "V4L2_CID_FOCUS_AUTO" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1380:0: note: this is the location of the previous definition
    uvcvideo.h:44:0: warning: "V4L2_CID_FOCUS_ABSOLUTE" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1378:0: note: this is the location of the previous definition
    uvcvideo.h:45:0: warning: "V4L2_CID_FOCUS_RELATIVE" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1379:0: note: this is the location of the previous definition
    uvcvideo.h:47:0: warning: "V4L2_CID_PAN_RELATIVE" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1370:0: note: this is the location of the previous definition
    uvcvideo.h:48:0: warning: "V4L2_CID_TILT_RELATIVE" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1371:0: note: this is the location of the previous definition
    uvcvideo.h:51:0: warning: "V4L2_CID_EXPOSURE_AUTO" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1360:0: note: this is the location of the previous definition
    uvcvideo.h:52:0: warning: "V4L2_CID_EXPOSURE_ABSOLUTE" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1367:0: note: this is the location of the previous definition
    uvcvideo.h:53:0: warning: "V4L2_CID_EXPOSURE_AUTO_PRIORITY" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1368:0: note: this is the location of the previous definition
    uvcvideo.h:56:0: warning: "V4L2_CID_WHITE_BALANCE_TEMPERATURE" redefined [enabled by default]
    /usr/include/linux/videodev2.h:1112:0: note: this is the location of the previous definition
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -ljpeg -o input_uvc.so input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo
    In file included from v4l2uvc.h:36:0,
                     from input_uvc.c:44:
    uvcvideo.h:38:0: warning: "V4L2_CID_BACKLIGHT_COMPENSATION" redefined [enabled by default]
    /usr/include/linux/videodev.h:1114:0: note: this is the location of the previous definition
    uvcvideo.h:39:0: warning: "V4L2_CID_POWER_LINE_FREQUENCY" redefined [enabled by default]
    /usr/include/linux/videodev.h:1105:0: note: this is the location of the previous definition
    uvcvideo.h:40:0: warning: "V4L2_CID_SHARPNESS" redefined [enabled by default]
    /usr/include/linux/videodev.h:1113:0: note: this is the location of the previous definition
    uvcvideo.h:41:0: warning: "V4L2_CID_HUE_AUTO" redefined [enabled by default]
    /usr/include/linux/videodev.h:1111:0: note: this is the location of the previous definition
    uvcvideo.h:43:0: warning: "V4L2_CID_FOCUS_AUTO" redefined [enabled by default]
    /usr/include/linux/videodev.h:1380:0: note: this is the location of the previous definition
    uvcvideo.h:44:0: warning: "V4L2_CID_FOCUS_ABSOLUTE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1378:0: note: this is the location of the previous definition
    uvcvideo.h:45:0: warning: "V4L2_CID_FOCUS_RELATIVE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1379:0: note: this is the location of the previous definition
    uvcvideo.h:47:0: warning: "V4L2_CID_PAN_RELATIVE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1370:0: note: this is the location of the previous definition
    uvcvideo.h:48:0: warning: "V4L2_CID_TILT_RELATIVE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1371:0: note: this is the location of the previous definition
    uvcvideo.h:51:0: warning: "V4L2_CID_EXPOSURE_AUTO" redefined [enabled by default]
    /usr/include/linux/videodev.h:1360:0: note: this is the location of the previous definition
    uvcvideo.h:52:0: warning: "V4L2_CID_EXPOSURE_ABSOLUTE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1367:0: note: this is the location of the previous definition
    uvcvideo.h:53:0: warning: "V4L2_CID_EXPOSURE_AUTO_PRIORITY" redefined [enabled by default]
    /usr/include/linux/videodev.h:1368:0: note: this is the location of the previous definition
    uvcvideo.h:56:0: warning: "V4L2_CID_WHITE_BALANCE_TEMPERATURE" redefined [enabled by default]
    /usr/include/linux/videodev.h:1112:0: note: this is the location of the previous definition
    input_uvc.c: In function ‘input_init’:
    input_uvc.c:307:3: warning: implicit declaration of function ‘input_cmd’ [-Wimplicit-function-declaration]
    make[1]: Leaving directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/input_uvc'
    cp plugins/input_uvc/input_uvc.so .
    make -C plugins/output_file all
    make[1]: Entering directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/output_file'
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_file.so output_file.c
    output_file.c: In function ‘worker_thread’:
    output_file.c:173:13: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
    make[1]: Leaving directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/output_file'
    cp plugins/output_file/output_file.so .
    make -C plugins/output_http all
    make[1]: Entering directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/output_http'
    gcc -c -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o httpd.lo httpd.c
    httpd.c: In function ‘command’:
    httpd.c:552:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    httpd.c: In function ‘send_error’:
    httpd.c:388:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    httpd.c: In function ‘send_snapshot’:
    httpd.c:260:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_http.so output_http.c httpd.lo
    make[1]: Leaving directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/output_http'
    cp plugins/output_http/output_http.so .
    make -C plugins/input_testpicture all
    make[1]: Entering directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/input_testpicture'
    gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o input_testpicture.so input_testpicture.c
    make[1]: Leaving directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/input_testpicture'
    cp plugins/input_testpicture/input_testpicture.so .
    make -C plugins/output_autofocus all
    make[1]: Entering directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/output_autofocus'
    gcc -c -DDEBUG -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o processJPEG_onlyCenter.lo processJPEG_onlyCenter.c
    processJPEG_onlyCenter.c: In function ‘getFrameSharpnessValue’:
    processJPEG_onlyCenter.c:45:7: warning: variable ‘quant_Y’ set but not used [-Wunused-but-set-variable]
    gcc -DDEBUG -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -lm -o output_autofocus.so output_autofocus.c processJPEG_onlyCenter.lo
    make[1]: Leaving directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/output_autofocus'
    cp plugins/output_autofocus/output_autofocus.so .
    make -C plugins/input_gspcav1 all
    make[1]: Entering directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/input_gspcav1'
    gcc -c -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o spcav4l.lo spcav4l.c
    In file included from spcav4l.c:25:0:
    spcav4l.h:134:20: error: field ‘vmmap’ has incomplete type
    spcav4l.h:135:26: error: field ‘videocap’ has incomplete type
    spcav4l.h:137:20: error: field ‘videombuf’ has incomplete type
    spcav4l.h:138:23: error: field ‘videopict’ has incomplete type
    spcav4l.h:139:22: error: field ‘videowin’ has incomplete type
    spcav4l.h:140:23: error: field ‘videochan’ has incomplete type
    spcav4l.c: In function ‘convertframe’:
    spcav4l.c:162:7: error: ‘VIDEO_PALETTE_YUV420P’ undeclared (first use in this function)
    spcav4l.c:162:7: note: each undeclared identifier is reported only once for each function it appears in
    spcav4l.c:165:7: error: ‘VIDEO_PALETTE_RGB24’ undeclared (first use in this function)
    spcav4l.c:168:7: error: ‘VIDEO_PALETTE_RGB565’ undeclared (first use in this function)
    spcav4l.c:171:7: error: ‘VIDEO_PALETTE_RGB32’ undeclared (first use in this function)
    spcav4l.c: In function ‘v4lGrab’:
    spcav4l.c:200:26: error: ‘VIDIOCSYNC’ undeclared (first use in this function)
    spcav4l.c:236:27: error: ‘VIDIOCMCAPTURE’ undeclared (first use in this function)
    spcav4l.c:192:10: warning: variable ‘temps’ set but not used [-Wunused-but-set-variable]
    spcav4l.c: In function ‘GetVideoPict’:
    spcav4l.c:294:22: error: ‘VIDIOCGPICT’ undeclared (first use in this function)
    spcav4l.c: In function ‘SetVideoPict’:
    spcav4l.c:310:22: error: ‘VIDIOCSPICT’ undeclared (first use in this function)
    spcav4l.c: In function ‘init_v4l’:
    spcav4l.c:335:22: error: ‘VIDIOCGCAP’ undeclared (first use in this function)
    spcav4l.c:342:23: error: ‘VIDIOCGCHAN’ undeclared (first use in this function)
    spcav4l.c:393:26: error: ‘VIDIOCGMBUF’ undeclared (first use in this function)
    spcav4l.c:410:23: error: ‘VIDIOCMCAPTURE’ undeclared (first use in this function)
    spcav4l.c:424:26: error: ‘VIDIOCGWIN’ undeclared (first use in this function)
    spcav4l.c:428:26: error: ‘VIDIOCSWIN’ undeclared (first use in this function)
    spcav4l.c: In function ‘probePalette’:
    spcav4l.c:439:33: error: ‘VIDEO_PALETTE_YUV420P’ undeclared (first use in this function)
    spcav4l.c:439:55: error: ‘VIDEO_PALETTE_RGB24’ undeclared (first use in this function)
    spcav4l.c:439:75: error: ‘VIDEO_PALETTE_RGB565’ undeclared (first use in this function)
    spcav4l.c:439:96: error: ‘VIDEO_PALETTE_RGB32’ undeclared (first use in this function)
    spcav4l.c:440:23: error: storage size of ‘pict’ isn’t known
    spcav4l.c:446:21: error: ‘VIDIOCGPICT’ undeclared (first use in this function)
    spcav4l.c:446:2: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c:453:6: error: request for member ‘palette’ in something not a structure or union
    spcav4l.c:453:2: warning: statement with no effect [-Wunused-value]
    spcav4l.c:455:6: error: request for member ‘depth’ in something not a structure or union
    spcav4l.c:455:2: warning: statement with no effect [-Wunused-value]
    spcav4l.c:456:41: error: request for member ‘palette’ in something not a structure or union
    spcav4l.c:456:54: error: request for member ‘depth’ in something not a structure or union
    spcav4l.c:456:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat]
    spcav4l.c:456:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int *’ [-Wformat]
    spcav4l.c:457:21: error: ‘VIDIOCSPICT’ undeclared (first use in this function)
    spcav4l.c:457:2: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c:462:2: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c:467:10: error: request for member ‘palette’ in something not a structure or union
    spcav4l.c:467:19: warning: comparison between pointer and integer [enabled by default]
    spcav4l.c:440:23: warning: unused variable ‘pict’ [-Wunused-variable]
    spcav4l.c: In function ‘probeSize’:
    spcav4l.c:489:22: error: storage size of ‘win’ isn’t known
    spcav4l.c:495:21: error: request for member ‘maxwidth’ in something not a structure or union
    spcav4l.c:495:7: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:496:21: error: request for member ‘minwidth’ in something not a structure or union
    spcav4l.c:496:7: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:497:21: error: request for member ‘maxheight’ in something not a structure or union
    spcav4l.c:497:7: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:498:21: error: request for member ‘minheight’ in something not a structure or union
    spcav4l.c:498:7: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:507:22: error: ‘VIDIOCGWIN’ undeclared (first use in this function)
    spcav4l.c:507:3: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c:513:5: error: request for member ‘width’ in something not a structure or union
    spcav4l.c:513:2: warning: statement with no effect [-Wunused-value]
    spcav4l.c:514:5: error: request for member ‘height’ in something not a structure or union
    spcav4l.c:514:2: warning: statement with no effect [-Wunused-value]
    spcav4l.c:515:21: error: ‘VIDIOCSWIN’ undeclared (first use in this function)
    spcav4l.c:515:2: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c:517:13: error: request for member ‘width’ in something not a structure or union
    spcav4l.c:517:24: error: request for member ‘height’ in something not a structure or union
    spcav4l.c:517:10: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat]
    spcav4l.c:517:10: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int *’ [-Wformat]
    spcav4l.c:521:8: error: request for member ‘width’ in something not a structure or union
    spcav4l.c:521:19: error: request for member ‘height’ in something not a structure or union
    spcav4l.c:521:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat]
    spcav4l.c:521:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int *’ [-Wformat]
    spcav4l.c:490:21: warning: variable ‘minh’ set but not used [-Wunused-but-set-variable]
    spcav4l.c:490:16: warning: variable ‘maxh’ set but not used [-Wunused-but-set-variable]
    spcav4l.c:489:22: warning: unused variable ‘win’ [-Wunused-variable]
    spcav4l.c: In function ‘changeSize’:
    spcav4l.c:542:31: error: request for member ‘palette’ in something not a structure or union
    spcav4l.c:542:16: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:543:28: error: request for member ‘depth’ in something not a structure or union
    spcav4l.c:543:13: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:552:16: error: request for member ‘height’ in something not a structure or union
    spcav4l.c:552:7: warning: statement with no effect [-Wunused-value]
    spcav4l.c:553:16: error: request for member ‘width’ in something not a structure or union
    spcav4l.c:553:7: warning: statement with no effect [-Wunused-value]
    spcav4l.c:554:16: error: request for member ‘format’ in something not a structure or union
    spcav4l.c:554:7: warning: statement with no effect [-Wunused-value]
    spcav4l.c:560:26: error: ‘VIDIOCGWIN’ undeclared (first use in this function)
    spcav4l.c:560:7: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c:562:19: error: request for member ‘height’ in something not a structure or union
    spcav4l.c:562:7: warning: statement with no effect [-Wunused-value]
    spcav4l.c:563:19: error: request for member ‘width’ in something not a structure or union
    spcav4l.c:563:7: warning: statement with no effect [-Wunused-value]
    spcav4l.c:564:26: error: ‘VIDIOCSWIN’ undeclared (first use in this function)
    spcav4l.c:564:7: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c:567:20: error: request for member ‘height’ in something not a structure or union
    spcav4l.c:567:41: error: request for member ‘width’ in something not a structure or union
    spcav4l.c:567:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat]
    spcav4l.c:567:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int *’ [-Wformat]
    spcav4l.c:540:7: warning: variable ‘erreur’ set but not used [-Wunused-but-set-variable]
    spcav4l.c: In function ‘convertpalette’:
    spcav4l.c:654:7: error: ‘VIDEO_PALETTE_YUV420P’ undeclared (first use in this function)
    spcav4l.c:657:7: error: ‘VIDEO_PALETTE_RGB24’ undeclared (first use in this function)
    spcav4l.c:660:7: error: ‘VIDEO_PALETTE_RGB565’ undeclared (first use in this function)
    spcav4l.c:663:7: error: ‘VIDEO_PALETTE_RGB32’ undeclared (first use in this function)
    spcav4l.c: In function ‘paletteconvert’:
    spcav4l.c:678:10: error: ‘VIDEO_PALETTE_YUV420P’ undeclared (first use in this function)
    spcav4l.c:678:3: warning: return makes integer from pointer without a cast [enabled by default]
    spcav4l.c:681:10: error: ‘VIDEO_PALETTE_RGB24’ undeclared (first use in this function)
    spcav4l.c:681:3: warning: return makes integer from pointer without a cast [enabled by default]
    spcav4l.c:684:10: error: ‘VIDEO_PALETTE_RGB565’ undeclared (first use in this function)
    spcav4l.c:684:3: warning: return makes integer from pointer without a cast [enabled by default]
    spcav4l.c:687:10: error: ‘VIDEO_PALETTE_RGB32’ undeclared (first use in this function)
    spcav4l.c:687:3: warning: return makes integer from pointer without a cast [enabled by default]
    spcav4l.c: In function ‘checkpalette’:
    spcav4l.c:731:16: error: request for member ‘height’ in something not a structure or union
    spcav4l.c:731:7: warning: statement with no effect [-Wunused-value]
    spcav4l.c:732:16: error: request for member ‘width’ in something not a structure or union
    spcav4l.c:732:7: warning: statement with no effect [-Wunused-value]
    spcav4l.c:733:16: error: request for member ‘format’ in something not a structure or union
    spcav4l.c:733:7: warning: statement with no effect [-Wunused-value]
    spcav4l.c:735:13: error: request for member ‘frame’ in something not a structure or union
    spcav4l.c:735:4: warning: statement with no effect [-Wunused-value]
    spcav4l.c:736:23: error: ‘VIDIOCMCAPTURE’ undeclared (first use in this function)
    spcav4l.c:736:4: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c: In function ‘GetDepth’:
    spcav4l.c:888:10: error: ‘VIDEO_PALETTE_RAW’ undeclared (first use in this function)
    spcav4l.c:893:10: error: ‘VIDEO_PALETTE_YUV420P’ undeclared (first use in this function)
    spcav4l.c:898:10: error: ‘VIDEO_PALETTE_RGB565’ undeclared (first use in this function)
    spcav4l.c:901:10: error: ‘VIDEO_PALETTE_RGB24’ undeclared (first use in this function)
    spcav4l.c:904:10: error: ‘VIDEO_PALETTE_RGB32’ undeclared (first use in this function)
    spcav4l.c: In function ‘SpcaGetBrightness’:
    spcav4l.c:924:27: error: request for member ‘brightness’ in something not a structure or union
    spcav4l.c:924:40: error: invalid operands to binary >> (have ‘int *’ and ‘int’)
    spcav4l.c:924:3: warning: return makes integer from pointer without a cast [enabled by default]
    spcav4l.c: In function ‘SpcaSetBrightness’:
    spcav4l.c:930:18: error: request for member ‘brightness’ in something not a structure or union
    spcav4l.c:930:3: warning: statement with no effect [-Wunused-value]
    spcav4l.c: In function ‘SpcaGetContrast’:
    spcav4l.c:945:27: error: request for member ‘contrast’ in something not a structure or union
    spcav4l.c:945:38: error: invalid operands to binary >> (have ‘int *’ and ‘int’)
    spcav4l.c:945:3: warning: return makes integer from pointer without a cast [enabled by default]
    spcav4l.c: In function ‘SpcaSetContrast’:
    spcav4l.c:951:18: error: request for member ‘contrast’ in something not a structure or union
    spcav4l.c:951:3: warning: statement with no effect [-Wunused-value]
    spcav4l.c: In function ‘SpcaGetColors’:
    spcav4l.c:965:27: error: request for member ‘colour’ in something not a structure or union
    spcav4l.c:965:36: error: invalid operands to binary >> (have ‘int *’ and ‘int’)
    spcav4l.c:965:3: warning: return makes integer from pointer without a cast [enabled by default]
    spcav4l.c: In function ‘SpcaSetColors’:
    spcav4l.c:971:18: error: request for member ‘colour’ in something not a structure or union
    spcav4l.c:971:3: warning: statement with no effect [-Wunused-value]
    spcav4l.c: In function ‘upbright’:
    spcav4l.c:982:26: error: request for member ‘brightness’ in something not a structure or union
    spcav4l.c:982:9: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:985:17: error: request for member ‘brightness’ in something not a structure or union
    spcav4l.c:985:2: warning: statement with no effect [-Wunused-value]
    spcav4l.c: In function ‘downbright’:
    spcav4l.c:998:26: error: request for member ‘brightness’ in something not a structure or union
    spcav4l.c:998:9: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:1001:17: error: request for member ‘brightness’ in something not a structure or union
    spcav4l.c:1001:2: warning: statement with no effect [-Wunused-value]
    spcav4l.c: In function ‘upcontrast’:
    spcav4l.c:1014:28: error: request for member ‘contrast’ in something not a structure or union
    spcav4l.c:1014:11: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:1017:17: error: request for member ‘contrast’ in something not a structure or union
    spcav4l.c:1017:2: warning: statement with no effect [-Wunused-value]
    spcav4l.c: In function ‘downcontrast’:
    spcav4l.c:1030:28: error: request for member ‘contrast’ in something not a structure or union
    spcav4l.c:1030:11: warning: assignment makes integer from pointer without a cast [enabled by default]
    spcav4l.c:1033:17: error: request for member ‘contrast’ in something not a structure or union
    spcav4l.c:1033:2: warning: statement with no effect [-Wunused-value]
    spcav4l.c: In function ‘spcaSetAutoExpo’:
    spcav4l.c:1085:14: error: ‘BASE_VIDIOCPRIVATE’ undeclared (first use in this function)
    spcav4l.c:1085:14: error: invalid operands to binary << (have ‘int *’ and ‘int’)
    spcav4l.c:1085:14: error: invalid operands to binary | (have ‘unsigned int’ and ‘int *’)
    spcav4l.c:1085:14: error: invalid operands to binary | (have ‘int *’ and ‘long unsigned int’)
    spcav4l.c:1085:14: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c: In function ‘spcaPrintParam’:
    spcav4l.c:1093:14: error: ‘BASE_VIDIOCPRIVATE’ undeclared (first use in this function)
    spcav4l.c:1093:14: error: invalid operands to binary << (have ‘int *’ and ‘int’)
    spcav4l.c:1093:14: error: invalid operands to binary | (have ‘unsigned int’ and ‘int *’)
    spcav4l.c:1093:14: error: invalid operands to binary | (have ‘int *’ and ‘long unsigned int’)
    spcav4l.c:1093:14: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c: In function ‘spcaSetTimeInterval’:
    spcav4l.c:1105:14: error: ‘BASE_VIDIOCPRIVATE’ undeclared (first use in this function)
    spcav4l.c:1105:14: error: invalid operands to binary << (have ‘int *’ and ‘int’)
    spcav4l.c:1105:14: error: invalid operands to binary | (have ‘unsigned int’ and ‘int *’)
    spcav4l.c:1105:14: error: invalid operands to binary | (have ‘int *’ and ‘long unsigned int’)
    spcav4l.c:1105:14: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    spcav4l.c: In function ‘spcaSetQuality’:
    spcav4l.c:1117:14: error: ‘BASE_VIDIOCPRIVATE’ undeclared (first use in this function)
    spcav4l.c:1117:14: error: invalid operands to binary << (have ‘int *’ and ‘int’)
    spcav4l.c:1117:14: error: invalid operands to binary | (have ‘unsigned int’ and ‘int *’)
    spcav4l.c:1117:14: error: invalid operands to binary | (have ‘int *’ and ‘long unsigned int’)
    spcav4l.c:1117:14: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
    /usr/include/x86_64-linux-gnu/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
    make[1]: *** [spcav4l.lo] Error 1
    make[1]: Leaving directory `/home/physics/Downloads/mjpg-streamer-r63/plugins/input_gspcav1'
    make: *** [input_gspcav1.so] Error 2
    Last edited by Plasma_NZ; November 30th, 2011 at 04:53 AM.

  6. #6
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    322
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: mjpg_streamer ubuntu 11.10 64bit

    if anyone out there can perhaps make a working .deb for mjpg_streamer for ubuntu 11.10 64bit - i'm sure there'd be alot of people who'd be very appreciative..

  7. #7
    Join Date
    Nov 2011
    Beans
    1

    Re: mjpg_streamer ubuntu 11.10 64bit

    I have the same query,what should I do I've been receiving errors..

  8. #8
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    322
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: mjpg_streamer ubuntu 11.10 64bit

    Quote Originally Posted by ShamenKing View Post
    I have the same query,what should I do I've been receiving errors..
    paste the error's your getting.... see if we can get you to the same point as me...

  9. #9
    Join Date
    Sep 2009
    Beans
    1,293

    Re: mjpg_streamer ubuntu 11.10 64bit

    -r63 is too old for oneiric. svn works here though, and includes the videodev.h changes. Still need to alter the lib order in the Makefile but compiles fine otherwise.

    Code:
    $ svn co https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer mjpg-streamer
    $ cd mjpg-streamer/mjpg-streamer
    $ sed -i 's/$(CC) $(CFLAGS) $(LFLAGS) $(OBJECTS) -o $(APP_BINARY)/$(CC) $(CFLAGS) $(OBJECTS) $(LFLAGS) -o $(APP_BINARY)/g' Makefile 
    $ make

  10. #10
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    322
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: mjpg_streamer ubuntu 11.10 64bit

    Quote Originally Posted by SevenMachines View Post
    -r63 is too old for oneiric. svn works here though, and includes the videodev.h changes. Still need to alter the lib order in the Makefile but compiles fine otherwise.

    Code:
    $ svn co https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer mjpg-streamer
    $ cd mjpg-streamer/mjpg-streamer
    $ sed -i 's/$(CC) $(CFLAGS) $(LFLAGS) $(OBJECTS) -o $(APP_BINARY)/$(CC) $(CFLAGS) $(OBJECTS) $(LFLAGS) -o $(APP_BINARY)/g' Makefile 
    $ make
    Your a legend.... kudos to you...

    will edit my first post with instructions for anyone else whos keen

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •