I have an opencv project that I developed under ubuntu 12.04, on a parellels virtual machine on a Mac with x86_64 architecture. There were many problems with switching screens, which, it seems to me, are associated with a virtual machine, where the video modes in linux mode are turned upside down for a couple of seconds, while the cameras are accessed by the opencv application. I decided to move the project to Xcode on the Mac side of the computer to continue developing opencv. However, I am not familiar with xcode, and I am having problems with the fact that the project will be created correctly.
I have xcode installed. I downloaded and unpacked the latest version of opencv on mac and ran: ~ / src / opencv / build / cmake-gui -G Xcode .. according to the instructions from willowgarage and elsewhere. This seems to work fine (however, I am now wondering if there is a lack of architecture here, although this is the 64-bit version of intel in Xcode). Then I install the xcode project with the source files from the linux project and change the include directories to use / opt / local / include / ... rather than / usr / local / include / ... I switched xcode to use the GCC LLVM compiler in the build settings for the project, then set the Apple LLVM dialog for C ++ to the language dialect in GNU ++ 11 (which, apparently, is incompatible with the line above)
I do not use makefile in xcode (what I know - it has its own project file ...)
I also ran into a linker problem that looked like they could be resolved with the addition of this linker flag:
-lopencv_video
based on a similar publication here: another thread however, in this case, the person used the Makefile in his project.
I tried to add this linker flag in the "Other linker flags" section of the xcode build settings, but still get build errors.
I think I can have two problems: one with the architecture settings when creating opencv libraries with Cmake and one with the linker flag settings in my project.
Currently, the list of build errors is as follows:
Undefined symbols for architecture x86_64: "cv::_InputArray::_InputArray(cv::Mat const&)", referenced from: _main in main.o "cv::_OutputArray::_OutputArray(cv::Mat&)", referenced from: _main in main.o "cv::Mat::deallocate()", referenced from: cv::Mat::release() in main.o "cv::Mat::copySize(cv::Mat const&)", referenced from: cv::Mat::Mat(cv::Mat const&)in main.o cv::Mat::operator=(cv::Mat const&)in main.o "cv::Mat::Mat(_IplImage const*, bool)", referenced from: _main in main.o "cv::imread(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)", referenced from: _main in main.o ---SNIP--- ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status
Can someone give some recommendations on what to do next?
Thanks Walt