Ask Your Question
0

Building Error with Eclipse on Win7 64bit

asked 2014-07-10 10:18:07 -0600

icecold gravatar image

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

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

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-09-04 05:02:46 -0600

Freeman gravatar image

This means that on Windows all code is compiled as if -fPIC (Position Independent Code), whether you specify it or not. Therefore the warning can be ignored.

It seems that this warning has been amended in OpenCV 4.1.1:

https://github.com/opencv/opencv/comm...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-07-10 10:18:07 -0600

Seen: 612 times

Last updated: Jul 10 '14