Right Click your project > Properties > Add Library > User Library > Select OpenCV2.4.7ģ) Create a class file with a main function > and duplicate the following codes ħ) in Eclipse Juno, create a user library, Eclipse > Preferences > Java > Build Path > User Libraries > New > Add External JARSĨ) a) for jar file, browse to opencv-247.jar (usually in build/bin/opencv-247.jar)Ĩ) b) also for native library location, browse to the lib directory (usually in build/lib) 3) mkdir build inside the directory (where you extract openCV2.4.7 to)Ĭmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=/usr/bin/g++ -D CMAKE_C_COMPILER=/usr/bin/gcc -D CMAKE_CXX_FLAGS:STRING='-stdlib=libc++ -std=gnu++11' -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_legacy=NO -D CMAKE_OSX_ARCHITECTURES=x86_64 -D WITH_CUDA=OFF.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |