Skip to content

How can i compile it under linux ? #4

@tegger2000

Description

@tegger2000

Maybe someone can help me with compiling under linux. I tried the original and the fork from smartass01, without success.


/src$ g++ -I ../include/ -I/usr/include/ exf1ctrl.cpp -o exf1ctrl
In file included from ../include/cxcore.hpp:2244,
                 from ../include/cxcore.h:2123,
                 from ../include/cv.h:58,
                 from exf1api.h:13,
                 from exf1ctrl.h:11,
                 from exf1ctrl.cpp:11:
../include/cxmat.hpp: In member function ‘cv::MatND_<_Tp>& cv::MatND_<_Tp>::operator=(const cv::MatND&)’:
../include/cxmat.hpp:3881:27: error: cannot call member function ‘cv::Mat& cv::Mat::operator=(const cv::Mat&)’ without object
 3881 |         Mat::operator = (m);
      |                           ^
exf1ctrl.cpp: In function ‘int main(int, char**)’:
exf1ctrl.cpp:120:7: error: ‘gets’ was not declared in this scope; did you mean ‘fgets’?
  120 |       gets(input);
      |       ^~~~
      |       fgets

with smarass1 version i got :

$ g++ -I ../include/ -I/usr/include/ src/exf1ctrl.cpp -o exf1ctrl
/usr/bin/ld: /tmp/ccKkB4Ej.o: in function `main':
exf1ctrl.cpp:(.text+0x4f): undefined reference to `exf1api::exf1api()'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x4a3): undefined reference to `exf1api::initCamera()'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x5be): undefined reference to `exf1api::setupAperture(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x5d7): undefined reference to `exf1api::setupAperture(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x5f0): undefined reference to `exf1api::setupAperture(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x609): undefined reference to `exf1api::setupAperture(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x622): undefined reference to `exf1api::setupAperture(unsigned short)'
/usr/bin/ld: /tmp/ccKkB4Ej.o:exf1ctrl.cpp:(.text+0x638): more undefined references to `exf1api::setupAperture(unsigned short)' follow
/usr/bin/ld: /tmp/ccKkB4Ej.o: in function `main':
exf1ctrl.cpp:(.text+0x738): undefined reference to `exf1api::setupShutter(exf1api::SHUTTER_MODES, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x756): undefined reference to `exf1api::setupShutter(exf1api::SHUTTER_MODES, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x774): undefined reference to `exf1api::setupShutter(exf1api::SHUTTER_MODES, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x792): undefined reference to `exf1api::setupMovie(exf1api::MOVIE_MODES, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x7b0): undefined reference to `exf1api::setupMovie(exf1api::MOVIE_MODES, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x7cb): undefined reference to `exf1api::setupMovie(exf1api::MOVIE_MODES, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x7e6): undefined reference to `exf1api::setupMovie(exf1api::MOVIE_MODES, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x801): undefined reference to `exf1api::setupMovie(exf1api::MOVIE_MODES, char)'
/usr/bin/ld: /tmp/ccKkB4Ej.o:exf1ctrl.cpp:(.text+0x81c): more undefined references to `exf1api::setupMovie(exf1api::MOVIE_MODES, char)' follow
/usr/bin/ld: /tmp/ccKkB4Ej.o: in function `main':
exf1ctrl.cpp:(.text+0x88b): undefined reference to `exf1api::setupFrameRate(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x8a1): undefined reference to `exf1api::setupFrameRate(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x8b7): undefined reference to `exf1api::setupFrameRate(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x8cd): undefined reference to `exf1api::setupFrameRate(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x95a): undefined reference to `exf1api::setupExposure(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x970): undefined reference to `exf1api::setupExposure(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x986): undefined reference to `exf1api::setupExposure(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x99c): undefined reference to `exf1api::setupExposure(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xa29): undefined reference to `exf1api::setupFocus(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xa3f): undefined reference to `exf1api::setupFocus(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xa55): undefined reference to `exf1api::setupFocus(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xa6b): undefined reference to `exf1api::setupFocus(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xad2): undefined reference to `exf1api::setupMonitor(char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xb22): undefined reference to `exf1api::grapPcMonitorFrame(char const*)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xb4b): undefined reference to `exf1api::setupMonitor(char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xb6b): undefined reference to `exf1api::halfShutter()'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xbf1): undefined reference to `exf1api::setupIso(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xc07): undefined reference to `exf1api::setupIso(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xc1d): undefined reference to `exf1api::setupIso(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xc33): undefined reference to `exf1api::setupIso(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xc49): undefined reference to `exf1api::setupIso(unsigned short)'
/usr/bin/ld: /tmp/ccKkB4Ej.o:exf1ctrl.cpp:(.text+0xc5f): more undefined references to `exf1api::setupIso(unsigned short)' follow
/usr/bin/ld: /tmp/ccKkB4Ej.o: in function `main':
exf1ctrl.cpp:(.text+0xcec): undefined reference to `exf1api::setupFlash(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xd02): undefined reference to `exf1api::setupFlash(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xd18): undefined reference to `exf1api::setupFlash(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xd2e): undefined reference to `exf1api::setupFlash(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xdec): undefined reference to `exf1api::movie(char const*, int)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xe16): undefined reference to `exf1api::movie(char const*, int)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xe36): undefined reference to `exf1api::movie(char const*, int)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xea5): undefined reference to `exf1api::setupShutterSpeed(unsigned short)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xeca): undefined reference to `exf1api::exitCamera()'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xee5): undefined reference to `exf1api::terminateCamera()'
/usr/bin/ld: exf1ctrl.cpp:(.text+0xfab): undefined reference to `exf1api::shutter(char const*, char const*, int)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x1051): undefined reference to `exf1api::shutter(char const*, char const*, int)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x10ea): undefined reference to `exf1api::shutter(char const*, char const*, int)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x1188): undefined reference to `exf1api::shutter(char const*, char const*, int)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x121d): undefined reference to `exf1api::focus(char, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x1255): undefined reference to `exf1api::focus(char, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x128d): undefined reference to `exf1api::focus(char, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x1301): undefined reference to `exf1api::focus(char, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x1355): undefined reference to `exf1api::focus(char, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x140a): undefined reference to `libexf1::exf1Cmd(unsigned short, ...)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x14af): undefined reference to `exf1api::zoom(char, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x14e7): undefined reference to `exf1api::zoom(char, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x151f): undefined reference to `exf1api::zoom(char, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x1593): undefined reference to `exf1api::zoom(char, char)'
/usr/bin/ld: exf1ctrl.cpp:(.text+0x15e7): undefined reference to `exf1api::zoom(char, char)'
collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions