[ome-users] The OMERO cpp libraries

Josh Moore josh at glencoesoftware.com
Fri Feb 15 10:45:01 GMT 2013


On Feb 15, 2013, at 11:44 AM, Philippe Mailly wrote:

> Hi Jesse and Josh,

Hi Philippe,

> I had tried all suggested options without success.
> export CPPPATH=/usr/include/Ice
> same error about Ice.h
> 
> if I unset CXX
> I got more errors
> A lot of something like :
> 
> Compiling src/omero/model/DetailsI.os
> sh: 1: o: not found
> .......
> and at this end :
> 
> Install file: "libomero_client.so" as "target/lib/libomero_client.so"
> scons: *** [target/lib/libomero_client.so] libomero_client.so: No such file or directory

Can you try setting the following:

 export CPPPATH=/usr/include
 export CXX=g++
 export VERBOSE=1

Thanks,
~Josh.


> the compiling.log with CXX unset:
> #
> # Scons Compile Log : Fri Feb 15 11:39:07 2013
> #
> CXXFLAGS=-Wall -ansi -Wno-long-long -Wnon-virtual-dtor -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wunused-value -O0 -
> g
> CPPPATH=['src', 'target', '/home/phm/Developpement/openmicroscopy/components/blitz/generated', '/usr/include/Ice', '/home/phm/Developpem
> ent/openmicroscopy/target/Ice/include']
> CXX=gcc
> CXXVERSION=4.7.2
> LIBPATH=['/home/phm/Developpement/openmicroscopy/components/tools/OmeroCpp', '/home/phm/Developpement/openmicroscopy/target/Ice/lib']
> ARCH=64
> RELEASE=dbg
> PLATFORM=posix
> 
> I have gcc install and working (i did some other compilations without any problem)
> I can try with Intel compiler which is also on my machine ?
> 
> Philippe
> 
> Le 14/02/2013 19:19, Jesse Corrington a écrit :
>> 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.




More information about the ome-users mailing list