Ask Your Question
0

Building latest opencv source from github LNK2005 error?

asked 2013-10-29 04:02:34 -0600

ice031 gravatar image

updated 2013-10-29 04:05:48 -0600

Hello,

I've downloaded the latest master source files and after configuring and generating the solution file from cmake. I get several Lnk2005 errors: 16>window_w32.obj : error LNK2005: _cvCreateTrackbar already defined in window.obj 16>window_w32.obj : error LNK2005: _cvCreateTrackbar2 already defined in window.obj 16>window_w32.obj : error LNK2005: _cvDestroyAllWindows already defined in window.obj 16>window_w32.obj : error LNK2005: _cvDestroyWindow already defined in window.obj 16>window_w32.obj : error LNK2005: _cvGetTrackbarPos already defined in window.obj 16>window_w32.obj : error LNK2005: _cvGetWindowHandle already defined in window.obj 16>window_w32.obj : error LNK2005: _cvGetWindowName already defined in window.obj 16>window_w32.obj : error LNK2005: _cvInitSystem already defined in window.obj 16>window_w32.obj : error LNK2005: _cvMoveWindow already defined in window.obj 16>window_w32.obj : error LNK2005: _cvNamedWindow already defined in window.obj 16>window_w32.obj : error LNK2005: _cvResizeWindow already defined in window.obj 16>window_w32.obj : error LNK2005: _cvSetMouseCallback already defined in window.obj 16>window_w32.obj : error LNK2005: _cvSetTrackbarPos already defined in window.obj 16>window_w32.obj : error LNK2005: _cvShowImage already defined in window.obj 16>window_w32.obj : error LNK2005: _cvStartWindowThread already defined in window.obj 16>window_w32.obj : error LNK2005: _cvWaitKey already defined in window.obj 16> Creating library E:/opencv-working/build_x86/lib/Debug/opencv_highgui300d.lib and object E:/opencv-working/build_x86/lib/Debug/opencv_highgui300d.exp 16>E:\opencv-working\build_x86\bin\Debug\opencv_highgui300d.dll : fatal error LNK1169: one or more multiply defined symbols found

I've checked the cmake using all default settings with the exception of using tbb and CUDA. Any help in resolving this issue would be great.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-30 10:42:18 -0600

omur gravatar image

i have the same problem with linking to the compiled libraries, but i've used cmake with OPENNI2 instead of CUDA...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-29 04:02:34 -0600

Seen: 613 times

Last updated: Oct 30 '13