Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Modify OpenCV4Android source code

I have to modify a functiont of OpenCVAandroid and re-builtd it, but for now, I want to add a new function that does something, for example return some value or print "hello world". This is only for testing.

Here my questions: 1 - Is there any way to compile only a part (module) of OpenCV instead of to built all library in each compilation?

2 - If the above is "yes", which are the steps I have to follow?

3 - Finally, the code I have to modify will be used from java. It means that, apart of modify c++ pure code, I have to modify the "jni par", and modify to the proper .java file, is correct?

Modify OpenCV4Android source code

I have to modify a functiont of OpenCVAandroid and re-builtd re-build it, but for now, I want to add a new function that does something, for example return some value or print "hello world". This is only for testing.

Here my questions: questions: 1 - Is there any way to compile only a part (module) of OpenCV instead of to built all library in each compilation?

2 - If the above is "yes", which what are the steps I have to follow?

3 - Finally, the code I have to modify will be used from java. It means that, apart of modify c++ pure code, I have to modify the "jni par", part", and modify to the proper .java file, is correct?

click to hide/show revision 3
retagged

updated 2015-02-27 03:04:27 -0600

berak gravatar image

Modify OpenCV4Android source code

I have to modify a functiont of OpenCVAandroid and re-build it, but for now, I want to add a new function that does something, for example return some value or print "hello world". This is only for testing.

Here my questions: 1 - Is there any way to compile only a part (module) of OpenCV instead of to built all library in each compilation?

2 - If the above is "yes", what are the steps I have to follow?

3 - Finally, the code I have to modify will be used from java. It means that, apart of modify c++ pure code, I have to modify the "jni part", and modify the proper .java file, is correct?

Modify OpenCV4Android source code

I have to modify a functiont of OpenCVAandroid and re-build it, but for now, I want to add a new function that does something, for example return some value or print "hello world". This is only for testing.

testing. I'm working on windows.

I have try to compile a single OpenCV module (core). What I have done is to go to core folder location and run "cmake .", but I have an error:

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present.  A line of code such as

cmake_minimum_required(VERSION 3.2)

Here my questions: questions:

1 - Is there any way to compile only a part (module) of OpenCV instead of to built all library in each compilation?

2 - If the above is "yes", what are the steps I have to follow?

3 - Finally, the code I have to modify will be used from java. It means that, apart of modify c++ pure code, I have to modify the "jni part", and modify the proper .java file, is correct?

Modify OpenCV4Android source code

I have to modify a functiont of OpenCVAandroid and re-build it, but for now, I want to add a new function that does something, for example return some value or print "hello world". This is only for testing. I'm working on windows.

I have try to compile a single OpenCV module (core). What I have done is to go to core folder location and run "cmake .", but I have an error:

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present.  A line of code such as

cmake_minimum_required(VERSION 3.2)

Here my questions:

1 - Is there any way to compile only a part (module) of OpenCV instead of to built all library in each compilation?

2 - If the above is "yes", what are the steps I have to follow?

3 - Finally, the code I have to modify will be used from java. It means that, apart of modify c++ pure code, I have to modify the "jni part", and modify the proper .java file, is correct?

Modify OpenCV4Android source code

I have to modify a functiont of OpenCVAandroid and re-build it, but for now, I want to add a new function that does something, for example return some value or print "hello world". This is only for testing. I'm working on windows.

I have try to compile a single OpenCV module (core). What I have done is to go to core folder location and run "cmake .", but I have an error:

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present.  A line of code such as
 cmake_minimum_required(VERSION 3.2)
should be added at the top of the file.
-- Configuring incomplete, errors occurred!
See also "E:/Mis documentos/git_repos/opencv_android/opencv-master/modules/core/
CMakeFiles/CMakeOutput.log".

Here my questions:

1 - Is there any way to compile only a part (module) of OpenCV instead of to built all library in each compilation?

2 - If the above is "yes", what are the steps I have to follow?

3 - Finally, the code I have to modify will be used from java. It means that, apart of modify c++ pure code, I have to modify the "jni part", and modify the proper .java file, is correct?

Modify OpenCV4Android source code

I have to modify a functiont of OpenCVAandroid and re-build it, but for now, I want to add a new function that does something, for example return some value or print "hello world". This is only for testing. I'm working on windows.

I have try to compile a single OpenCV module (core). What I have done is to go to core folder location and run "cmake .", but I have an error:

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present.  A line of code such as
cmake_minimum_required(VERSION 3.2)
should be added at the top of the file.
[...]
-- Configuring incomplete, errors occurred!
See also "E:/Mis documentos/git_repos/opencv_android/opencv-master/modules/core/
CMakeFiles/CMakeOutput.log".

Here my questions:

1 - Is there any way to compile only a part (module) of OpenCV instead of to built all library in each compilation?

2 - If the above is "yes", what are the steps I have to follow?

3 - Finally, the code I have to modify will be used from java. It means that, apart of modify c++ pure code, I have to modify the "jni part", and modify the proper .java file, is correct?