[ome-devel] building OMERO cpp 4.3.4

Josh Moore josh at glencoesoftware.com
Tue Mar 20 16:34:29 GMT 2012


On Mar 20, 2012, at 2:29 PM, Jerome Avondo wrote:

> 
> Hi Josh,
>> Do you have Ice 3.3 working VS 2010?? (See http://lists.openmicroscopy.org.uk/pipermail/ome-devel/2011-September/002040.html) 
> 
> I'm using the pre-built v3.3.1 VS2008 ones, was hoping I could get away with that, but will have a go at building from source using VS2010... Although a quick look at the makefile settings in ICE they seem to have no support for it.But will dig around...

Let us know how far you get. Ice 3.4 might be necessary, though.

>> Also, what initialization do you do for VS2010? E.g.> 
>> 	• C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat
>> 	• C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat
> 
> I'm just using the standard visual studio command prompt that's in my start menu, not sure what it calls to init... But I make sure I use the correct one (x86 vs x64) with respect to the ARCH env variable I set before the buiild.py omero-cpp....
> Also I noted by reading the other thread with the similar issue of building omero-cpp with Windows 7, that there is some init code to point to the correct visual studio, in the
> target\scons\scons-local-1.2.0.d20090223\SCons\Tool\MSCommon\VS.py
> And it uses registry keys to look for the install folder.... On my machine I do not have an entry for the "ProductDir" key under HKEY_LOCAL_MACHINE...But I do have the key under:
> HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0_Config\Setup\VC
> Just thought I would mention that...

A newer version of SCons may also be necessary.

One option would be to use the "msproj" target from OmeroCpp/build.xml with an earlier version of Visual Studio. I'm not sure if they are interchangeable between projects, but it does allow one to build all of OmeroCpp from within Visual Studio.


>> Finally, what platform are you on?
> 
> Windows 7 64bit
> Thanks as always!J.

Cheers,
~Josh.

>> On Mar 20, 2012, at 12:20 PM, Jerome Avondo wrote:
>> 
>>> 
>>> Hi again,
>>> Some progress...
>>> As a sanity check I tested with VS2008 and both server + cpp library compile fine.
>>> With respect to VS2010, I had an issue with my javac.exe not being in my PATH env. variable.So no doing:
>>> set ICE_HOME=c:\Ice-3.3.1-VC90set PATH=C:\Program Files\Java\jdk1.7.0\bin;C:\Ice-3.3.1-VC90\bin;%PATH%C:\Python27\python build.py
>>> I am able to compile the server with VS2010.But when I try to:
>>> C:\Python27\python build.py build-cpp
>>> using VS2010 I encounter the following error, which I know was previously reported:
>>> e:\OMERO>python build.py build-cppBuildfile: e:\OMERO\build.xml
>>> check-ivy::: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ :::: loading settings :: file = e:\OMERO\etc\ivysettings.xml
>>> build-cpp:Entering e:\OMERO\components\tools\OmeroCpp...
>>> tools-init:Copying 665 files to e:\OMERO\components\tools\OmeroCpp\target
>>> build:Building with ICE_HOME=c:\Ice-3.3.1-VC90Debug setting: True (debug)64-Bit build: False (x86)AttributeError: OmeroEnvironment instance has no attribute 'MSVSProject':  File "E:\OMERO\components\tools\OmeroCpp\SConstruct", line 147:    msproj = env.MSVSProject(target = 'omero_client' + env['MSVSPROJECTSUFFIX'],
>>> BUILD FAILEDe:\OMERO\build.xml:174: The following error occurred while executing this line:e:\OMERO\components\antlib\resources\global.xml:110: The following error occurred while executing this line:e:\OMERO\components\tools\OmeroCpp\build.xml:23: The following error occurred while executing this line:e:\OMERO\components\antlib\resources\global.xml:234: exec returned: 2
>>> So my question is this issue still unresolved?Is there any hope for VS2010 omero-cpp libraries?Thanks,
>>> J.
>>> From: jeromeavondo at msn.com
>>> To: ome-devel at lists.openmicroscopy.org.uk
>>> Date: Mon, 19 Mar 2012 17:00:38 +0000
>>> Subject: [ome-devel] building OMERO cpp 4.3.4
>>> 
>>> 
>>> Hi all,
>>> I'm having a few issues building the 4.3.4 OMERO cpp library with VS2010.running the following:
>>> set ICE_HOME=c:\Ice-3.3.1-VC90C:\Python26\python build.py cleanC:\Python27\python build.pyC:\Python27\python build.py build-cpp
>>> which is what I was using for older versions (4.2.x) seems to choke at the point below:
>>> icegen2:Copying 143 files to E:\SVN\-=OMERO_DEV=-\OMERO\components\blitz\generatedCopying 143 files to E:\SVN\-=OMERO_DEV=-\OMERO\components\blitz\generatedCopying 143 files to E:\SVN\-=OMERO_DEV=-\OMERO\components\blitz\generatedCopying 143 files to E:\SVN\-=OMERO_DEV=-\OMERO\components\blitz\generatedCopying 143 files to E:\SVN\-=OMERO_DEV=-\OMERO\components\blitz\generatedCopying 1 file to E:\SVN\-=OMERO_DEV=-\OMERO\components\blitz\generatedBuilding with ICE_HOME=c:\Ice-3.3.1-VC90Debug setting: True (debug)64-Bit build: False (x86)os.chdir('E:\\SVN\\-=OMERO_DEV=-\\OMERO\\components\\blitz\\resources')slice(["omero\api\Exporter.h", "omero\api\Exporter.cpp"], ["omero\api\Exporter.ice"])os.chdir('E:\\SVN\\-=OMERO_DEV=-\\OMERO\\components\\blitz')scons: *** [omero\api\Exporter.h] The system cannot find the file specified
>>> BUILD FAILEDE:\SVN\-=OMERO_DEV=-\OMERO\build.xml:126: The following error occurred while executing this line:E:\SVN\-=OMERO_DEV=-\OMERO\components\antlib\resources\global.xml:110: The following error occurred while executing this line:E:\SVN\-=OMERO_DEV=-\OMERO\components\blitz\build.xml:27: The following error occurred while executing this line:E:\SVN\-=OMERO_DEV=-\OMERO\components\blitz\build.xml:219: The following error occurred while executing this line:E:\SVN\-=OMERO_DEV=-\OMERO\components\antlib\resources\global.xml:234: exec returned: 2
>>> Any help/pointers would be appreciated...Thanks,
>>> J.
>>> 		 	   		  
> 		 	   		  



More information about the ome-devel mailing list