سؤال

Is someone able to give me a quick tutorial how to install cvBlob on osx 10.7 ? On their site they only mention linux and windows. A link would also be welcome, because i can't find any tutorial how to do this.

I tried to do it based on the linux tutorial and did the cmake with an extra entry with referes to my opencv folder. The cmake worked but When i do the make command, i get this error :

enter image description here

what do i have to do ?

the cmake:

enter image description here

Thx in advance

هل كانت مفيدة؟

المحلول

To give a quick overview how i got cvBlobs working :

1) download the latest cvBlob

2) Extract it

3) Navigate to cvBlob/cvBlob and open the CMakeLists.txt

4) Add this code :

if(APPLE)
   target_link_libraries(cvblob ${OpenCV_LIBS})
endif()

UNDERNEATH

add_library(cvblob SHARED ${cvBlob_CVBLOB})

5) open your cmake program and select the path to the folder where said cmake file is. And select a path where you want your libs to be

6) Execute it

7) Open terminal, go to the folder

8) Then you get a makefile which you can sudo make install

9) To use the cvBlob in xcode you have to add the 'libcvblob.dylib' to the other linker flags.

نصائح أخرى

About your

No matching constructor for initialization of 'cvflann::LshIndexParams'

you might want to try changing your compiler to LLVM GCC 4.2 in XCode.

Try adding -m32 to CFLAGS/CXXFLAGS in cmake.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top