[ome-users] Building OmeroCpp

Bernhard Voigt bernhard.voigt at gmail.com
Thu Apr 2 10:13:25 BST 2009


Hi Mario,

I did run into the same problem. Setting the following environment
vars solved compilation errors (scons recognizes those, see
http://www.scons.org/doc/1.2.0/HTML/scons-user/a4774.html for a
complete list)

export CXXFLAGS=-Wno-error  # otherwise the deprecation warnings will
cause errors
export CPPPATH=/opt/Ice-3.3/include/
export LIBPATH=/opt/Ice-3.3/lib64/

By the way, I compile OmeroCpp on OpenSuse11.1.

Best wishes! Bernhard

On Tue, Mar 31, 2009 at 5:37 PM, Mario Valle <mvalle at cscs.ch> wrote:
> An update.
>
> The problem seems to manifest in the file
> components/antlib/resources/global.xml at line 63:
>
>         <condition property="ice.home" value="${env.ICE_HOME}">
>             <isset property="env.ICE_HOME"/>
>         </condition>
>
> here the property "ice.home" has always the value: /usr/share/Ice
> even if the ICE_HOME environment variable, and as a consequence the property env.ICE_HOME,
> is set to: "/Users/mvalle/Ice-3.3.0/cpp".
>
> To continue OmeroCpp build (not yet finished, but seems to work correctly)
> I changed the line:
>                     <env key="ICE_HOME" value="${ice.home}"/>
> to:
>                     <env key="ICE_HOME" value="/Users/mvalle/Ice-3.3.0/cpp"/>
> in the "scons_py" macro.
>
> Any idea?
>                mario
>
>
>
> Mario Valle wrote:
>> As usual :-) I'm trying to build OmeroCpp.
>>
>> I have done:
>>        cd omero-4.0; ./build.py build-cpp
>>
>> It works for a while, then stops with:
>>
>> tools-init:
>> Copying 253 files to /omero-4.0/components/tools/OmeroCpp/target
>>
>> build:
>> /omero-4.0/target/scons/scons-local-1.1.0/SCons/Platform/posix.py:38: DeprecationWarning:
>> The popen2 module is deprecated.  Use the subprocess module.
>>    import popen2
>> /omero-4.0/target/scons/scons-local-1.1.0/SCons/Tool/msvs.py:37: DeprecationWarning: the
>> md5 module is deprecated; use hashlib instead
>>    import md5
>> Ice/Ice.h not found
>>
>> I tried to:
>> 1) define ICE_HOME to {ice_top_dir}
>> 2) define ICE_HOME to {ice_top_dir}/cpp
>> 3) run bin/omero config set ice.home {ice_top_dir}/cpp
>> 4) create dist/etc/local.properties with the single line
>>     ice.home={ice_top_dir}/cpp
>>
>> But the build process tries always to find Ice includes under /usr/share/Ice/include
>>
>> Any idea? Afterwards I can contribute with the OmeroCpp build instructions...
>>
>> Ciao!
>>       mario
>>
>
> --
> Ing. Mario Valle
> Data Analysis and Visualization 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
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>



More information about the ome-users mailing list