Building latest opencv source from github LNK2005 error?
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.