[ome-devel] Building omero-cpp under Mac OS X.

Josh Moore josh at glencoesoftware.com
Fri Oct 29 15:18:18 BST 2010


Hi Jerome,

did you also try with a "./build.py clean" first?

~Josh.

On Oct 29, 2010, at 4:02 PM, Jerome Avondo wrote:

> 
> Hi Josh,
> 
> Here is some more info about my environment... 
> I'm using the 4.2 tagged version of omero.
> 
> g++ path & version....
> 
> /usr/bin/g++
> i686-apple-darwin10-g++-4.2.1
> 
> and here is the contents of the shell script I use to compile...
> 
> export PATH=/opt/Ice-3.3/bin:$PATH
> export ICE_HOME=/opt/Ice-3.3
> export DYLD_LIBRARY_PATH=/opt/Ice-3.3/lib:/opt/Ice-3.3/python:
> python ./build.py
> python ./build.py build-cpp
> 
> And I've attached the .log files as requested too...
> Thanks for looking into this...
> 
> Jerome.
> 
>> Subject: Re: [ome-devel] Building omero-cpp under Mac OS X.
>> From: josh at glencoesoftware.com
>> Date: Fri, 29 Oct 2010 13:11:54 +0200
>> CC: ome-devel at lists.openmicroscopy.org.uk
>> To: jeromeavondo at msn.com
>> 
>> Hi Jerome,
>> 
>> ok. I just tried these steps and succeeded, so if you have time, could we try to track down where things differ?
>> 
>> First off, I'm on version 8436 of trunk.
>> 
>> Then, my environment includes this:
>> 
>> ~ $ echo $DYLD_LIBRARY_PATH
>> /opt/Ice-3.3.1-64/lib:/opt/Ice-3.3.1-64/python:
>> 
>> And I'm building with:
>> 
>> ~ $ which g++
>> /usr/bin/g++
>> ~ $ g++ --version
>> i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
>> 
>> on a 10.6.4 Mac OSX box.
>> 
>> I run:
>> 
>> ./build.py clean
>> ./build.py
>> ./build.py build-cpp
>> 
>> and get a zip under OMERO_HOME/target/. Could you try that and send the console output along with the contents of the OmeroCpp/*.log files?
>> 
>> ~/code/git $ ls components/tools/OmeroCpp/*.log
>> components/tools/OmeroCpp/compiler.log
>> components/tools/OmeroCpp/config.log
>> components/tools/OmeroCpp/scons.log
>> 
>> 
>> Thanks,
>> ~Josh.
>> 
>> 
>> On Oct 29, 2010, at 11:36 AM, Jerome Avondo wrote:
>> 
>>> 
>>> Hi Josh,
>>> 
>>> the first step;
>>> 
>>> python ./build.py
>>> 
>>> succeeds with the build.. but when i try either 
>>> 
>>> python ./build.py build-cpp 
>>> or
>>> python ./build.py build-all
>>> 
>>> these fail, here is the error for the build-all....
>>> 
>>> ld: symbol(s) not found
>>> collect2: ld returned 1 exit status
>>> scons: *** [libomero_client.dylib] Error 1
>>> 
>>> BUILD FAILED
>>> /Users/ut/Documents/SVN/omero-4.2.0/build.xml:140: The following error occurred while executing this line:
>>> /Users/ut/Documents/SVN/omero-4.2.0/components/antlib/resources/global.xml:109: The following error occurred while executing this line:
>>> /Users/ut/Documents/SVN/omero-4.2.0/components/tools/build.xml:27: The following error occurred while executing this line:
>>> /Users/ut/Documents/SVN/omero-4.2.0/components/antlib/resources/global.xml:109: The following error occurred while executing this line:
>>> /Users/ut/Documents/SVN/omero-4.2.0/components/tools/OmeroCpp/build.xml:67: The following error occurred while executing this line:
>>> /Users/ut/Documents/SVN/omero-4.2.0/components/antlib/resources/global.xml:231: exec returned: 2
>>> 
>>> Total time: 2 minutes 49 seconds
>>> 
>>> not sure what else to try... alternatively is there anywhere I can get access to pre-built libraries?
>>> 
>>> thanks,
>>> 
>>> Jerome.
>>> 
>>>> Subject: Re: [ome-devel] Building omero-cpp under Mac OS X.
>>>> From: josh at glencoesoftware.com
>>>> Date: Thu, 28 Oct 2010 19:42:14 +0200
>>>> CC: ome-devel at lists.openmicroscopy.org.uk
>>>> To: jeromeavondo at msn.com
>>>> 
>>>> Hi Jerome,
>>>> 
>>>> which build target/command are you using? I've seen the "symbol(s) not found" error before, and always assumed I had done something wrong locally. If you're seeing it, however, it's a larger issue. That being said, I just did "./build.py build-all" from the top-level and the dylib built fine:
>>>> 
>>>> ~/code/omero.git $ unzip -l target/OMERO.cpp-4.2.1-DEV-gcc-4.2.1-64dbg.zip | grep dylib
>>>> 82189080  10-28-10 18:37   OMERO.cpp-4.2.1-DEV-gcc-4.2.1-64dbg/lib/libomero_client.dylib
>>>> 
>>>> ~Josh
>>>> 
>>>> On Oct 28, 2010, at 9:57 AM, Jerome Avondo wrote:
>>>> 
>>>>> 
>>>>> Hi all,
>>>>> 
>>>>> Seem to be getting stuck when trying to build the omero-cpp library under Mac OS X.
>>>>> This is the point where it seems to choke.
>>>>> 
>>>>> ld: symbol(s) not found
>>>>> collect2: ld returned 1 exit status
>>>>> scons: *** [libomero_client.dylib] Error 1
>>>>> 
>>>>> BUILD FAILED
>>>>> /Users/ut/Documents/SVN/omero-4.2.0/build.xml:169: The following error occurred while executing this line:
>>>>> /Users/ut/Documents/SVN/omero-4.2.0/components/antlib/resources/global.xml:109: The following error occurred while executing this line:
>>>>> /Users/ut/Documents/SVN/omero-4.2.0/components/tools/OmeroCpp/build.xml:67: The following error occurred while executing this line:
>>>>> /Users/ut/Documents/SVN/omero-4.2.0/components/antlib/resources/global.xml:231: exec returned: 2
>>>>> 
>>>>> 
>>>>> Anyone?
>>>>> Thanks for your time....
>>>>> 
>>>>> J.



More information about the ome-devel mailing list