<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Josh,<div><br></div><div><div>> Do you have Ice 3.3 working VS 2010?? (See http://lists.openmicroscopy.org.uk/pipermail/ome-devel/2011-September/002040.html) <br><br></div><div>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... </div><div>Although a quick look at the makefile settings in ICE they seem to have no support for it.</div><div>But will dig around...</div><div><br></div><div><span style="font-size: 10pt; ">> Also, what initialization do you do for VS2010? E.g.</span></div><div>> <br>>         • C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat<br>>         • C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat<br><br>I'm just using the standard visual studio command prompt that's in my start menu, not sure what it calls to init... </div><div>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....</div><div><br></div><div>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</div><div><br></div><div>target\scons\scons-local-1.2.0.d20090223\SCons\Tool\MSCommon\VS.py</div><div><br></div><div>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...</div><div>But I do have the key under:</div><div><br></div><div>HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0_Config\Setup\VC</div><div><br></div><div>Just thought I would mention that...</div><div><br></div><div>> Finally, what platform are you on?<br><br></div><div>Windows 7 64bit</div><div><br></div><div>Thanks as always!</div><div>J.</div><div><br></div><div>> On Mar 20, 2012, at 12:20 PM, Jerome Avondo wrote:<br>> <br>> > <br>> > Hi again,<br>> > Some progress...<br>> > As a sanity check I tested with VS2008 and both server + cpp library compile fine.<br>> > With respect to VS2010, I had an issue with my javac.exe not being in my PATH env. variable.So no doing:<br>> > 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<br>> > I am able to compile the server with VS2010.But when I try to:<br>> > C:\Python27\python build.py build-cpp<br>> > using VS2010 I encounter the following error, which I know was previously reported:<br>> > e:\OMERO>python build.py build-cppBuildfile: e:\OMERO\build.xml<br>> > check-ivy::: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ :::: loading settings :: file = e:\OMERO\etc\ivysettings.xml<br>> > build-cpp:Entering e:\OMERO\components\tools\OmeroCpp...<br>> > tools-init:Copying 665 files to e:\OMERO\components\tools\OmeroCpp\target<br>> > 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'],<br>> > 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<br>> > So my question is this issue still unresolved?Is there any hope for VS2010 omero-cpp libraries?Thanks,<br>> > J.<br>> > From: jeromeavondo@msn.com<br>> > To: ome-devel@lists.openmicroscopy.org.uk<br>> > Date: Mon, 19 Mar 2012 17:00:38 +0000<br>> > Subject: [ome-devel] building OMERO cpp 4.3.4<br>> > <br>> > <br>> > Hi all,<br>> > I'm having a few issues building the 4.3.4 OMERO cpp library with VS2010.running the following:<br>> > set ICE_HOME=c:\Ice-3.3.1-VC90C:\Python26\python build.py cleanC:\Python27\python build.pyC:\Python27\python build.py build-cpp<br>> > which is what I was using for older versions (4.2.x) seems to choke at the point below:<br>> > 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<br>> > 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<br>> > Any help/pointers would be appreciated...Thanks,<br>> > J.<br>> >                                            <br></div></div>                                            </div></body>
</html>