[ome-users] Build C++ bindings cannot find Ice.h

Mario Valle mvalle at cscs.ch
Wed Dec 3 08:50:43 GMT 2008



josh.moore at gmx.de wrote:
> Hi Mario, I assume this means that you got Ice compiling on PPC. If
> so, hip-hip-hoorary. Mind filling us in on what you did?
> 
Sure!
My machine is Mac OSX 10.4 PPC

1) Check if you have Xcode version 2.2 installed, otherwise upgrade it (Go to Apple 
Developer Connect connect.apple.com and go to Developer Transition Kit to download it).

2) Download source from zeroc.com
http://www.zeroc.com/download/Ice/3.3/Ice-3.3.0.tar.gz
and unpack it somewhere (in my case /Ice-3.3.0).

3) Download 3rd party software needed to build Ice
http://www.zeroc.com/download/Ice/3.3/ThirdParty-Sources-3.3.0.tar.gz

4) Build the 3rd party programs you do not have already installed on the machine. For 
Berkeley DB remember to configure with --enable-cxx (otherwise you don't have the needed 
db_cxx.h header)

5) The IceC++ installation instructions are: /Ice-3.3.0/cpp/INSTALL.MACOSX

6) Edit /Ice-3.3.0/cpp/config/Make.rules and change the *_HOME variables to point to the 
installation directories for the various 3rd party packages.

7) Return to /Ice-3.3.0/cpp and execute make

8) Wait. There are warning during compilation, but no error.

9) The installation notes suggest to run "make test" to run the tests. What the notes 
don't say is that the test programs are not built by default. If you want to run the 
tests, go to /Ice-3.3.0/cpp/test and do "make". Then cd .. and "make test".

10) Remember to update PATH adding /Ice-3.3.0/cpp/bin and DYLD_LIBRARY_PATH adding 
/Ice-3.3.0/cpp/lib

Hope it helps.
Ciao!
	mario


> As for the build, in my hurry to remove the need for no.ice, I've also
> partially broken support for ice.home. I'll fix this and update you
> asap.
> 
Ansiously waiting...

> Thanks for catching it,
> ~Josh.
> 
> Mario Valle writes:
>  > I almost succeeded in building C++ bindings. Almost...
>  > 
>  > Now the "java omero build-cpp" command seems not able to find Ice include files (see below).
>  > I have put the path to the Ice directory containing Ice/Ice.h in etc/local/properties
>  > as:
>  > no.ice=false
>  > ice.home=/Users/mvalle/Ice-3.3.0/cpp
>  > But the definition of ice.home seems to be ignored.
>  > 
>  > Is there another place where I should put the path to Ice (i.e. the directory that 
>  > contains include/Ice/Ice.h)?
>  > 
>  > Thanks!
>  > 	mario
>  > 
>  > 
>  > 
>  >   ~/omero-cpp/omero > java omero build-cpp
>  > .
>  > .
>  > .
>  > tools-init:
>  > Copying 301 files to /Users/mvalle/omero-cpp/omero/components/tools/OmeroCpp/target
>  > 
>  > tools-build:
>  > scons: Reading SConscript files ...
>  > Checking for C++ header file Ice/Ice.h... no
>  > Ice/Ice.h not found
>  > 
>  > 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:72: 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: 1
>  > 
>  > 
>  > -- 
>  > 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
>  > _______________________________________________
>  > ome-users mailing list
>  > ome-users at lists.openmicroscopy.org.uk
>  > http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
> 

-- 
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