Ask Your Question
0

Where are include files for opencv4 after building the project file with codeblock?

asked 2019-03-30 18:03:29 -0600

iTop gravatar image

Hi. I'm tryong to use opencv4 with contrib modules. Building made succesfully with some few warnings. But headers for build directory are missing such as highgui.hpp, core.hpp and so on...

HERE IS MY CMAKE CONFIGS

General configuration for OpenCV 4.1.0-pre ===================================== Version control: 4.0.1-473-g8c25a8eb7

Extra modules: Location (extra): C:/Users/sergio/Documents/Logis/OPENCV/opencv_contrib/modules Version control (extra): 4.0.1-69-gb7e78523

Platform: Timestamp: 2019-03-30T19:34:53Z Host: Windows 10.0.17134 AMD64 CMake: 3.14.1 CMake generator: MinGW Makefiles CMake build tool: C:/mingw/mingw64/bin/mingw32-make.exe Configuration: Release

CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX SSE4_1 (15 files): + SSSE3 SSE4_1 SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (29 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2

C/C++: Built as dynamic libs?: YES C++ Compiler: C:/mingw/mingw64/bin/x86_64-w64-mingw32-g++.exe (ver 8.1.0) C++ flags (Release): -std=c++11 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -std=c++11 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG C Compiler: C:/mingw/mingw64/bin/x86_64-w64-mingw32-gcc-8.1.0.exe C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): -Wl,--gc-sections
Linker flags (Debug): -Wl,--gc-sections
ccache: NO Precompiled headers: YES Extra dependencies: 3rdparty dependencies:

OpenCV modules: To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python_bindings_generator quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto Disabled: world Disabled by dependency: - Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype hdf java js matlab ovis python2 python3 sfm viz Applications: tests perf_tests apps Documentation: NO Non-free algorithms: NO

Windows RT support: NO

GUI: Win32 UI: YES VTK support: NO

Media I/O: ZLib ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-03-31 02:37:12 -0600

berak gravatar image

updated 2019-03-31 03:31:39 -0600

can't help with codebloxx, but you have to run

make install

(from the build folder) to copy the nessecary headers/libs/dlls to

opencv/build/install

(or whatever you set OPENCV_INSTALL_PREFIX to with cmake.)

then use your_opencv_install/include and your_opencv_install/x64/mingw/lib to build your own program

edit flag offensive delete link more

Comments

Hi. I appreciate your contribution but, remember I'm on windows OS (Windows 10 64bits)

iTop gravatar imageiTop ( 2019-04-01 04:04:05 -0600 )edit

yes, that's where mingw will install headers/libs/dll's on windows (your codebloxx does not matter here)

berak gravatar imageberak ( 2019-04-01 05:22:59 -0600 )edit

I see, but I've already load opencv.cpb in codeeblocks and built it successfully. Nevertheless include (install) dir still empty...that's my preoccupation. Above you told me to run "Make install" but it's not possible on Windows OS on my knowledge

iTop gravatar imageiTop ( 2019-04-01 05:31:58 -0600 )edit

but it's not possible on Windows OS on my knowledge

lol, it is. i wouldn't have been able to build opencv without ...

berak gravatar imageberak ( 2019-04-01 05:40:02 -0600 )edit

Ok I see. Then can you tell me step by step how can I run make install on my platform ? I tried on cmd but i got error that command is unknown

iTop gravatar imageiTop ( 2019-04-01 05:43:53 -0600 )edit

.

cd  C:\Users\sergio\/Documents\Logis\OPENCV\opencv\build
: (or navigate in explorer there, andpress [alt]+d   [alt]+e  to open a cmd)
mingw32-make install

: (make is call like that with mingw)

berak gravatar imageberak ( 2019-04-01 05:51:39 -0600 )edit

ok! will try it and feedback

iTop gravatar imageiTop ( 2019-04-01 06:06:57 -0600 )edit

Hi berak, it worked like a charm. Thank you !

iTop gravatar imageiTop ( 2019-04-01 16:57:07 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-03-30 18:03:29 -0600

Seen: 252 times

Last updated: Mar 31 '19