[Digikam-devel] Re: [Kde-imaging] Re: Re: Git migration for 2.0.0 + code components re-structuring...
Gert Kello
gert.kello at gmail.com
Wed Dec 15 06:16:47 GMT 2010
Hi.
> # there are two versions of FindOpenCV.cmake in the wild, one defining
> # OpenCV_LIBRARIES, the other defining OpenCV_LIBS. Make sure we handle
> # both cases.
> IF (NOT OpenCV_LIBRARIES)
> SET(OPENCV_LIBRARIES ${OpenCV_LIBS})
> ENDIF (NOT OpenCV_LIBRARIES)
>
> # same story with OpenCV_INCLUDE_DIRS and OpenCV_INCLUDE_DIR:
> IF (NOT OpenCV_INCLUDE_DIRS)
> SET(OpenCV_INCLUDE_DIRS ${OpenCV_INCLUDE_DIR})
> ENDIF (NOT OpenCV_INCLUDE_DIRS)
>
Seems like the fix is not working.
I still get linking errors
Linking CXX executable ..\..\..\bin\unprocessed_raw.exe
Creating library file: ..\..\..\bin\libunprocessed_raw.dll.a
[ 8%] Built target unprocessed_raw
[ 8%] Built target kface_automoc
Linking CXX shared library ..\..\..\bin\libkface.dll
Creating library file: ..\..\..\bin\libkface.dll.a
CMakeFiles\kface.dir/objects.a(face.cpp.obj):C:/KdeDevel/GoSC2010/extra/libkface/libkface/face.cpp:122:
undefined reference to `cvCloneImage'
CMakeFiles\kface.dir/objects.a(face.cpp.obj):C:/KdeDevel/GoSC2010/extra/libkface/libkface/face.cpp:101:
undefined reference to `cvCloneImage'
CMakeFiles\kface.dir/objects.a(kfaceutils.cpp.obj):C:/KdeDevel/GoSC2010/extra/libkface/libkface/kfaceutils.cpp:97:
undefined reference to `cvCreateIma
ge'
CMakeFiles\kface.dir/objects.a(kfaceutils.cpp.obj):C:/KdeDevel/GoSC2010/extra/libkface/libkface/kfaceutils.cpp:135:
undefined reference to `cvCreateIm
age'
CMakeFiles\kface.dir/objects.a(image.cpp.obj): In function `~ImagePriv':
C:/KdeDevel/GoSC2010/extra/libkface/libkface/image_p.h:61: undefined
reference to `cvReleaseImage'
C:/KdeDevel/GoSC2010/extra/libkface/libkface/image_p.h:61: undefined
reference to `cvReleaseImage'
When I replace ${OpenCV_LIBRARIES} with ${OpenCV_LIBS} in
extra\libkface\libkface\CMakeLists.txt then it goes fine.
Gert
More information about the Digikam-devel
mailing list