[ome-users] The OMERO cpp libraries

Jesse Corrington jesse at glencoesoftware.com
Thu Feb 14 18:19:57 GMT 2013


Hi Philippe,

If you have ICE_HOME set correctly, and you've tried Josh's CPPPATH suggestion, the problem may be that scons has incorrect settings for your c++ compiler for some reason. The error, "Ice.h not found" is a little misleading, because it simply means scons failed to build a sample c++ file that includes Ice.h. It could also mean that either your systems c++ compiler isn't' setup properly, or for some reason scons is not using the correct compiler. I saw this problem when I accidentally had my CXX environment variable set to empty string. Our scons build script was overriding the scons CXX variable with mine, which was empty string. If you happen to have this same problem, doing "unset CXX" before building should fix the problem. Otherwise, there's probably a different issue with scons finding your compiler or your compiler isn't working. You should have a look at compiler.log that is created in the components/tools/OmeroCpp directory that has information about what compiler and flags scons is trying use and make sure it looks correct. I'll be making some changes today to the scons build script to better report errors in situations like this. 

Jesse

On Feb 14, 2013, at 6:53 AM, Josh Moore <josh at glencoesoftware.com> wrote:

> 
> On Feb 14, 2013, at 1:58 PM, Philippe Mailly wrote:
> 
>> Hi Josh,
> 
> Hi Philippe,
> 
>> in components/tools/OmeroCpp/.sconf_temp/ have one file conftest_O.cpp
>> with
>> 
>> #include "Ice/Ice.h"
> 
> Can you use the CPPPATH environment variable to pass your includes location?
> 
> See https://www.openmicroscopy.org/site/support/omero4/developers/Cpp.html for more info.
> 
> Cheers,
> ~Josh.
> 
> 
> 
>> Philippe
>> 
>> Le 14/02/2013 13:14, Josh Moore a écrit :
>>> On Feb 14, 2013, at 12:03 PM, Philippe Mailly wrote:
>>> 
>>>> Hi,
>>> Hi Philippe,
>>> 
>>>> I'm trying to compile The OMERO cpp libraries, on Ubuntu 12.10 to install volviewer with omero server support.
>>>> 
>>>> the build with ./build.py is fine, however ./build.py build-cpp return a message concerning the ICE.h
>>>> 
>>>> Entering /home/phm/Developpement/openmicroscopy/components/tools/OmeroCpp...
>>>> 
>>>> build:
>>>> Building with ICE_HOME=/usr/include
>>>> Debug setting: True (debug)
>>>> 64-Bit build: True (detect)
>>>> Ice/Ice.h not found
>>>> 
>>>> I have Ice libdev installed
>>>> 
>>>> [phm at phm-X8DAL:~/Developpement/openmicroscopy]$ locate Ice.h
>>>> /home/phm/Developpement/openmicroscopy/target/Ice/include/Ice/._Ice.h
>>>> /home/phm/Developpement/openmicroscopy/target/Ice/include/Ice/Ice.h
>>>> /usr/include/Ice/Ice.h
>>>> /usr/share/doc/ice34-slice/reference/Ice.html
>>>> 
>>>> export ICE_HOME=/home/phm/Developpement/openmicroscopy/target/Ice/include
>>>> give the same result
>>> Can you take a look at and/or send the contents of components/tools/OmeroCpp/.sconf_temp/?
>>> 
>>> Cheers,
>>> ~Josh.
>>> 
>>> 
>>>> Any suggestions
>>>> Philippe
>>> 
>> 
>> <philippe_mailly.vcf>
> 
> _______________________________________________
> 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