another cmake problem on osx

Brad King brad.king at kitware.com
Wed Nov 26 21:45:53 CET 2008


Boudewijn Rempt wrote:
> On Wed, 26 Nov 2008, Brad King wrote:
> 
>> Are there any other warnings produced by CMake, such as CMP0003?  
> 
> No...
> 
>> Try 
>> running
>>
>>    make VERBOSE=1
>>
>> and post the actual link line that fails.
>>
> 
> Linking CXX shared module ../../../lib/exrthumbnail.so
> cd /Users/boudewijn/src/kde/bld/kdebase/runtime/kioslave/thumbnail && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/exrthumbnail.dir/link.txt --verbose=1
> /usr/bin/c++   -fno-common -Woverloaded-virtual -g3 -fno-inline -bundle -headerpad_max_install_names -multiply_defined suppress  -o ../../../lib/exrthumbnail.so CMakeFiles/exrthumbnail.dir/exrthumbnail_automoc.o CMakeFiles/exrthumbnail.dir/exrcreator.o -L/Users/boudewijn/src/kde/ins/lib /Users/boudewijn/src/kde/ins/lib/libkio.5.2.0.dylib -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread /Users/boudewijn/src/kde/ins/lib/libkdeui.5.2.0.dylib -F/usr/local/Trolltech/Qt-4.4.3/lib -framework QtSvg /Users/boudewijn/src/kde/ins/lib/libkdecore.5.2.0.dylib -F/usr/local/Trolltech/Qt-4.4.3/lib -framework QtDBus -F/usr/local/Trolltech/Qt-4.4.3/lib -framework QtCore -lpthread -framework Carbon -F/usr/local/Trolltech/Qt-4.4.3/lib -framework QtNetwork -F/usr/local/Trolltech/Qt-4.4.3/lib -framework QtXml -F/usr/local/Trolltech/Qt-4.4.3/lib -framework QtGui /Users/boudewijn/src/kde/ins/lib/libsolid.4.2.0.dylib 
> ld: library not found for -lIlmImf
> collect2: ld returned 1 exit status
> make[2]: *** [lib/exrthumbnail.so] Error 1
> make[1]: *** [runtime/kioslave/thumbnail/CMakeFiles/exrthumbnail.dir/all] Error 2
> make: *** [all] Error 2
> 
> If I tack a -L/opt/local/lib to that line, it works.

What CMakeLists.txt code adds IlmImf?

-Brad


More information about the Kde-buildsystem mailing list