Undefined symbols in libopencv_core.dylib on OSX (OpenCV 2.4) (Bug #1897)


Added by John Mather about 1 year ago. Updated about 1 year ago.


Status:Cancelled Start date:2012-05-06
Priority:Normal Due date:
Assignee:Anatoly Baksheev % Done:

0%

Category:build/install
Target version:2.4.1
Affected version: Pull request:

Description

When compiling OpenCV 2.4 on OS X 10.6.8 I get the following error:

[ 20%] Built target pch_Generate_opencv_videostab
Linking CXX shared library ../../lib/libopencv_core.dylib
Undefined symbols:
  "cv::gpu::device::copyToWithMask_gpu(cv::gpu::DevMem2D_<unsigned char>, cv::gpu::DevMem2D_<unsigned char>, unsigned long, int, cv::gpu::DevMem2D_<unsigned char>, bool, CUstream_st*)", referenced from:
      cv::gpu::copyWithMask(cv::gpu::GpuMat const&, cv::gpu::GpuMat&, cv::gpu::GpuMat const&, CUstream_st*)in gpumat.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [lib/libopencv_core.2.4.0.dylib] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2

This did not occur when building the 2.4 release candidate. My settings are below:

-- Detected version of GNU GCC: 42 (402)
-- Extracting svn version, please wait...
-- SVNVERSION: exported
-- Found OpenEXR: /opt/local/lib/libIlmImf.dylib
-- Found Sphinx 1.1.3: /usr/local/bin/sphinx-build
-- CUDA detected: 4.2
-- CUDA NVCC target flags: -gencode;arch=compute_11,code=sm_11;-gencode;arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13;-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_20,code=compute_20
-- 
-- General configuration for OpenCV 2.4.0 =====================================
-- 
--   Platform:
--     Host:                        Darwin 10.8.0 i386
--     CMake:                       2.8.7
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /opt/local/bin/gmake
--     Configuration:               Release
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ Compiler:                /usr/bin/c++ (ver 4.2.1)
--     C++ flags (Release):         -Wall -pthread -fomit-frame-pointer -msse -msse2 -O3 -DNDEBUG   -DNDEBUG
--     C++ flags (Debug):           -Wall -pthread -fomit-frame-pointer -msse -msse2 -g  -O0 -DDEBUG -D_DEBUG
--     C Compiler:                  /usr/bin/gcc
--     C flags (Release):           -Wall -pthread -fomit-frame-pointer -msse -msse2 -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -Wall -pthread -fomit-frame-pointer -msse -msse2 -g  -O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):      
--     Linker flags (Debug):        
-- 
--   OpenCV modules:
--     To be built:                 calib3d contrib core features2d flann gpu highgui imgproc legacy ml nonfree objdetect photo python stitching ts video videostab
--     Disabled by user:            -
--     Disabled by dependency:      -
--     Unavailable:                 androidcamera java
-- 
--   GUI: 
--     Cocoa:                       YES
--     OpenGL support:              NO
-- 
--   Media I/O: 
--     ZLib:                        /usr/lib/libz.dylib (ver 1.2.5)
--     JPEG:                        /usr/local/lib/libjpeg.dylib (ver 62)
--     PNG:                         /Library/Frameworks/libpng.framework (ver 1.2.8)
--     TIFF:                        /usr/local/lib/libtiff.dylib (ver 42)
--     JPEG 2000:                   /opt/local/lib/libjasper.dylib (ver 1.900.1)
--     OpenEXR:                     /opt/local/lib/libImath.dylib /opt/local/lib/libIlmImf.dylib /opt/local/lib/libIex.dylib /opt/local/lib/libHalf.dylib /opt/local/lib/libIlmThread.dylib (ver 1.6.1)
--     OpenNI:                      NO
--     OpenNI PrimeSensor Modules:  NO
-- 
--   Video I/O:                     QTKit
--     FFMPEG:                      NO
--       codec:                     NO
--       format:                    NO
--       util:                      NO
--       swscale:                   NO
--       gentoo-style:              NO
-- 
--   Other third-party libraries:
--     Use IPP:                     NO
--     Use TBB:                     NO
--     Use Cuda:                    YES (ver 4.2)
--     Use Eigen:                   YES (ver 2.0.17)
-- 
--   NVIDIA CUDA:                   (ver 4.2)
--     Use CUFFT:                   YES
--     Use CUBLAS:                  YES
--     NVIDIA GPU arch:             11 12 13 20 21
--     NVIDIA PTX archs:            11 12 13 20 21
--     NVIDIA GPU features:         11 12 13 20 20 20
-- 
--   Python:
--     Interpreter:                 /usr/bin/python (ver 2.6.1)
--     Libraries:                   /opt/local/lib/libpython2.7.dylib
--     numpy:                       /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/include (ver 1.2.1)
--     packages path:               lib/python2.6/site-packages
-- 
--   Documentation:
--     Build Documentation:         YES
--     Sphinx:                      /usr/local/bin/sphinx-build (ver 1.1.3)
--     PdfLaTeX compiler:           /opt/local/bin/pdflatex
-- 
--   Tests and samples:
--     Tests:                       YES
--     Performance tests:           YES
--     Examples:                    NO
-- 
--   Install path:                  /usr/local
-- 
--   cvconfig.h is in:              /Users/jm/Desktop/Compiled/opencv-2.4/2.4/opencv/build
-- -----------------------------------------------------------------
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jm/Desktop/Compiled/opencv-2.4/2.4/opencv/build

Has anyone else run into this problem? I'm using CUDA Driver 4.2.9, with GPU driver 1.6.36.10. I have also attached the CMakeCache just in case.

Thanks.


CMakeCache.txt (133.4 kB) John Mather, 2012-05-06 10:35 pm


Related issues

duplicates Bug #1901: OpenCV2.4 build with GPU fails when building static library Cancelled 2012-05-04

History

Updated by Andrey Kamaev about 1 year ago

  • Assignee changed from Alexander Shishkov to Anatoly Baksheev

Updated by Andrey Kamaev about 1 year ago

  • Description changed from When compiling OpenCV 2.4 on OS X 10.6.8 I get the following error: [ 20%] B... to When compiling OpenCV 2.4 on OS X 10.6.8 I get the following error: <pre&... More

Updated by Andrey Kamaev about 1 year ago

Closing as duplicate.
Please reopen if this problem is different.

  • Status changed from Open to Cancelled

Updated by Anatoly Baksheev about 1 year ago

Does it happen with trunk now?

Updated by Anatoly Baksheev about 1 year ago

SourceForge package will be updated with 2.4.1 in the end of May.

Also available in: Atom PDF