[MacPorts] #41794: Gcc48 incompatible with opencv

MacPorts noreply at macports.org
Fri Dec 13 05:07:10 PST 2013


#41794: Gcc48 incompatible with opencv
--------------------------------+--------------------------------
 Reporter:  giacomo.dabisias@…  |      Owner:  macports-tickets@…
     Type:  defect              |     Status:  new
 Priority:  Normal              |  Milestone:
Component:  ports               |    Version:  2.2.1
 Keywords:                      |       Port:
--------------------------------+--------------------------------
 I installed using macport gcc48 and opencv. I tried to compile a simple
 opencv example with the compiler and I get:

 Undefined symbols for architecture x86_64:
   "cv::namedWindow(std::basic_string<char, std::char_traits<char>,
 std::allocator<char> > const&, int)", referenced from:
       _main in ccot2eJS.o
   "cv::VideoCapture::VideoCapture(std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > const&)", referenced from:
       _main in ccot2eJS.o
   "cv::imshow(std::basic_string<char, std::char_traits<char>,
 std::allocator<char> > const&, cv::_InputArray const&)", referenced from:
       _main in ccot2eJS.o
 ld: symbol(s) not found for architecture x86_64
 collect2: error: ld returned 1 exit status

 If i use the gcc provided by apple or clang the program compiles. I also
 tried to recompile opencv by myself and i still get the same error. I
 tested all this also on a second
 machine having the same results. It seems that there is some
 incompatibility between gcc48 and opencv.

-- 
Ticket URL: <https://trac.macports.org/ticket/41794>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list