Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build #4

Open
davisj147 opened this issue Jun 5, 2021 · 0 comments
Open

Unable to build #4

davisj147 opened this issue Jun 5, 2021 · 0 comments

Comments

@davisj147
Copy link

Hi

I was unable to build this library with the following error message - do you know what might be causing this? Any help would be appreciated!

cmake --build .

[ 8%] Building CXX object CMakeFiles/detect.dir/CourtLineCandidateDetector.cpp.o
[ 16%] Building CXX object CMakeFiles/detect.dir/CourtLinePixelDetector.cpp.o
[ 25%] Building CXX object CMakeFiles/detect.dir/DebugHelpers.cpp.o
[ 33%] Building CXX object CMakeFiles/detect.dir/GlobalParameters.cpp.o
[ 41%] Building CXX object CMakeFiles/detect.dir/LicenseChecker.cpp.o
[ 50%] Building CXX object CMakeFiles/detect.dir/Line.cpp.o
[ 58%] Building CXX object CMakeFiles/detect.dir/TennisCourtFitter.cpp.o
[ 66%] Building CXX object CMakeFiles/detect.dir/TennisCourtModel.cpp.o
[ 75%] Building CXX object CMakeFiles/detect.dir/TimeMeasurement.cpp.o
[ 83%] Building CXX object CMakeFiles/detect.dir/geometry.cpp.o
[ 91%] Building CXX object CMakeFiles/detect.dir/main.cpp.o
[100%] Linking CXX executable bin/detect

/home/jack/.conan/data/jasper/2.0.14/conan/stable/package/f367272240149f309a4a58a1a2aec786f5e09622/lib/libjasper.a(jas_stream.c.o): In function jas_stream_tmpfile': jas_stream.c:(.text+0xc4b): warning: the use of tmpnam' is dangerous, better use mkstemp' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvDC1394::~CvDC1394()':
cap_dc1394_v2.cpp:(.text._ZN8CvDC1394D2Ev+0x9): undefined reference to dc1394_free' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvCaptureCAM_DC1394_v2_CPP::getVidereCalibrationInfo(char*, int)':
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP24getVidereCalibrationInfoEPci+0x5f): undefined reference to dc1394_get_control_registers' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvCaptureCAM_DC1394_v2_CPP::startCapture()':
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x89): undefined reference to dc1394_video_set_iso_speed' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0xce): undefined reference to dc1394_capture_setup'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x115): undefined reference to dc1394_capture_get_fileno' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x121): undefined reference to dc1394_capture_get_fileno'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x15d): undefined reference to dc1394_video_set_transmission' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x186): undefined reference to dc1394_video_get_mode'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x198): undefined reference to dc1394_video_get_supported_framerates' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x37b): undefined reference to dc1394_video_set_framerate'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x3b6): undefined reference to dc1394_get_control_registers' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x3d9): undefined reference to dc1394_video_get_supported_modes'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x45c): undefined reference to dc1394_video_get_supported_modes' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x4d3): undefined reference to dc1394_get_color_coding_from_video_mode'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x4e8): undefined reference to dc1394_get_image_size_from_video_mode' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x526): undefined reference to dc1394_video_set_operation_mode'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x544): undefined reference to dc1394_video_set_iso_speed' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x571): undefined reference to dc1394_video_set_mode'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x587): undefined reference to dc1394_get_image_size_from_video_mode' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x5d4): undefined reference to dc1394_video_set_mode'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x60e): undefined reference to dc1394_set_control_registers' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP12startCaptureEv+0x62e): undefined reference to dc1394_set_control_registers'
/home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvCaptureCAM_DC1394_v2_CPP::close()': cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP5closeEv+0x17): undefined reference to dc1394_capture_get_fileno'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP5closeEv+0x51): undefined reference to dc1394_video_set_transmission' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP5closeEv+0x5a): undefined reference to dc1394_capture_stop'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP5closeEv+0x63): undefined reference to dc1394_camera_free' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvCaptureCAM_DC1394_v2_CPP::getProperty(int) const':
cap_dc1394_v2.cpp:(.text._ZNK26CvCaptureCAM_DC1394_v2_CPP11getPropertyEi+0xab): undefined reference to dc1394_feature_whitebalance_get_value' cap_dc1394_v2.cpp:(.text._ZNK26CvCaptureCAM_DC1394_v2_CPP11getPropertyEi+0x123): undefined reference to dc1394_feature_whitebalance_get_value'
cap_dc1394_v2.cpp:(.text._ZNK26CvCaptureCAM_DC1394_v2_CPP11getPropertyEi+0x19c): undefined reference to dc1394_feature_get_value' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvCaptureCAM_DC1394_v2_CPP::setProperty(int, double)':
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP11setPropertyEid+0x1a5): undefined reference to dc1394_feature_set_mode' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP11setPropertyEid+0x220): undefined reference to dc1394_feature_set_value'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP11setPropertyEid+0x29a): undefined reference to dc1394_feature_set_power' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP11setPropertyEid+0x2c5): undefined reference to dc1394_feature_set_absolute_control'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP11setPropertyEid+0x2e9): undefined reference to dc1394_feature_set_mode' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP11setPropertyEid+0x31c): undefined reference to dc1394_feature_set_mode'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP11setPropertyEid+0x353): undefined reference to dc1394_feature_set_power' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP11setPropertyEid+0x394): undefined reference to dc1394_feature_whitebalance_set_value'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP11setPropertyEid+0x3be): undefined reference to dc1394_feature_whitebalance_set_value' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvCaptureCAM_DC1394_v2_CPP::grabFrame()':
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x64): undefined reference to dc1394_capture_dequeue' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x7b): undefined reference to dc1394_capture_is_frame_corrupt'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x201): undefined reference to dc1394_debayer_frames' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x2a5): undefined reference to dc1394_capture_enqueue'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x2ef): undefined reference to dc1394_capture_enqueue' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x493): undefined reference to dc1394_get_control_registers'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x54e): undefined reference to dc1394_convert_frames' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x55c): undefined reference to dc1394_capture_enqueue'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x65b): undefined reference to dc1394_deinterlace_stereo' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x66c): undefined reference to dc1394_capture_enqueue'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x6e0): undefined reference to dc1394_capture_enqueue' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP9grabFrameEv+0x72f): undefined reference to dc1394_get_color_coding_bit_size'
/home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvCaptureCAM_DC1394_v2_CPP::~CvCaptureCAM_DC1394_v2_CPP()': cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPPD2Ev[_ZN26CvCaptureCAM_DC1394_v2_CPPD5Ev]+0x21): undefined reference to dc1394_capture_get_fileno'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPPD2Ev[_ZN26CvCaptureCAM_DC1394_v2_CPPD5Ev]+0x5b): undefined reference to dc1394_video_set_transmission' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPPD2Ev[_ZN26CvCaptureCAM_DC1394_v2_CPPD5Ev]+0x64): undefined reference to dc1394_capture_stop'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPPD2Ev[_ZN26CvCaptureCAM_DC1394_v2_CPPD5Ev]+0x6d): undefined reference to dc1394_camera_free' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvCaptureCAM_DC1394_v2_CPP::~CvCaptureCAM_DC1394_v2_CPP()':
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPPD0Ev[_ZN26CvCaptureCAM_DC1394_v2_CPPD5Ev]+0x21): undefined reference to dc1394_capture_get_fileno' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPPD0Ev[_ZN26CvCaptureCAM_DC1394_v2_CPPD5Ev]+0x5b): undefined reference to dc1394_video_set_transmission'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPPD0Ev[_ZN26CvCaptureCAM_DC1394_v2_CPPD5Ev]+0x64): undefined reference to dc1394_capture_stop' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPPD0Ev[_ZN26CvCaptureCAM_DC1394_v2_CPPD5Ev]+0x6d): undefined reference to dc1394_camera_free'
/home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvCaptureCAM_DC1394_v2_CPP::open(int)': cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP4openEi+0x4b): undefined reference to dc1394_capture_get_fileno'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP4openEi+0x86): undefined reference to dc1394_video_set_transmission' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP4openEi+0x8f): undefined reference to dc1394_capture_stop'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP4openEi+0x98): undefined reference to dc1394_camera_free' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP4openEi+0x11e): undefined reference to dc1394_camera_enumerate'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP4openEi+0x137): undefined reference to dc1394_camera_free_list' cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP4openEi+0x17b): undefined reference to dc1394_camera_new'
cap_dc1394_v2.cpp:(.text._ZN26CvCaptureCAM_DC1394_v2_CPP4openEi+0x1dc): undefined reference to dc1394_feature_get_all' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function CvDC1394::CvDC1394()':
cap_dc1394_v2.cpp:(.text._ZN8CvDC1394C2Ev+0x5): undefined reference to dc1394_new' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function cvCreateCameraCapture_DC1394_2(int)':
cap_dc1394_v2.cpp:(.text._Z30cvCreateCameraCapture_DC1394_2i+0xf4): undefined reference to dc1394_camera_enumerate' cap_dc1394_v2.cpp:(.text._Z30cvCreateCameraCapture_DC1394_2i+0x125): undefined reference to dc1394_camera_new'
cap_dc1394_v2.cpp:(.text._Z30cvCreateCameraCapture_DC1394_2i+0x146): undefined reference to dc1394_feature_get_all' cap_dc1394_v2.cpp:(.text._Z30cvCreateCameraCapture_DC1394_2i+0x158): undefined reference to dc1394_camera_free_list'
cap_dc1394_v2.cpp:(.text._Z30cvCreateCameraCapture_DC1394_2i+0x16a): undefined reference to dc1394_camera_free_list' /home/jack/.conan/data/opencv/3.4.3/conan/stable/package/dc3c4d5c48596d1f6511ce817dfdf9d324afe1dc/lib/libopencv_videoio.a(cap_dc1394_v2.cpp.o): In function _GLOBAL__sub_I_cap_dc1394_v2.cpp':
cap_dc1394_v2.cpp:(.text.startup._GLOBAL__sub_I_cap_dc1394_v2.cpp+0x2b): undefined reference to `dc1394_new'
collect2: error: ld returned 1 exit status
CMakeFiles/detect.dir/build.make:286: recipe for target 'bin/detect' failed
make[2]: *** [bin/detect] Error 1
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/detect.dir/all' failed
make[1]: *** [CMakeFiles/detect.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant