jacksonliam / mjpg-streamer

Fork of http://sourceforge.net/projects/mjpg-streamer/
3k stars 1.22k forks source link

Compilation error with PLUGIN_CVFILTER_PY and OpenCV 3.2.0 #87

Closed VictorLamoine closed 7 years ago

VictorLamoine commented 7 years ago

Ubuntu 16.04 gcc 6.3.0

Error

[ 46%] Building CXX object plugins/input_opencv/filters/cvfilter_py/CMakeFiles/cvfilter_py.dir/filter_py.cpp.o
/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/plugins/input_opencv/filters/cvfilter_py/filter_py.cpp: In function 'PyObject* get_dirname(const char*)':
/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/plugins/input_opencv/filters/cvfilter_py/filter_py.cpp:42:63: error: 'PyUnicode_DecodeFSDefault' was not declared in this scope
     PyObject* obj = PyUnicode_DecodeFSDefault(dirname(dupargs));
                                                               ^
/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/plugins/input_opencv/filters/cvfilter_py/filter_py.cpp: In function 'PyObject* get_import(const char*)':
/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/plugins/input_opencv/filters/cvfilter_py/filter_py.cpp:54:51: error: 'PyUnicode_DecodeFSDefault' was not declared in this scope
     PyObject* obj = PyUnicode_DecodeFSDefault(base);
                                                   ^
plugins/input_opencv/filters/cvfilter_py/CMakeFiles/cvfilter_py.dir/build.make:62: recipe for target 'plugins/input_opencv/filters/cvfilter_py/CMakeFiles/cvfilter_py.dir/filter_py.cpp.o' failed
make[3]: *** [plugins/input_opencv/filters/cvfilter_py/CMakeFiles/cvfilter_py.dir/filter_py.cpp.o] Error 1
make[3]: Leaving directory '/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/_build'
CMakeFiles/Makefile2:347: recipe for target 'plugins/input_opencv/filters/cvfilter_py/CMakeFiles/cvfilter_py.dir/all' failed
make[2]: *** [plugins/input_opencv/filters/cvfilter_py/CMakeFiles/cvfilter_py.dir/all] Error 2
make[2]: Leaving directory '/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/_build'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/_build'
Makefile:17: recipe for target 'all' failed

Python packages on my system

$ dpkg -l | grep python
ii  dh-python                                                   2.20151103ubuntu1.1                                   all          Debian helper tools for packaging Python libraries and applications
ii  libboost-mpi-python-dev                                     1.58.0.1ubuntu1                                       amd64        C++ interface to the Message Passing Interface (MPI), Python Bindings (default version)
ii  libboost-mpi-python1.58-dev                                 1.58.0+dfsg-5ubuntu3.1                                amd64        C++ interface to the Message Passing Interface (MPI), Python Bindings
ii  libboost-mpi-python1.58.0                                   1.58.0+dfsg-5ubuntu3.1                                amd64        C++ interface to the Message Passing Interface (MPI), Python Bindings
ii  libboost-python-dev                                         1.58.0.1ubuntu1                                       amd64        Boost.Python Library development files (default version)
ii  libboost-python1.58-dev                                     1.58.0+dfsg-5ubuntu3.1                                amd64        Boost.Python Library development files
ii  libboost-python1.58.0                                       1.58.0+dfsg-5ubuntu3.1                                amd64        Boost.Python Library
ii  libpeas-1.0-0-python3loader                                 1.16.0-1ubuntu2                                       amd64        Application plugin library
ii  libpython-all-dev:amd64                                     2.7.11-1                                              amd64        package depending on all supported Python development packages
ii  libpython-dev:amd64                                         2.7.11-1                                              amd64        header files and a static library for Python (default)
ii  libpython-stdlib:amd64                                      2.7.11-1                                              amd64        interactive high-level object-oriented language (default python version)
ii  libpython2.7:amd64                                          2.7.12-1ubuntu0~16.04.1                               amd64        Shared Python runtime library (version 2.7)
ii  libpython2.7-dev:amd64                                      2.7.12-1ubuntu0~16.04.1                               amd64        Header files and a static library for Python (v2.7)
ii  libpython2.7-minimal:amd64                                  2.7.12-1ubuntu0~16.04.1                               amd64        Minimal subset of the Python language (version 2.7)
ii  libpython2.7-stdlib:amd64                                   2.7.12-1ubuntu0~16.04.1                               amd64        Interactive high-level object-oriented language (standard library, version 2.7)
ii  libpython3-stdlib:amd64                                     3.5.1-3                                               amd64        interactive high-level object-oriented language (default python3 version)
ii  libpython3.5:amd64                                          3.5.2-2ubuntu0~16.04.1                                amd64        Shared Python runtime library (version 3.5)
ii  libpython3.5-minimal:amd64                                  3.5.2-2ubuntu0~16.04.1                                amd64        Minimal subset of the Python language (version 3.5)
ii  libpython3.5-stdlib:amd64                                   3.5.2-2ubuntu0~16.04.1                                amd64        Interactive high-level object-oriented language (standard library, version 3.5)
ii  python                                                      2.7.11-1                                              amd64        interactive high-level object-oriented language (default version)
ii  python-acoustid                                             1.1.0-3                                               all          Acoustid interface implementation and Chromaprint bindings
ii  python-all                                                  2.7.11-1                                              amd64        package depending on all supported Python runtime versions
ii  python-all-dev                                              2.7.11-1                                              amd64        package depending on all supported Python development packages
ii  python-apt-common                                           1.1.0~beta1build1                                     all          Python interface to libapt-pkg (locales)
ii  python-attr                                                 15.2.0-1                                              all          Attributes without boilerplate (Python 2)
ii  python-audioread                                            1.0.3-1build1                                         all          Backend-agnostic audio decoding Python package
ii  python-autobahn                                             0.10.3+dfsg1-5                                        all          WebSocket client and server library, WAMP framework - Python 2.x
ii  python-bs4                                                  4.4.1-1                                               all          error-tolerant HTML parser for Python
ii  python-bson                                                 3.2-1build1                                           amd64        Python implementation of BSON for MongoDB
ii  python-bson-ext                                             3.2-1build1                                           amd64        C-coded extension to the python-bson package
ii  python-bzrlib                                               2.7.0-2ubuntu3                                        amd64        distributed version control system - python library
ii  python-cairo                                                1.8.8-2                                               amd64        Python bindings for the Cairo vector graphics library
ii  python-catkin-lint                                          1.4.12-1~16.04                                        all          Check catkin packages for common errors
ii  python-catkin-pkg                                           0.3.6-1                                               all          catkin package library
ii  python-catkin-pkg-modules                                   0.3.6-1                                               all          catkin package library
ii  python-catkin-tools                                         0.4.4-1                                               all          Command line tools for working with catkin.
ii  python-cffi-backend                                         1.5.2-1ubuntu1                                        amd64        Foreign Function Interface for Python calling C code - backend
ii  python-chardet                                              2.3.0-2                                               all          universal character encoding detector for Python2
ii  python-cheetah                                              2.4.4-3.fakesyncbuild1                                amd64        text-based template engine and Python code generator
ii  python-collada                                              0.4-2                                                 all          Python module for creating, editing and loading COLLADA
ii  python-concurrent.futures                                   3.0.5-1                                               all          backport of concurrent.futures package from Python 3.2
ii  python-configobj                                            5.0.6-2                                               all          simple but powerful config file reader and writer for Python 2
ii  python-crypto                                               2.6.1-6ubuntu0.16.04.2                                amd64        cryptographic algorithms and protocols for Python
ii  python-cryptography                                         1.2.3-1ubuntu0.1                                      amd64        Python library exposing cryptographic recipes and primitives (Python 2)
ii  python-cssutils                                             1.0-4.1                                               all          CSS Cascading Style Sheets parser and builder
ii  python-cycler                                               0.9.0-1                                               all          composable kwarg iterator (Python 2)
ii  python-dateutil                                             2.4.2-1                                               all          powerful extensions to the standard datetime module
ii  python-dbus                                                 1.2.0-3                                               amd64        simple interprocess messaging system (Python interface)
ii  python-defusedxml                                           0.4.1-2build1                                         all          XML bomb protection for Python stdlib modules (for Python 2)
ii  python-dev                                                  2.7.11-1                                              amd64        header files and a static library for Python (default)
ii  python-dnspython                                            1.12.0-1                                              all          DNS toolkit for Python
ii  python-docutils                                             0.12+dfsg-1                                           all          text processing system for reStructuredText (implemented in Python 2)
ii  python-ecdsa                                                0.13-2                                                all          ECDSA cryptographic signature library (Python 2)
ii  python-empy                                                 3.3.2-1build1                                         all          templating system for Python (Python 2)
ii  python-enum34                                               1.1.2-1                                               all          backport of Python 3.4's enum package
ii  python-gconf                                                2.28.1+dfsg-1.1                                       amd64        Python bindings for the GConf configuration database system
rc  python-genpy                                                0.5.7-6                                               all          Python Robot OS message and service generators
ii  python-gi                                                   3.20.0-0ubuntu1                                       amd64        Python 2.x bindings for gobject-introspection libraries
ii  python-gi-cairo                                             3.20.0-0ubuntu1                                       amd64        Python Cairo bindings for the GObject library
ii  python-glade2                                               2.24.0-4ubuntu1                                       amd64        GTK+ bindings: Glade support
ii  python-gnome2                                               2.28.1+dfsg-1.1                                       amd64        Python bindings for the GNOME desktop environment
ii  python-gobject                                              3.20.0-0ubuntu1                                       all          Python 2.x bindings for GObject - transitional package
ii  python-gobject-2                                            2.28.6-12ubuntu1                                      amd64        deprecated static Python bindings for the GObject library
ii  python-gpgme                                                0.3-1.1                                               amd64        python wrapper for the GPGME library
ii  python-gst0.10                                              0.10.22-3ubuntu3                                      amd64        generic media-playing framework (Python bindings)
ii  python-gtk2                                                 2.24.0-4ubuntu1                                       amd64        Python bindings for the GTK+ widget set
ii  python-html5lib                                             0.999-4                                               all          HTML parser/tokenizer based on the WHATWG HTML5 specification (Python 2)
ii  python-httplib2                                             0.9.1+dfsg-1                                          all          comprehensive HTTP client library written for Python
ii  python-idna                                                 2.0-3                                                 all          Python IDNA2008 (RFC 5891) handling (Python 2)
ii  python-imaging                                              3.1.2-0ubuntu1.1                                      all          Python Imaging Library compatibility layer
ii  python-ipaddress                                            1.0.16-1                                              all          Backport of Python 3 ipaddress module (Python 2)
ii  python-keybinder                                            0.3.1-1                                               amd64        registers global key bindings for applications - Python bindings
ii  python-keyring                                              7.3-1ubuntu1                                          all          store and access your passwords safely
ii  python-launchpadlib                                         1.10.3-3ubuntu0.1                                     all          Launchpad web services client library
ii  python-lazr.restfulclient                                   0.13.4-5ubuntu1                                       all          client for lazr.restful-based web services
ii  python-lazr.uri                                             1.0.3-2build1                                         all          library for parsing, manipulating, and generating URIs
ii  python-ldb                                                  2:1.1.24-1ubuntu3                                     amd64        Python bindings for LDB
ii  python-levenshtein                                          0.12.0-2build1                                        amd64        extension for computing string similarities and edit distances
ii  python-libuser                                              1:0.60~dfsg-1.2                                       amd64        user and group account administration library - Python interface
ii  python-libvirt                                              1.3.1-1ubuntu1                                        amd64        libvirt Python bindings
ii  python-libxml2                                              2.9.3+dfsg1-1ubuntu0.2                                amd64        Python bindings for the GNOME XML library
ii  python-lxml                                                 3.5.0-1build1                                         amd64        pythonic binding for the libxml2 and libxslt libraries
ii  python-lz4                                                  0.7.0+dfsg-3build1                                    amd64        Python interface to the lz4 compression library
ii  python-matplotlib                                           1.5.1-1ubuntu1                                        amd64        Python based plotting system in a style similar to Matlab
ii  python-matplotlib-data                                      1.5.1-1ubuntu1                                        all          Python based plotting system (data package)
ii  python-minimal                                              2.7.11-1                                              amd64        minimal subset of the Python language (default version)
ii  python-mlt                                                  6.5+git201704252005~ubuntu16.04.1                     amd64        multimedia framework (Python bindings)
ii  python-mpi4py                                               1.3.1+hg20131106-2ubuntu5                             amd64        bindings of the Message Passing Interface (MPI) standard
ii  python-msgpack                                              0.4.6-1build1                                         amd64        Python implementation of MessagePack format
ii  python-mutagen                                              1.31-1ubuntu1                                         all          audio metadata editing library
ii  python-mysqldb                                              1.3.7-1build2                                         amd64        Python interface to MySQL
ii  python-ndg-httpsclient                                      0.4.0-3                                               all          enhanced HTTPS support for httplib and urllib2 using PyOpenSSL for Python2
ii  python-netifaces                                            0.10.4-0.1build2                                      amd64        portable network interface information - Python 2.x
ii  python-nose                                                 1.3.7-1                                               all          test discovery and running of Python's unittest
ii  python-notify                                               0.1.1-4                                               amd64        Python bindings for libnotify
ii  python-numpy                                                1:1.11.0-1ubuntu1                                     amd64        Numerical Python adds a fast array facility to the Python language
ii  python-oauth                                                1.0.1-5                                               all          Python library implementing of the OAuth protocol
ii  python-opencv                                               2.4.9.1+dfsg-1.5ubuntu1                               amd64        Python bindings for the computer vision library
ii  python-opengl                                               3.0.2-1                                               all          Python bindings to OpenGL (Python 2)
ii  python-openssl                                              0.15.1-2build1                                        all          Python 2 wrapper around the OpenSSL library
ii  python-osrf-pycommon                                        0.1.3-1                                               all          Commonly needed Python modules, used by Python software deve
ii  python-pam                                                  0.4.2-13.2ubuntu2                                     amd64        Python interface to the PAM library
ii  python-paramiko                                             1.16.0-1                                              all          Make ssh v2 connections with Python (Python 2)
rc  python-pbr                                                  1.8.0-4ubuntu1                                        all          inject useful and sensible default behaviors into setuptools - Python 2.x
ii  python-pil:amd64                                            3.1.2-0ubuntu1.1                                      amd64        Python Imaging Library (Pillow fork)
ii  python-pil.imagetk:amd64                                    3.1.2-0ubuntu1.1                                      amd64        Python Imaging Library - ImageTk Module (Pillow fork)
ii  python-pip                                                  8.1.1-2ubuntu0.4                                      all          alternative Python package installer
ii  python-pip-whl                                              8.1.1-2ubuntu0.4                                      all          alternative Python package installer
ii  python-pivy                                                 0.5.0~v609hg-3.1                                      amd64        Coin binding for Python
ii  python-pkg-resources                                        20.7.0-1                                              all          Package Discovery and Resource Access using pkg_resources
ii  python-pocket-lint                                          0.5.31-0ubuntu1                                       all          composite linter and style checker
ii  python-progressbar                                          2.3-2                                                 all          text progress bar library for Python
ii  python-psutil                                               3.4.2-1                                               amd64        module providing convenience functions for managing processes
ii  python-pyasn1                                               0.1.9-1                                               all          ASN.1 library for Python (Python 2 module)
ii  python-pyasn1-modules                                       0.0.7-0.1                                             all          Collection of protocols modules written in ASN.1 language
ii  python-pyassimp                                             3.2~dfsg-3                                            all          3D model import library (Python bindings)
ii  python-pycurl                                               7.43.0-1ubuntu1                                       amd64        Python bindings to libcurl
ii  python-pydot                                                1.0.28-2                                              all          Python interface to Graphviz's dot
ii  python-pygments                                             2.1+dfsg-1                                            all          syntax highlighting package written in Python
ii  python-pygoocanvas                                          0.14.1-1.1ubuntu1                                     amd64        GooCanvas Python bindings
ii  python-pymad                                                0.9-1                                                 amd64        Python wrapper to the MPEG Audio Decoder library (Python 2)
ii  python-pyorbit                                              2.24.0-7.1                                            amd64        A Python language binding for the ORBit2 CORBA implementation
ii  python-pyparsing                                            2.0.3+dfsg1-1ubuntu0.1                                all          Python parsing module
ii  python-pyqt5                                                5.5.1+dfsg-3ubuntu4                                   amd64        Python 2 bindings for Qt5
ii  python-pyqt5.qtopengl                                       5.5.1+dfsg-3ubuntu4                                   amd64        Python 2 bindings for Qt5's OpenGL module
ii  python-pyqt5.qtsvg                                          5.5.1+dfsg-3ubuntu4                                   amd64        Python 2 bindings for Qt5's SVG module
ii  python-pyqt5.qtwebkit                                       5.5.1+dfsg-3ubuntu4                                   amd64        Python 2 bindings for Qt5's WebKit module
ii  python-pyside.qtcore                                        1.2.2-2build2                                         amd64        Qt 4 core module - Python bindings
ii  python-pyside.qtgui                                         1.2.2-2build2                                         amd64        Qt 4 GUI module - Python bindings
ii  python-pyside.qtsvg                                         1.2.2-2build2                                         amd64        Qt 4 SVG module - Python bindings
ii  python-pyside.qtuitools                                     1.2.2-2build2                                         amd64        Qt 4 UI tools module - Python bindings
ii  python-pyside.qtxml                                         1.2.2-2build2                                         amd64        Qt 4 XML module - Python bindings
ii  python-pyside2                                              2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  all          Python bindings for Qt5 (big metapackage)
ii  python-pyside2.qtconcurrent                                 2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 Concurrent module - Python bindings
ii  python-pyside2.qtcore                                       2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 core module - Python bindings
ii  python-pyside2.qtgui                                        2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 GUI module - Python bindings
ii  python-pyside2.qthelp                                       2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 help module - Python bindings
ii  python-pyside2.qtnetwork                                    2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 network module - Python bindings
ii  python-pyside2.qtprintsupport                               2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 PrintSupport module - Python bindings
ii  python-pyside2.qtqml                                        2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 PrintSupport module - Python3 bindings
ii  python-pyside2.qtquick                                      2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 PrintSupport module - Python3 bindings
ii  python-pyside2.qtquickwidgets                               2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 PrintSupport module - Python3 bindings
ii  python-pyside2.qtscript                                     2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 script module - Python bindings
ii  python-pyside2.qtsql                                        2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 SQL module - Python bindings
ii  python-pyside2.qtsvg                                        2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 SVG module - Python bindings
ii  python-pyside2.qttest                                       2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 test module - Python bindings
ii  python-pyside2.qtuitools                                    2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 UI tools module - Python bindings
ii  python-pyside2.qtwebkit                                     2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 WebKit module - Python bindings
ii  python-pyside2.qtwebkitwidgets                              2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 WebKitWidgets module - Python bindings
ii  python-pyside2.qtwidgets                                    2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 Widgets module - Python bindings
ii  python-pyside2.qtx11extras                                  2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 XML module - Python bindings
ii  python-pyside2.qtxml                                        2.0.0+dev-0~201604151742~rev1858~pkg38~ubuntu16.04.1  amd64        Qt 5 XML module - Python bindings
ii  python-qt4                                                  4.11.4+dfsg-1build4                                   amd64        Python bindings for Qt4
ii  python-qt4-gl                                               4.11.4+dfsg-1build4                                   amd64        Python bindings for Qt4's OpenGL module
ii  python-requests                                             2.9.1-3                                               all          elegant and simple HTTP library for Python2, built for human beings
ii  python-roman                                                2.0.0-2                                               all          module for generating/analyzing Roman numerals for Python 2
ii  python-rosdep                                               0.11.8-1                                              all          rosdep package manager abstrction tool for ROS
ii  python-rosdistro                                            0.6.2-1                                               all          A tool to work with rosdistro files
ii  python-rosdistro-modules                                    0.6.2-1                                               all          A tool to work with rosdistro files
ii  python-rosinstall                                           0.7.8-1                                               all          The installer for ROS
ii  python-rospkg                                               1.1.1-1                                               all          ROS package library
ii  python-rospkg-modules                                       1.1.1-1                                               all          ROS package library
ii  python-samba                                                2:4.3.11+dfsg-0ubuntu0.16.04.9                        amd64        Python bindings for Samba
ii  python-secretstorage                                        2.1.3-1                                               all          Python module for storing secrets - Python 2.x version
ii  python-serial                                               3.0.1-1                                               all          pyserial - module encapsulating access for the serial port
ii  python-service-identity                                     16.0.0-2                                              all          Service identity verification for pyOpenSSL (Python 2 module)
ii  python-setuptools                                           20.7.0-1                                              all          Python Distutils Enhancements
ii  python-simplejson                                           3.8.1-1ubuntu2                                        amd64        simple, fast, extensible JSON encoder/decoder for Python
ii  python-sip                                                  4.17+dfsg-1build1                                     amd64        Python/C++ bindings generator runtime library
ii  python-sip-dev                                              4.17+dfsg-1build1                                     amd64        Python/C++ bindings generator development files
ii  python-six                                                  1.10.0-3                                              all          Python 2 and 3 compatibility library (Python 2 interface)
ii  python-snappy                                               0.5-1build1                                           amd64        Python library for the snappy compression library from Google
ii  python-talloc                                               2.1.5-2                                               amd64        hierarchical pool based memory allocator - Python bindings
ii  python-tdb                                                  1.3.8-2                                               amd64        Python bindings for TDB
ii  python-tk                                                   2.7.11-2                                              amd64        Tkinter - Writing Tk applications with Python
ii  python-trollius                                             2.1~b1-3                                              all          port of the Tulip project on Python 2.7 - Python 2.x
ii  python-twisted                                              16.0.0-1                                              all          Event-based framework for internet applications (dependency package)
ii  python-twisted-bin                                          16.0.0-1                                              amd64        Event-based framework for internet applications
ii  python-twisted-core                                         16.0.0-1                                              all          Event-based framework for internet applications
ii  python-txaio                                                1.0.0-3                                               all          compatibility API between asyncio/Twisted/Trollius - Python 2.x
ii  python-tz                                                   2014.10~dfsg1-0ubuntu2                                all          Python version of the Olson timezone database
ii  python-urllib3                                              1.13.1-2ubuntu0.16.04.1                               all          HTTP library with thread-safe connection pooling for Python
ii  python-vcstools                                             0.1.39-1                                              all          VCS/SCM source control library for svn, git, hg, and bzr
ii  python-vm-builder                                           0.12.4+bzr494-0ubuntu1                                all          VM builder
ii  python-vte                                                  1:0.28.2-5ubuntu3                                     amd64        Python bindings for the VTE widget set
ii  python-vtk6                                                 6.2.0+dfsg1-10build1+debian11.1+osrf1                 amd64        Python bindings for VTK
ii  python-wadllib                                              1.3.2-3                                               all          Python library for navigating WADL files
ii  python-wheel                                                0.29.0-1                                              all          built-package format for Python
ii  python-wstool                                               0.1.13-1                                              all          workspace multi-SCM commands
ii  python-wxgtk3.0                                             3.0.2.0+dfsg-1build1                                  amd64        Python interface to the wxWidgets Cross-platform C++ GUI toolkit
ii  python-wxversion                                            3.0.2.0+dfsg-1build1                                  all          API for selecting the wxPython version to use
ii  python-xdg                                                  0.25-4                                                all          Python 2 library to access freedesktop.org standards
ii  python-yaml                                                 3.11-3build1                                          amd64        YAML parser and emitter for Python
ii  python-zope.interface                                       4.1.3-1build1                                         amd64        Interfaces for Python
ii  python2.7                                                   2.7.12-1ubuntu0~16.04.1                               amd64        Interactive high-level object-oriented language (version 2.7)
ii  python2.7-dev                                               2.7.12-1ubuntu0~16.04.1                               amd64        Header files and a static library for Python (v2.7)
ii  python2.7-minimal                                           2.7.12-1ubuntu0~16.04.1                               amd64        Minimal subset of the Python language (version 2.7)
ii  python3                                                     3.5.1-3                                               amd64        interactive high-level object-oriented language (default python3 version)
ii  python3-apport                                              2.20.1-0ubuntu2.10                                    all          Python 3 library for Apport crash report handling
ii  python3-apt                                                 1.1.0~beta1build1                                     amd64        Python 3 interface to libapt-pkg
ii  python3-aptdaemon                                           1.1.1+bzr982-0ubuntu14                                all          Python 3 module for the server and client of aptdaemon
ii  python3-aptdaemon.gtk3widgets                               1.1.1+bzr982-0ubuntu14                                all          Python 3 GTK+ 3 widgets to run an aptdaemon client
ii  python3-aptdaemon.pkcompat                                  1.1.1+bzr982-0ubuntu14                                all          PackageKit compatibilty for AptDaemon
ii  python3-blinker                                             1.3.dfsg2-1build1                                     all          fast, simple object-to-object and broadcast signaling library
ii  python3-brlapi                                              5.3.1-2ubuntu2.1                                      amd64        Braille display access via BRLTTY - Python3 bindings
ii  python3-bs4                                                 4.4.1-1                                               all          error-tolerant HTML parser for Python 3
ii  python3-cairo                                               1.10.0+dfsg-5build1                                   amd64        Python 3 bindings for the Cairo vector graphics library
ii  python3-cffi-backend                                        1.5.2-1ubuntu1                                        amd64        Foreign Function Interface for Python 3 calling C code - runtime
ii  python3-chardet                                             2.3.0-2                                               all          universal character encoding detector for Python3
ii  python3-checkbox-support                                    0.22-1                                                all          collection of Python modules used by PlainBox providers
ii  python3-commandnotfound                                     0.3ubuntu16.04.2                                      all          Python 3 bindings for command-not-found.
ii  python3-cryptography                                        1.2.3-1ubuntu0.1                                      amd64        Python library exposing cryptographic recipes and primitives (Python 3)
ii  python3-cups                                                1.9.73-0ubuntu2                                       amd64        Python3 bindings for CUPS
ii  python3-cupshelpers                                         1.5.7+20160212-0ubuntu2                               all          Python modules for printer configuration with CUPS
ii  python3-dbus                                                1.2.0-3                                               amd64        simple interprocess messaging system (Python 3 interface)
ii  python3-debian                                              0.1.27ubuntu2                                         all          Python 3 modules to work with Debian-related data formats
ii  python3-defer                                               1.0.6-2build1                                         all          Small framework for asynchronous programming (Python 3)
ii  python3-distupgrade                                         1:16.04.22                                            all          manage release upgrades
ii  python3-feedparser                                          5.1.3-3build1                                         all          Universal Feed Parser for Python 3
ii  python3-gdbm:amd64                                          3.5.1-1                                               amd64        GNU dbm database support for Python 3.x
ii  python3-gi                                                  3.20.0-0ubuntu1                                       amd64        Python 3 bindings for gobject-introspection libraries
ii  python3-gi-cairo                                            3.20.0-0ubuntu1                                       amd64        Python 3 Cairo bindings for the GObject library
ii  python3-guacamole                                           0.9.2-1                                               all          framework for creating command line applications (Python 3)
ii  python3-html5lib                                            0.999-4                                               all          HTML parser/tokenizer based on the WHATWG HTML5 specification (Python 3)
ii  python3-httplib2                                            0.9.1+dfsg-1                                          all          comprehensive HTTP client library written for Python3
ii  python3-idna                                                2.0-3                                                 all          Python IDNA2008 (RFC 5891) handling (Python 3)
ii  python3-jinja2                                              2.8-1                                                 all          small but fast and easy to use stand-alone template engine
ii  python3-jwt                                                 1.3.0-1                                               all          Python 3 implementation of JSON Web Token
ii  python3-louis                                               2.6.4-2                                               all          Python bindings for liblouis
ii  python3-lxml                                                3.5.0-1build1                                         amd64        pythonic binding for the libxml2 and libxslt libraries
ii  python3-magic                                               1:5.25-2ubuntu1                                       all          File type determination library using "magic" numbers (Python 3 bindings)
ii  python3-mako                                                1.0.3+ds1-1ubuntu1                                    all          fast and lightweight templating for the Python 3 platform
ii  python3-markupsafe                                          0.23-2build2                                          amd64        HTML/XHTML/XML string library for Python 3
ii  python3-minimal                                             3.5.1-3                                               amd64        minimal subset of the Python language (default python3 version)
ii  python3-numpy                                               1:1.11.0-1ubuntu1                                     amd64        Fast array facility to the Python 3 language
ii  python3-oauthlib                                            1.0.3-1                                               all          generic, spec-compliant implementation of OAuth for Python3
ii  python3-padme                                               1.1.1-2                                               all          mostly transparent proxy class for Python 3
ii  python3-pexpect                                             4.0.1-1                                               all          Python 3 module for automating interactive applications
ii  python3-pil:amd64                                           3.1.2-0ubuntu1.1                                      amd64        Python Imaging Library (Python3)
ii  python3-pkg-resources                                       20.7.0-1                                              all          Package Discovery and Resource Access using pkg_resources
ii  python3-plainbox                                            0.25-1                                                all          toolkit for software and hardware testing (python3 module)
ii  python3-problem-report                                      2.20.1-0ubuntu2.10                                    all          Python 3 library to handle problem reports
ii  python3-ptyprocess                                          0.5-1                                                 all          Run a subprocess in a pseudo terminal from Python 3
ii  python3-pyasn1                                              0.1.9-1                                               all          ASN.1 library for Python (Python 3 module)
ii  python3-pyatspi                                             2.18.0+dfsg-3                                         all          Assistive Technology Service Provider Interface - Python3 bindings
ii  python3-pycurl                                              7.43.0-1ubuntu1                                       amd64        Python bindings to libcurl (Python 3)
ii  python3-pyparsing                                           2.0.3+dfsg1-1ubuntu0.1                                all          Python parsing module, Python3 package
ii  python3-renderpm:amd64                                      3.3.0-1                                               amd64        python low level render interface
ii  python3-reportlab                                           3.3.0-1                                               all          ReportLab library to create PDF documents using Python3
ii  python3-reportlab-accel:amd64                               3.3.0-1                                               amd64        C coded extension accelerator for the ReportLab Toolkit
ii  python3-requests                                            2.9.1-3                                               all          elegant and simple HTTP library for Python3, built for human beings
ii  python3-six                                                 1.10.0-3                                              all          Python 2 and 3 compatibility library (Python 3 interface)
ii  python3-software-properties                                 0.96.20.7                                             all          manage the repositories that you install software from
ii  python3-speechd                                             0.8.3-1ubuntu3                                        all          Python interface to Speech Dispatcher
ii  python3-systemd                                             231-2build1                                           amd64        Python 3 bindings for systemd
ii  python3-uno                                                 1:5.1.6~rc2-0ubuntu1~xenial2                          amd64        Python-UNO bridge
ii  python3-update-manager                                      1:16.04.8                                             all          python 3.x module for update-manager
ii  python3-urllib3                                             1.13.1-2ubuntu0.16.04.1                               all          HTTP library with thread-safe connection pooling for Python3
ii  python3-xdg                                                 0.25-4                                                all          Python 3 library to access freedesktop.org standards
ii  python3-xkit                                                0.5.0ubuntu2                                          all          library for the manipulation of xorg.conf files (Python 3)
ii  python3-xlsxwriter                                          0.7.3-1                                               all          Python 3 module for creating Excel XLSX files
ii  python3.5                                                   3.5.2-2ubuntu0~16.04.1                                amd64        Interactive high-level object-oriented language (version 3.5)
ii  python3.5-minimal                                           3.5.2-2ubuntu0~16.04.1                                amd64        Minimal subset of the Python language (version 3.5)
ii  ros-kinetic-moveit-python                                   0.2.17-1xenial-20170613-202318-0800                   amd64        A pure-python interaface to the MoveIt! ROS API.
ii  ros-kinetic-python-orocos-kdl                               1.3.1-0xenial-20170217-225129-0800                    amd64        This package contains the python bindings PyKDL for the Kinematics and Dynamics Library (KDL), distributed by the Orocos Project.
ii  ros-kinetic-python-qt-binding                               0.3.2-0xenial-20170613-165408-0800                    amd64        This stack provides Python bindings for Qt.
ii  ros-kinetic-rospy-tutorials                                 0.7.1-0xenial-20170613-182829-0800                    amd64        This package attempts to show the features of ROS python API step-by-step, including using messages, servers, parameters, etc.
ii  ros-kinetic-rviz-python-tutorial                            0.10.1-0xenial-20170627-175745-0800                   amd64        Tutorials showing how to call into rviz internals from python scripts.
jacksonliam commented 7 years ago

What commands did you use to build? I assume you have installed opencv and want to use the opencv plugin?

VictorLamoine commented 7 years ago

I am using the installation instructions from OctoPrint.

I'm currently using these instructions on my desktop (so, I'm not on the RPi) to test some webcams :)

VictorLamoine commented 7 years ago

CMakeCache.txt

# This is the CMakeCache file.
# For build in directory: /home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/_build
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar

//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=Release

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=/usr/lib/ccache/c++

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING='-fdiagnostics-color  '

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release builds for minimum
// size.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during release builds with debug info.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//C compiler
CMAKE_C_COMPILER:FILEPATH=/usr/lib/ccache/cc

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release builds for minimum
// size.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds.
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during release builds with debug info.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local

//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=mjpg-streamer

//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//Flags used by the linker during the creation of static libraries.
CMAKE_STATIC_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

//$DESCRIPTION
ENABLE_HTTP_MANAGEMENT:BOOL=OFF

//Path to a file.
GPHOTO2_INCLUDE_DIR:PATH=GPHOTO2_INCLUDE_DIR-NOTFOUND

//Path to a library.
GPHOTO2_LIBRARY:FILEPATH=GPHOTO2_LIBRARY-NOTFOUND

//Path to a library.
GPHOTO2_PORT_LIBRARY:FILEPATH=GPHOTO2_PORT_LIBRARY-NOTFOUND

//Path to a library.
JPEG_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libjpeg.so

//The directory containing a CMake configuration file for OpenCV.
OpenCV_DIR:PATH=/opt/ros/kinetic/share/OpenCV-3.2.0-dev

//pkg-config executable
PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/pkg-config

//OpenCV example filter
PLUGIN_CVFILTER_CPP:BOOL=ON

//OpenCV python filter
PLUGIN_CVFILTER_PY:BOOL=ON

//File input plugin
PLUGIN_INPUT_FILE:BOOL=ON

//HTTP input proxy plugin
PLUGIN_INPUT_HTTP:BOOL=ON

//OpenCV input plugin
PLUGIN_INPUT_OPENCV:BOOL=ON

//Video 4 Linux input plugin
PLUGIN_INPUT_UVC:BOOL=ON

//File output plugin
PLUGIN_OUTPUT_FILE:BOOL=ON

//HTTP server output plugin
PLUGIN_OUTPUT_HTTP:BOOL=ON

//RTSP output plugin
PLUGIN_OUTPUT_RTSP:BOOL=ON

//UDP output stream plugin
PLUGIN_OUTPUT_UDP:BOOL=ON

//Path to a program.
PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3.5

//Path to a file.
PYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7

//Path to a library.
PYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython2.7.so

//Path to a library.
PYTHON_LIBRARY_DEBUG:FILEPATH=PYTHON_LIBRARY_DEBUG-NOTFOUND

//Path to a library.
SDLMAIN_LIBRARY:FILEPATH=SDLMAIN_LIBRARY-NOTFOUND

//Path to a file.
SDL_INCLUDE_DIR:PATH=SDL_INCLUDE_DIR-NOTFOUND

//Path to a library.
SDL_LIBRARY_TEMP:FILEPATH=SDL_LIBRARY_TEMP-NOTFOUND

//Path to a library.
V4L2_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libv4l2.so

//$DESCRIPTION
WXP_COMPAT:BOOL=OFF

//Dependencies for target
cvfilter_cpp_LIB_DEPENDS:STATIC=

//Dependencies for the target
cvfilter_py_LIB_DEPENDS:STATIC=general;opencv_core;general;opencv_imgproc;general;opencv_highgui;general;opencv_videoio;general;/usr/lib/x86_64-linux-gnu/libpython2.7.so;

//Dependencies for target
input_file_LIB_DEPENDS:STATIC=

//Dependencies for target
input_http_LIB_DEPENDS:STATIC=

//Dependencies for the target
input_opencv_LIB_DEPENDS:STATIC=general;opencv_core;general;opencv_imgproc;general;opencv_highgui;general;opencv_videoio;

//Dependencies for the target
input_uvc_LIB_DEPENDS:STATIC=general;/usr/lib/x86_64-linux-gnu/libv4l2.so;general;/usr/lib/x86_64-linux-gnu/libjpeg.so;

//Value Computed by CMake
mjpg-streamer_BINARY_DIR:STATIC=/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/_build

//Value Computed by CMake
mjpg-streamer_SOURCE_DIR:STATIC=/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental

//Dependencies for target
output_file_LIB_DEPENDS:STATIC=

//Dependencies for target
output_http_LIB_DEPENDS:STATIC=

//Dependencies for target
output_rtsp_LIB_DEPENDS:STATIC=

//Dependencies for target
output_udp_LIB_DEPENDS:STATIC=

########################
# INTERNAL cache entries
########################

//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental/_build
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=5
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/usr/bin/ccmake
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Have symbol pthread_create
CMAKE_HAVE_LIBC_CREATE:INTERNAL=
//Have library pthreads
CMAKE_HAVE_PTHREADS_CREATE:INTERNAL=
//Have library pthread
CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1
//Have include pthread.h
CMAKE_HAVE_PTHREAD_H:INTERNAL=1
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/home/victor/libraries/mjpg-streamer/mjpg-streamer-experimental
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=14
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.5
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/bin/uname
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Details about finding NUMPY
FIND_PACKAGE_MESSAGE_DETAILS_NUMPY:INTERNAL=[/usr/lib/python3/dist-packages/numpy/core/include][v()]
//Details about finding OpenCV
FIND_PACKAGE_MESSAGE_DETAILS_OpenCV:INTERNAL=[/opt/ros/kinetic][cfound components:  core imgproc highgui videoio ][v3.2.0()]
//Details about finding PkgConfig
FIND_PACKAGE_MESSAGE_DETAILS_PkgConfig:INTERNAL=[/usr/bin/pkg-config][v0.29.1()]
//Details about finding PythonInterp
FIND_PACKAGE_MESSAGE_DETAILS_PythonInterp:INTERNAL=[/usr/bin/python3.5][v3.5.2()]
//Details about finding PythonLibs
FIND_PACKAGE_MESSAGE_DETAILS_PythonLibs:INTERNAL=[/usr/lib/x86_64-linux-gnu/libpython2.7.so][/usr/include/python2.7][v2.7.12()]
//Details about finding Threads
FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()]
//ADVANCED property for variable: GPHOTO2_INCLUDE_DIR
GPHOTO2_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: GPHOTO2_LIBRARY
GPHOTO2_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: GPHOTO2_PORT_LIBRARY
GPHOTO2_PORT_LIBRARY-ADVANCED:INTERNAL=1
//Have include linux/videodev2.h
HAVE_LINUX_VIDEODEV2_H:INTERNAL=1
//Have include sys/inotify.h
HAVE_SYS_INOTIFY_H:INTERNAL=1
PC_GPHOTO2_CFLAGS:INTERNAL=
PC_GPHOTO2_CFLAGS_I:INTERNAL=
PC_GPHOTO2_CFLAGS_OTHER:INTERNAL=
PC_GPHOTO2_FOUND:INTERNAL=
PC_GPHOTO2_INCLUDEDIR:INTERNAL=
PC_GPHOTO2_LIBDIR:INTERNAL=
PC_GPHOTO2_LIBS:INTERNAL=
PC_GPHOTO2_LIBS_L:INTERNAL=
PC_GPHOTO2_LIBS_OTHER:INTERNAL=
PC_GPHOTO2_LIBS_PATHS:INTERNAL=
PC_GPHOTO2_PREFIX:INTERNAL=
PC_GPHOTO2_STATIC_CFLAGS:INTERNAL=
PC_GPHOTO2_STATIC_CFLAGS_I:INTERNAL=
PC_GPHOTO2_STATIC_CFLAGS_OTHER:INTERNAL=
PC_GPHOTO2_STATIC_LIBDIR:INTERNAL=
PC_GPHOTO2_STATIC_LIBS:INTERNAL=
PC_GPHOTO2_STATIC_LIBS_L:INTERNAL=
PC_GPHOTO2_STATIC_LIBS_OTHER:INTERNAL=
PC_GPHOTO2_STATIC_LIBS_PATHS:INTERNAL=
PC_GPHOTO2_VERSION:INTERNAL=
PC_GPHOTO2_libgphoto2_INCLUDEDIR:INTERNAL=
PC_GPHOTO2_libgphoto2_LIBDIR:INTERNAL=
PC_GPHOTO2_libgphoto2_PREFIX:INTERNAL=
PC_GPHOTO2_libgphoto2_VERSION:INTERNAL=
//ADVANCED property for variable: PKG_CONFIG_EXECUTABLE
PKG_CONFIG_EXECUTABLE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: PYTHON_EXECUTABLE
PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: PYTHON_INCLUDE_DIR
PYTHON_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: PYTHON_LIBRARY
PYTHON_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: PYTHON_LIBRARY_DEBUG
PYTHON_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
__pkg_config_checked_PC_GPHOTO2:INTERNAL=1
VictorLamoine commented 7 years ago

OpenCV packages on my system

$ dpkg -l | grep opencv
ii  libopencv-calib3d-dev:amd64                                 2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-calib3d
ii  libopencv-calib3d2.4v5:amd64                                2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision Camera Calibration library
ii  libopencv-contrib-dev:amd64                                 2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-contrib
ii  libopencv-contrib2.4v5:amd64                                2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision contrib library
ii  libopencv-core-dev:amd64                                    2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-core
ii  libopencv-core2.4v5:amd64                                   2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision core library
ii  libopencv-dev                                               2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for opencv
ii  libopencv-features2d-dev:amd64                              2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-features2d
ii  libopencv-features2d2.4v5:amd64                             2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision Feature Detection and Descriptor Extraction library
ii  libopencv-flann-dev:amd64                                   2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-flann
ii  libopencv-flann2.4v5:amd64                                  2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision Clustering and Search in Multi-Dimensional spaces library
ii  libopencv-gpu-dev:amd64                                     2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-gpu2.4v5
ii  libopencv-gpu2.4v5:amd64                                    2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision GPU library
ii  libopencv-highgui-dev:amd64                                 2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-highgui
ii  libopencv-highgui2.4v5:amd64                                2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision High-level GUI and Media I/O library
ii  libopencv-imgproc-dev:amd64                                 2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-imgproc
ii  libopencv-imgproc2.4v5:amd64                                2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision Image Processing library
ii  libopencv-legacy-dev:amd64                                  2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-legacy
ii  libopencv-legacy2.4v5:amd64                                 2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision legacy library
ii  libopencv-ml-dev:amd64                                      2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-ml
ii  libopencv-ml2.4v5:amd64                                     2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision Machine Learning library
ii  libopencv-objdetect-dev:amd64                               2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-objdetect
ii  libopencv-objdetect2.4v5:amd64                              2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision Object Detection library
ii  libopencv-ocl-dev:amd64                                     2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-ocl2.4v5
ii  libopencv-ocl2.4v5:amd64                                    2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision OpenCL support library
ii  libopencv-photo-dev:amd64                                   2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-photo2.4v5
ii  libopencv-photo2.4v5:amd64                                  2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision computational photography library
ii  libopencv-stitching-dev:amd64                               2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-stitching2.4v5
ii  libopencv-stitching2.4v5:amd64                              2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision image stitching library
ii  libopencv-superres-dev:amd64                                2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-superres2.4v5
ii  libopencv-superres2.4v5:amd64                               2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision Super Resolution library
ii  libopencv-ts-dev:amd64                                      2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-ts2.4v5
ii  libopencv-ts2.4v5:amd64                                     2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision ts library
ii  libopencv-video-dev:amd64                                   2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-video
ii  libopencv-video2.4v5:amd64                                  2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision Video analysis library
ii  libopencv-videostab-dev:amd64                               2.4.9.1+dfsg-1.5ubuntu1                               amd64        development files for libopencv-videostab2.4v5
ii  libopencv-videostab2.4v5:amd64                              2.4.9.1+dfsg-1.5ubuntu1                               amd64        computer vision video stabilization library
ii  libopencv2.4-java                                           2.4.9.1+dfsg-1.5ubuntu1                               all          Java bindings for the computer vision library
ii  libopencv2.4-jni                                            2.4.9.1+dfsg-1.5ubuntu1                               amd64        Java jni library for the computer vision library
ii  opencv-data                                                 2.4.9.1+dfsg-1.5ubuntu1                               all          development data for opencv
ii  python-opencv                                               2.4.9.1+dfsg-1.5ubuntu1                               amd64        Python bindings for the computer vision library
ii  ros-kinetic-opencv3                                         3.2.0-4xenial-20170607-095735-0800                    amd64        OpenCV 3.x
ii  ros-kinetic-vision-opencv                                   1.12.4-0xenial-20170613-183914-0800                   amd64        Packages for interfacing ROS with OpenCV, a library of programming functions for real time computer vision.
VictorLamoine commented 7 years ago

Disabling PLUGIN_CVFILTER_PY allows to compile.

Note to beginners

sudo apt install -yqq cmake-curses-gui
cd _build
ccmake .

Go to the PLUGIN_CVFILTER_PY line, set it to OFF. Press C to configure, then G to generate. When done, call make again.

VictorLamoine commented 7 years ago

Looks like it's failing because I have OpenCV 3.2.0 installed from the ROS repository. I did not try but I think using the system (OpenCV 2.8) would work.

I don't think I need this plug-in so it's fine disabling it in my case.

jacksonliam commented 7 years ago

Thanks for looking into this further and posting a workaround!

I think this is actually related to having multiple versions of python installed (2.7 and 3.x) and something is picking up the 2.7 header rather than the 3.x

I'm not sure if there's anything I can do about this on my side except for disable the opencv plugin from building by default.

ayourk commented 4 years ago

The fix is to have CMake disable the PY part of the plugin if Python 3 is not going to be the Python version to be used: opencv_requires_python3.patch.txt

OR make the filter Python 2 compatible: opencv_python2_compat.patch.txt

I'm not familiar with what it would take to fully convert these 2 routines to Python 2 compatibility, so I simply neutered them to not allow a script file to be passed.

jacksonliam commented 4 years ago

The fix is to have CMake disable the PY part of the plugin if Python 3 is not going to be the Python version to be used: opencv_requires_python3.patch.txt

OR make the filter Python 2 compatible: opencv_python2_compat.patch.txt

I'm not familiar with what it would take to fully convert these 2 routines to Python 2 compatibility, so I simply neutered them to not allow a script file to be passed.

Thanks, that seems like a sensible change.