how to build opencv with another library.

asked 2016-02-10 18:42:34 -0600

dplex gravatar image

i wanna build opencv with another library compiled '.a', and i prepaired related '.a' and '.h'.

i tried edit cmake in linux. but, fail to build cause java issue. does have any tip or document?

edit retag flag offensive close merge delete

Comments

why this post is awaiting? T.T

dplex gravatar imagedplex ( 2016-02-10 23:07:14 -0600 )edit
1

^^ this forum is under heavy spam attack currently, thus moderated. probably noone was awake for some time, sorry for the delay.

berak gravatar imageberak ( 2016-02-11 01:11:24 -0600 )edit

Use cmake-gui to see all options related to OpenCV build.

CMake errors usually are caused due to the lack of some resource in your computer, and CMake usually tells whats missing.

Pedro Batista gravatar imagePedro Batista ( 2016-02-11 04:42:54 -0600 )edit

yum.. how to add my library(.a) and include files(.h) on cmake-gui?

dplex gravatar imagedplex ( 2016-02-11 05:18:36 -0600 )edit

Add a library in OpenCV CMake build options? Don't know how to do that, sorry.

Pedro Batista gravatar imagePedro Batista ( 2016-02-11 05:49:37 -0600 )edit

What is your intent? You may be able to link against other libraries and point the compiler at other include directories, but without changing the opencv code to use those libraries it would be kind of useless.

mynameisjohnj gravatar imagemynameisjohnj ( 2016-02-11 20:27:41 -0600 )edit

my intent is bottleneck function rewrite in my library function. so change the opencv code the function that call my library.

dplex gravatar imagedplex ( 2016-02-11 20:46:49 -0600 )edit

You can download OpenCV source code and add it as a new project on Eclipse. Then you can edit openCV code and link libraries to compile the way you want.

Pedro Batista gravatar imagePedro Batista ( 2016-02-12 05:20:35 -0600 )edit

i make cmake -G"Eclipse CDT4 - Unix Makefiles". but it occure same issue. i have just one question. i wanna build opencv_video.a include my library(.a). my modified video cmake files is below.

ocv_add_module(video opencv_imgproc opencv_imgproc ${VIDEO_LIBRARIES} WRAP java python) ocv_glob_module_sources() set(VIDEO_LIBRARIES "") list(APPEND VIDEO_LIBRARIES ${mylibrary})

ocv_target_include_directories(opencv_video ${mylibrary_header}) ocv_module_include_directories(${the_module} ${mylibrary_header}) ocv_create_module(${VIDEO_LIBRARIES})

dplex gravatar imagedplex ( 2016-02-15 20:12:53 -0600 )edit