trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] tdegraphics build failure 2 : libkscan.so (linker error?)

From: "David C. Rankin" <drankinatty@...>
Date: Tue, 06 Mar 2012 19:37:37 -0600
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?



-- 
David C. Rankin, J.D.,P.E.