How do you include 'improc.hpp'?
or
<opencv2/improc/improc.hpp>
Here the message :
-------------- Build: Debug in test_opencv (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -g -v -IC:\opencv\include -IC:\opencv\modules -IC:\opencv\build\include -c C:\Users\Clems\Documents\Programmation\test_opencv\main.cpp -o obj\Debug\main.o
Using built-in specs.
COLLECT_GCC=mingw32-g++.exe
Target: mingw32
Configured with: ../../src/gcc-4.7.1/configure --build=mingw32 --enable-languages=c,c++,ada,fortran,objc,obj-c++ --enable-threads=win32 --enable-libgomp --enable-lto --enable-fully-dynamic-string --enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-gnu-ld --disable-nls --disable-win32-registry --disable-symvers --disable-build-poststage1-with-cxx --disable-werror --prefix=/mingw32tdm --with-local-prefix=/mingw32tdm --enable-cxx-flags='-fno-function-sections -fno-data-sections' --with-pkgversion=tdm-1 --enable-sjlj-exceptions --with-bugurl=http://tdm-gcc.tdragon.net/bugs
Thread model: win32
gcc version 4.7.1 (tdm-1)
COLLECT_GCC_OPTIONS='-Wall' '-fexceptions' '-g' '-v' '-I' 'C:\opencv\include' '-I' 'C:\opencv\modules' '-I' 'C:\opencv\build\include' '-c' '-o' 'obj\Debug\main.o' '-mtune=i386' '-march=i386'
c:/program files (x86)/codeblocks/mingw/bin/../libexec/gcc/mingw32/4.7.1/cc1plus.exe -quiet -v -I C:\opencv\include -I C:\opencv\modules -I C:\opencv\build\include -iprefix c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/ C:\Users\Clems\Documents\Programmation\test_opencv\main.cpp -quiet -dumpbase main.cpp -mtune=i386 -march=i386 -auxbase-strip obj\Debug\main.o -g -Wall -version -fexceptions -o C:\Users\Clems\AppData\Local\Temp\ccIFFwHz.s
GNU C++ (tdm-1) version 4.7.1 (mingw32)
compiled by GNU C version 4.7.1, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/../../../../mingw32/include"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include/c++"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include/c++/mingw32"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include/c++/backward"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/../../../../include"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include-fixed"
ignoring nonexistent directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/../../../../mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
C:\opencv\include
C:\opencv\modules
C:\opencv\build\include
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/mingw32
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/backward
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/../../../../include
c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include-fixed
End of search list.
GNU C++ (tdm-1) version 4.7.1 (mingw32)
compiled by GNU C version 4.7.1, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 1b05afeca9d712f769248af52f554d5e
C:\Users\Clems\Documents\Programmation\test_opencv\main.cpp:9:23: fatal error: imgproc.hpp: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)
C:\Users\Clems\Documents\Programmation\test_opencv\main.cpp:9:23: fatal error: imgproc.hpp: No such file or directory
so, is this header called "imgproc.hpp" or "improc.hpp"
check your typo....
Please decide what MinGW GCC you are trying to use!
Then, tell us which one you are trying to use?
You appear to be trying to use two different MinGW GCC in a single project this will NOT work!!!
One of them.
C:\opencv\bluid\x86\mingw\bin
The othe one.
c:/program files (x86)/codeblocks/mingw/bin/
Tim S.
scarphin :
Yes I perform all the steps listed in the website (so I made modifcations in 'settings ->compiler ->search directories' and 'settings ->compiler ->Linker settings'.
I tried to do the same thing in 'project->build options-> search directories' and 'project->build options->Linker settings', but it's still not working.
In 'settings ->compiler ->search directories ->compiler' I have :
And in 'settings ->compiler ->search directories ->Linker' :
C:\opencv\build\x86\mingw\lib
stahta01 :
I don't understand why, I configured my computer to compile with :
c:/program files (x86)/codeblocks/mingw/bin/
scarphin :
In the website, they said : add 'C:\opencv\include'. I tried to change with 'C:\opencv\build\include' but nothing change.
So now, I have 'C:\opencv\include'.
You must be joking! Do you really think that the compiler will find a nonexistent file just because it is written on some tutorial?!?
Ok, last advice. Make sure your opencv path, 'C:\opencv\include' or 'C:\opencv\build\include'. Add the CORRECT PATH (THE ONE ON YOUR COMPUTER NOT THE TUTORIAL) to 'project->build options->search directories->compiler' for TOP LEVEL. And then include your 'imgproc.hpp' file with
#include <opencv2/imgproc/imgproc.hpp>
If you still get the same error then you are missing some steps. Loop through them again.