Ask Your Question

Revision history [back]

opencv cross compilation issue

Hi

I am trying to cross compile opencv with microblaze toolchain on windows platform using mingw make files. I am getting windef.h no such file directory error. I have added CMAKE_INLCUDE_PATH with the mingw32 include folder. But its still not taking it.

Any suggestions will be very helpful. Thanks

opencv cross compilation issue

Hi

I am trying to cross compile opencv with microblaze toolchain on windows platform using mingw make files. I am getting windef.h no such file directory error. I have added CMAKE_INLCUDE_PATH with the mingw32 include folder. But its still not taking it.

Any suggestions will be very helpful. Thanks

Detected version of GNU GCC: 49 (409) Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.0") Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)

General configuration for OpenCV 2.4.9 ===================================== Version control: unknown

Platform: Host: Windows 6.1 AMD64 Target: Generic microblaze CMake: 2.8.12.2 CMake generator: MinGW Makefiles CMake build tool: c:/MinGW/bin/mingw32-make.exe Configuration: Release

C/C++: Built as dynamic libs?: NO C++ Compiler: C:/tools/Xilinx/SDK/2015.4/gnu/microblaze/nt/bin/mb-g++.exe (ver 4.9.2) C++ flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -g -O0 -DDEBUG -D_DEBUG C Compiler: C:/tools/Xilinx/SDK/2015.4/gnu/microblaze/nt/bin/mb-gcc.exe C flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -g -O0 -DDEBUG -D_DEBUG Linker flags (Release):
Linker flags (Debug):
Precompiled headers: YES

OpenCV modules: To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts videostab Disabled: world Disabled by dependency: - Unavailable: androidcamera dynamicuda java python viz

GUI: QT: NO GTK+ 2.x: NO GThread : NO GtkGlExt: NO OpenGL support: NO VTK support: NO

Media I/O: ZLib: zlib (ver 1.2.7) JPEG: libjpeg (ver 62) PNG: build (ver 1.5.12) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1)

Video I/O: DC1394 1.x: NO DC1394 2.x: NO FFMPEG: NO codec: NO format: NO util: NO swscale: NO gentoo-style: NO OpenNI: NO OpenNI PrimeSensor Modules: NO PvAPI: NO GigEVisionSDK: NO XIMEA: NO

Other third-party libraries: Use IPP: NO Use Eigen: NO Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency NO Use C=: NO Use Cuda: NO Use OpenCL: YES

OpenCL: Version: dynamic Include path: C:/Users/Administrator/Downloads/opencv-2.4.9_new/opencv/sources/3rdparty/include/opencl/1.2 Use AMD FFT: NO Use AMD BLAS: NO

Python: Interpreter: NO

Java: ant: NO JNI: NO Java tests: NO

Documentation: Build Documentation: NO Sphinx: NO PdfLaTeX compiler: NO

Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO

Install path: C:/Users/Administrator/Downloads/opencv-2.4.9_new/opencv/mc_bin/install

cvconfig.h is in: C:/Users/Administrator/Downloads/opencv-2.4.9_new/opencv/mc_bin

Configuring done Generating done

click to hide/show revision 3
No.3 Revision

updated 2016-06-28 09:54:45 -0600

berak gravatar image

opencv cross compilation issue

Hi

I am trying to cross compile opencv with microblaze toolchain on windows platform using mingw make files. I am getting windef.h no such file directory error. I have added CMAKE_INLCUDE_PATH with the mingw32 include folder. But its still not taking it.

Any suggestions will be very helpful. Thanks

Detected version of GNU GCC: 49 (409)
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR)
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.0")
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 

General configuration for OpenCV 2.4.9 ===================================== Version control: unknown

unknown Platform: Host: Windows 6.1 AMD64 Target: Generic microblaze CMake: 2.8.12.2 CMake generator: MinGW Makefiles CMake build tool: c:/MinGW/bin/mingw32-make.exe Configuration: Release

Release C/C++: Built as dynamic libs?: NO C++ Compiler: C:/tools/Xilinx/SDK/2015.4/gnu/microblaze/nt/bin/mb-g++.exe (ver 4.9.2) C++ flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -g -O0 -DDEBUG -D_DEBUG C Compiler: C:/tools/Xilinx/SDK/2015.4/gnu/microblaze/nt/bin/mb-gcc.exe C flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -g -O0 -DDEBUG -D_DEBUG Linker flags (Release):
Linker flags (Debug):
Precompiled headers: YES

YES OpenCV modules: To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts videostab Disabled: world Disabled by dependency: - Unavailable: androidcamera dynamicuda java python viz

viz GUI: QT: NO GTK+ 2.x: NO GThread : NO GtkGlExt: NO OpenGL support: NO VTK support: NO

NO Media I/O: ZLib: zlib (ver 1.2.7) JPEG: libjpeg (ver 62) PNG: build (ver 1.5.12) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1)

1.7.1) Video I/O: DC1394 1.x: NO DC1394 2.x: NO FFMPEG: NO codec: NO format: NO util: NO swscale: NO gentoo-style: NO OpenNI: NO OpenNI PrimeSensor Modules: NO PvAPI: NO GigEVisionSDK: NO XIMEA: NO

NO Other third-party libraries: Use IPP: NO Use Eigen: NO Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency NO Use C=: NO Use Cuda: NO Use OpenCL: YES

YES OpenCL: Version: dynamic Include path: C:/Users/Administrator/Downloads/opencv-2.4.9_new/opencv/sources/3rdparty/include/opencl/1.2 Use AMD FFT: NO Use AMD BLAS: NO

NO Python: Interpreter: NO

NO Java: ant: NO JNI: NO Java tests: NO

NO Documentation: Build Documentation: NO Sphinx: NO PdfLaTeX compiler: NO

NO Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO

NO Install path: C:/Users/Administrator/Downloads/opencv-2.4.9_new/opencv/mc_bin/install

C:/Users/Administrator/Downloads/opencv-2.4.9_new/opencv/mc_bin/install cvconfig.h is in: C:/Users/Administrator/Downloads/opencv-2.4.9_new/opencv/mc_bin

C:/Users/Administrator/Downloads/opencv-2.4.9_new/opencv/mc_bin ----------------------------------------------------------------- Configuring done Generating done

done