Building Error with Eclipse on Win7 64bit

asked 2014-07-10 10:18:07 -0500

icecold gravatar image

updated 2014-07-10 10:24:57 -0500

Hello, I'm new to OpenCV and try to build OpenCV (without any special plugin) with Eclipse on my Laptop with Win7 64bit. For this I followed the "Installtion in Windows"-Tutorial, using TDM-GCC 32bit Compiler and CMake 2.8.12.2 ( Version 3.0.0 gives me an Error with CMP0026). In CMake I choose "EclipseCDT-MinGW Makefile", make my selection, press configure and then generate.

Btw. is it ok, if there are missing paths to modules I do not want to use? E.g. CLAMDBLAS or Java Path)?

After I have opened the generated project with Eclipse(Import exiting code with Makefile) I try to start building, but after a few seconds I get the following Error:

Errors occurred during the build. Errors running builder 'CDT Builder' on project 'OpenCVBuilding'. Internal error building project OpenCVBuilding configuration Default Generated resource conflict: two resources of the same name: /OpenCVBuilding/Default/[Targets]/[lib] zlib/Source Files/zutil.o generated by different tools tool1: GCC C Compiler tool2: GCC C Compiler

Generated resource conflict: two resources of the same name: /OpenCVBuilding/Default/[Targets]/[lib] zlib/Source Files/zutil.o generated by different tools tool1: GCC C Compiler tool2: GCC C Compiler

Internal error building project OpenCVBuilding configuration Default Generated resource conflict: two resources of the same name: /OpenCVBuilding/Default/[Targets]/[lib] zlib/Source Files/zutil.o generated by different tools tool1: GCC C Compiler tool2: GCC C Compiler

Generated resource conflict: two resources of the same name: /OpenCVBuilding/Default/[Targets]/[lib] zlib/Source Files/zutil.o generated by different tools tool1: GCC C Compiler tool2: GCC C Compiler

So I tried building OpenCV on my Desktop using TDM-GCC 64bit (everything else unchanged) with the same Error. Due to this I choose a MinGWMakefile in CMake and directly use mingw32-make.exe from TDM-GCC(both 32bit and 64bit). I also tried building OpenCV with Code::Blocks but both (Codeblocks and wingw32-make) gave me this Error:

||=== Build: install in OpenCV (compiler: GNU GCC Compiler) ===|

C:\opencv\sources\3rdparty\zlib\adler32.c|1|warning: -fPIC ignored for target (all code is >position independent) [enabled by default]|

C:\opencv\sources\3rdparty\zlib\compress.c|1|warning: -fPIC ignored for target (all code is >position independent) [enabled by default]|

C:\opencv\sources\3rdparty\zlib\crc32.c|1|warning: -fPIC ignored for target (all code is position >independent) [enabled by default]|

. . .

C:\opencv\sources\modules\core\perf\perf_stat.cpp|1|warning: -fPIC ignored for target (all code is position independent) [enabled by default]|

c:\tdm-gcc-32\bin..\lib\gcc\mingw32\4.8.1\libstdc++.a(eh_exception.o):eh_exception.cc|| multiple definition of `std::exception::~exception()'|

c:\tdm-gcc-32\bin..\lib\gcc\mingw32\4.8.1\libstdc++.dll.a(d003087.o)|| first defined here|

c:\tdm-gcc-32\bin..\lib\gcc\mingw32\4.8.1\libstdc++.a(tinfo.o):tinfo.cc|| multiple definition of >`std::type_info::operator==(std::type_info const&) const'|

c:\tdm-gcc-32\bin..\lib\gcc\mingw32\4.8.1\libstdc++.dll.a(d001023.o)|| first defined here| modules\core\CMakeFiles\opencv_perf_core.dir\build.make ...

(more)
edit retag flag offensive close merge delete