On 03/06/2012 07:37 PM, David C. Rankin wrote: > On 03/06/2012 07:09 PM, Darrell Anderson wrote: >>> Ran into another issue with tdegraphics that I can't >>> solve by a dependency review: >>> >>> [ 31%] Building CXX object >>> libkscan/CMakeFiles/kscan-shared.dir/imgscaninfo.cpp.o >>> Linking CXX shared library libkscan.so >>> /usr/bin/ld: cannot find >>> -lsane-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu-L/usr/lib >>> collect2: ld returned 1 exit status >>> make[2]: *** [libkscan/libkscan.so.1.0.0] Error 1 >>> make[1]: *** [libkscan/CMakeFiles/kscan-shared.dir/all] >>> Error 2 >>> make: *** [all] Error 2 >>> >>> Is this a CMake issue? Linker error? What to look >>> for? >> >> Do you have SANE installed? >> >> Check your build log for the following: >> >> -- checking for 'libkscan' >> -- ok, activated for build >> >> Check your CMakeCache.txt for this: >> >> //Build libkscan >> BUILD_LIBKSCAN:BOOL=ON >> >> >> Darrell >> > > Hmm... yes on both accounts: > > -- checking for 'libkscan' > -- ok, activated for build > > > [19:35 providence:/home/david/bld/david/build/src/build] # grep -i libkscan > CMakeCache.txt > //Build libkscan > BUILD_LIBKSCAN:BOOL=ON > libksane_BINARY_DIR:STATIC=/build/src/build/libkscan > libksane_SOURCE_DIR:STATIC=/build/src/tdegraphics/libkscan > > Is this a new gcc issue? I have gcc 4.6.2-7... How would I check? > > > I cannot read cmake very well, but it looks like it gets to about line 584 in libkscan/CMakeFiles/kscan-shared.dir/build.make: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking CXX shared library libkscan.so" cd /build/src/build/libkscan && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/kscan-shared.dir/link.txt --verbose=$(VERBOSE) cd /build/src/build/libkscan && $(CMAKE_COMMAND) -E cmake_symlink_library libkscan.so.1.0.0 libkscan.so.1 libkscan.so libkscan/libkscan.so.1: libkscan/libkscan.so.1.0.0 libkscan/libkscan.so: libkscan/libkscan.so.1.0.0 Because it gets to: [ 31%] Building CXX object libkscan/CMakeFiles/kscan-shared.dir/imgscaninfo.cpp.o Then dies. Any ideas? -- David C. Rankin, J.D.,P.E.