[ome-devel] Building OMERO-CPP bindings on Windows

Josh Moore josh at glencoesoftware.com
Fri Aug 26 18:52:42 BST 2011


Hi Donald,

Looking at the changelog (http://www.scons.org/CHANGES-2.1.txt) it looks like VS 2010 support is in the works:

  RELEASE 2.1.0.alpha.20101125 - Mon, 25 Nov 2010 13:31:44 -0700
  ...
  From William Deegan:

    - Add initial support for VS/VC 2010 (express and non-express versions)

If you want to try out the change, you could start with SCons 2.0 or 2.1 and apply the changes here:

  http://scons.tigris.org/ds/viewMessage.do?dsForumId=1272&dsMessageId=2632386

but apparently SCons 1.x and 2.x are sufficiently different that this may be a non-starter. For OMERO 4.4 I'll look into upgrading OMERO's SCons to make this easier:

  https://trac.openmicroscopy.org.uk/ome/ticket/6600

At the same time, there's a question of whether the compile would even work. Which Ice version are you using? Did you compile your own with VS 2010?

Cheers,
~Josh.


On Aug 26, 2011, at 6:09 PM, Donald MacDonald wrote:

> Hi Josh,
> 
> Ok, I messed up with the last message as I'd forgotten to run the vcvarsall.bat on that run my normal message is:
...
> AttributeError: OmeroEnvironment instance has no attribute 'MSVSProject':
>  File "C:\Users\DonaldMacDonald\Desktop\ome\components\tools\OmeroCpp\SConstruc
> t", line 147:
>    msproj = env.MSVSProject(target = 'omero_client' + env['MSVSPROJECTSUFFIX'],
....
> Which seems to match what your thinking about the scons update, I'm running VS 10.
...
> 
> Though looking at the scons it seems to only support VS 9.0
> 
> Regards
> 
> D.
> 
> 
> 
> -----Original Message-----
> From: Josh Moore [mailto:josh at glencoesoftware.com]
> Sent: 26 August 2011 16:03
> To: Donald MacDonald
> Cc: ome-devel at lists.openmicroscopy.org.uk
> Subject: Re: [ome-devel] Building OMERO-CPP bindings on Windows
> 
> Hi Donald!
> 
> Can you look in the config.log file under OmeroCpp? It should show you just went wrong with header detection. If it's still not clear, send config.log along with compiler.log and scons.log so we can try to figure things out. Info on which compiler you're using and how it's installed / initialized would also be helpful. The initialization we do in docs\hudson\OMERO-cpp.bat is:
> 
>  call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
>  if errorlevel 1 exit /b 1
> 
> but I don't know how that translates to VS versions on Win7. There's even an outside chance that we'll need to upgrade the SCons versions to have Win7 completely supported.
> 
> Cheers,
> ~Josh.
> 
> On Aug 26, 2011, at 4:49 PM, Donald MacDonald wrote:
> 
>> Hi all,
>> 
>> I'm trying to build the OMERO-CPP bindings on windows 7, I've got the
>> rest of the server running but I'm unable to build the C++ bindings
>> 
>> C:\Users\DonaldMacDonald\Desktop\ome>python build.py build-cpp
>> Buildfile: C:\Users\DonaldMacDonald\Desktop\ome\build.xml
>> 
>> check-ivy:
>> :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
>> :: loading settings :: file =
>> C:\Users\DonaldMacDonald\Desktop\ome\etc\ivysettin
>> gs.xml
>> 
>> build-cpp:
>> Entering C:\Users\DonaldMacDonald\Desktop\ome\components\tools\OmeroCpp...
>> 
>> build:
>> Building with ICE_HOME=C:\Ice-3.3.1
>> Debug setting: True (debug)
>> 64-Bit build: False (detect)
>> Ice/Ice.h not found
>> 
>> BUILD FAILED
>> C:\Users\DonaldMacDonald\Desktop\ome\build.xml:174: The following
>> error occurred while executing this line:
>> C:\Users\DonaldMacDonald\Desktop\ome\components\antlib\resources\global.xml:110:
>> The following error occurred while executing this line:
>> C:\Users\DonaldMacDonald\Desktop\ome\components\tools\OmeroCpp\build.x
>> ml:23: The following error occurred while executing this line:
>> C:\Users\DonaldMacDonald\Desktop\ome\components\antlib\resources\global.xml:234:
>> exec returned: 1
>> 
>> Total time: 5 seconds
>> 
>> C:\Users\DonaldMacDonald\Desktop\ome>
>> 
>> I've install scons, I've tried moving the include files around, is there something I've missed?
>> 
>> Regards
>> 
>> Donald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 243 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20110826/136116e5/attachment-0001.pgp>


More information about the ome-devel mailing list