So I tried to reinstall ice with homebrew this time after clearing up any OME related environment variables in my source file. All the ice dependency packages installed ok including db and mcpp. However, got hundreds of error while compiling Ice 3.4 starting with the following:<div>
<div>c++ -c -I.. -I../../include -DICE_API_EXPORTS -O2 -DNDEBUG -Wall -D_REENTRANT Direct.cpp</div><div>In file included from Current.cpp:24:</div><div>In file included from ../../include/Ice/Current.h:24:</div><div>In file included from ../../include/Ice/LocalObjectF.h:15:</div>
<div>../../include/Ice/Handle.h:106:13: error: call to function 'upCast' that is neither visible in the template definition nor found by argument-dependent lookup</div><div> upCast(this->_ptr)->__decRef();</div>
<div> ^</div><div><br></div><div>Do you know what's causing it? Is there any other way to install Ice 3.4. The omero website indicates that omero 3.3 would not work my Mac Lion, so that is not an option.</div>
<div><br><br><div class="gmail_quote">On Fri, Sep 21, 2012 at 1:39 PM, Josh Moore <span dir="ltr"><<a href="mailto:josh@glencoesoftware.com" target="_blank">josh@glencoesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Oscar,<br>
<div class="im"><br>
On Sep 21, 2012, at 8:34 PM, Oscar wrote:<br>
<br>
> I added the following lines in my bashrc according to the README of Ice3.4.1<br>
> export ICE_HOME=/usr/share/Ice-3.4.1<br>
> export PYTHONPATH=/usr/lib/python2.7:$ICE_HOME/python<br>
> export DYLD_LIBRARY_PATH=/usr/share/java:/usr/lib/:/usr/share/Ice-3.4.1:$DYLD_LIBRARY_PATH<br>
> export CLASSPATH=$ICE_HOME/lib/Ice.jar:$ICE_HOME/lib/Freeze.jar:$ICE_HOME/lib/db.jar:$CLASSPATH<br>
> export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$ICE_HOME/bin:$POSTGRES_HOME/bin<br>
> #ant -Dice.home=$ICE_HOME<br>
<br>
</div>At this point, is "slice2java --version" returning "3.4.1"?<br>
<div class="im"><br>
<br>
> Still got the same error. (pasted below again):<br>
> ==> ./build.py -Dice.home=/usr/local build-default<br>
> Error getting version for BUILD_NUMBER=<br>
> Result: 133<br>
><br>
> BUILD FAILED<br>
> /private/tmp/brew-omero-4.4.1-sPcQ/build.xml:36: The following error<br>
> occurred while executing this line:<br>
> /private/tmp/brew-omero-4.4.1-sPcQ/components/antlib/resources/global.xml:310:<br>
> Cannot find slice2java!<br>
><br>
> *******************************************************<br>
> Ice is not properly installed. Cannot find slice2java<br>
> *******************************************************<br>
><br>
> Total time: 0 seconds<br>
><br>
> Looks like the ice.home wasn't set right, /usr/local isn't where Ice is<br>
> installed. Note the last line in my environment file which I commented out.<br>
> It is in the README file, but it gives me error if I have it in there. Does<br>
> it have to do with the error? How do I set ice.home correctly in my bashrc.<br>
> Also, Ice Readme says either ice.home or ICE_HOME works, but it seems<br>
> ICE_HOME has been ignored by homebrew the whole time, even though it is<br>
> set in bashrc<br>
<br>
</div>There are several things that we're trying to workout at once. My assumption is that if you have slice2java working, then the omero build (./build.py) should complete. If not, you may have to install Ice via homebrew in which case ice.home/ICE_HOME would in fact be under /usr/local.<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
~Josh.<br>
<br>
<br>
> On Fri, Sep 21, 2012 at 9:25 AM, Josh Moore <<a href="mailto:josh@glencoesoftware.com">josh@glencoesoftware.com</a>>wrote:<br>
><br>
>><br>
>> On Sep 21, 2012, at 4:17 PM, Oscar wrote:<br>
>><br>
>>> I did the exact command `brew --prefix ice`/bin/slicejava --version, it<br>
>>> said: -bash: /usr/local/Cellar/ice/3.4.2/bin/slicejava: No such file or<br>
>>> directory<br>
>>><br>
>>> I do not understand why it points to Cellar while Ice is installed under<br>
>>> /usr/share/Ice-3.4.1 by default.<br>
>>><br>
>>> Then I tried "/usr/share/Ice-3.4.1/bin/slice2java --version" still<br>
>> nothing,<br>
>>> but gave me this error:<br>
>>><br>
>>> dyld: Library not loaded: /opt/Ice-3.4/lib/libSlice.34.dylib<br>
>>> Referenced from: /usr/share/Ice-3.4.1/bin/slice2java<br>
>>> Reason: image not found<br>
>>> Trace/BPT trap: 5<br>
>><br>
>> Ah, ok. If you've installed Ice under /usr/share/Ice-3.4.1 (which doesn't<br>
>> belong to homebrew), then you'll need to set PATH and DYLD_LIBRARY_PATH to<br>
>> point at bin and lib, respectively, to get Ice running. This is what is<br>
>> described in the README under Ice-3.4.1.<br>
>><br>
>> Cheers,<br>
>> ~Josh.<br>
>><br>
>><br>
>>> On Fri, Sep 21, 2012 at 9:11 AM, Josh Moore <<a href="mailto:josh@glencoesoftware.com">josh@glencoesoftware.com</a><br>
>>> wrote:<br>
>>><br>
>>>><br>
>>>> On Sep 21, 2012, at 4:08 PM, Oscar wrote:<br>
>>>><br>
>>>>> slice2java --version (-version, -v) or even man slice2java gave me<br>
>>>> nothing,<br>
>>>>> but it came with Ice-3.4 if that helps.<br>
>>>><br>
>>>> So until "slice2java --version" works properly the OMERO build can<br>
>>>> definitely not complete. What's on your $PATH? Does `brew --prefix<br>
>>>> ice`/bin/slicejava --version return anything?<br>
>>>><br>
>>>> Cheers,<br>
>>>> ~Josh<br>
>>>><br>
>>>><br>
>>>>> The link for the walk-thru is:<br>
>>>>><br>
>>>><br>
>> <a href="http://www.openmicroscopy.org/site/support/omero4/server/install-walkthrough-on-10.7-using-homebrew" target="_blank">http://www.openmicroscopy.org/site/support/omero4/server/install-walkthrough-on-10.7-using-homebrew</a><br>
>>>>><br>
>>>>> Thanks<br>
>>>>><br>
>>>>> On Fri, Sep 21, 2012 at 2:54 AM, Josh Moore <<a href="mailto:josh@glencoesoftware.com">josh@glencoesoftware.com</a><br>
>>>>> wrote:<br>
>>>>><br>
>>>>>> Hi Oscar,<br>
>>>>>><br>
>>>>>> On Sep 20, 2012, at 11:40 PM, Oscar wrote:<br>
>>>>>><br>
>>>>>>> I was following the walkthrough of installing Omero with Homebrew on<br>
>>>> Mac<br>
>>>>>>> Lion and got stuck at the "brew install omero" step. Got the<br>
>> following<br>
>>>>>>> error:<br>
>>>>>><br>
>>>>>> Can you post the link to the walk-through you're using just to make<br>
>> sure<br>
>>>>>> we're looking at the same version?<br>
>>>>>><br>
>>>>>>> ==> ./build.py -Dice.home=/usr/local build-default<br>
>>>>>>> Error getting version for BUILD_NUMBER=<br>
>>>>>>> Result: 133<br>
>>>>>>><br>
>>>>>>> BUILD FAILED<br>
>>>>>>> /private/tmp/brew-omero-4.4.1-gxMx/build.xml:36: The following error<br>
>>>>>>> occurred while executing this line:<br>
>>>>>>><br>
>>>>>><br>
>>>><br>
>> /private/tmp/brew-omero-4.4.1-gxMx/components/antlib/resources/global.xml:310:<br>
>>>>>>> Cannot find slice2java!<br>
>>>>>>><br>
>>>>>>><br>
>>>>>> *******************************************************<br>
>>>>>>> Ice is not properly installed. Cannot find<br>
>> slice2java<br>
>>>>>>><br>
>>>>>> *******************************************************<br>
>>>>>>><br>
>>>>>>> I did a google search on this matter and found that similar question<br>
>>>> has<br>
>>>>>>> been asked in the past. It could be resolved by creating a softlink<br>
>> of<br>
>>>>>>> slice2java from Ice3.4 directory to /usr/local/bin. Did that but<br>
>> still<br>
>>>>>> got<br>
>>>>>>> the same error. Any suggestions?<br>
>>>>>><br>
>>>>>><br>
>>>>>> What do `slice2java --version` and `which slice2java` say?<br>
>>>>>><br>
>>>>>> Cheers,<br>
>>>>>> ~Josh.<br>
>>>>>><br>
>>>>>><br>
>>>><br>
>>>><br>
>><br>
>><br>
<br>
</div></div></blockquote></div><br></div></div>