[ome-users] Building Omero C++, missing -L{ice-lib-dir}

Mario Valle mvalle at cscs.ch
Thu Dec 4 07:21:41 GMT 2008


Another small step along the path to build OmeroCpp.
The latest changes to omero sources indeed fixed the problem of Ice.h 
not found
Now the same problem, but this time related to library (.a) files, appears.
The error is:

tools-build:
scons: Reading SConscript files ...
Checking for C++ header file Ice/Ice.h... (cached) yes
Checking for boost_unit_test...(cached) no
scons: done reading SConscript files.
scons: Building targets ...
Linking   libomero_client.dylib
/usr/bin/libtool: can't locate file for: -lIce
/usr/bin/libtool: file: -lIce is not an object file (not allowed in a 
library)
/usr/bin/libtool: can't locate file for: -lGlacier2
/usr/bin/libtool: file: -lGlacier2 is not an object file (not allowed in 
a library)
/usr/bin/libtool: can't locate file for: -lIceUtil
/usr/bin/libtool: file: -lIceUtil is not an object file (not allowed in 
a library)
scons: *** [libomero_client.dylib] Error 1
scons: building terminated because of errors.

BUILD FAILED
/Users/mvalle/omero-cpp/omero/build.xml:161: The following error 
occurred while executing this line:
/Users/mvalle/omero-cpp/omero/components/antlib/resources/global.xml:75: 
The following error occurred while executing this line:
/Users/mvalle/omero-cpp/omero/components/tools/OmeroCpp/build.xml:22: 
The following error occurred while executing this line:
/Users/mvalle/omero-cpp/omero/components/antlib/resources/macros.xml:42: 
exec returned: 2

Seems the link phase does not take into account ice.home to add a 
-L{ice.home}/lib before the various -l
Can you look into this?
I think there is another entry in the mail list about this problem, but 
now I'm out of the office and cannot check.
Thanks for the help!
                                     mario

-- 
Ing. Mario Valle
Data Analysis Group                              | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82




More information about the ome-users mailing list