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

Donald MacDonald Donald.MacDonald at Aridhia.com
Mon Aug 29 15:36:22 BST 2011


Hi Josh,

I've update the SCon- vs.py file, there is also an install issue with SCons on windows which requires moving the SCons directory up one level.

I've also added the Ice.h files into the VC environment. But I still seem to get the same error:

c:\Users\DonaldMacDonald\Desktop\ome>"c:\Program Files\Microsoft Visual Studio 1
0.0\VC\vcvarsall.bat"
Setting environment for using Microsoft Visual Studio 2010 x86 tools.

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)
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'],


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.xml:23: The
 following error occurred while executing this line:
c:\Users\DonaldMacDonald\Desktop\ome\components\antlib\resources\global.xml:234:
 exec returned: 2

Total time: 10 seconds

c:\Users\DonaldMacDonald\Desktop\ome>

Not sure what else I can do, This seems to be still a SCons problem, I cannot seem to find
Where the var is to coming from.


Also when executing SConstruct on the omero-cpp build I have issues with which/WhichError not
Existing. Not sure this is related, I've found a which module but I'm stuggling finding any
Ref to whichError.

Regards

D.


-----Original Message-----
From: Donald MacDonald
Sent: 29 August 2011 10:13
To: 'Josh Moore'
Cc: ome-devel Development
Subject: RE: [ome-devel] Building OMERO-CPP bindings on Windows

Hi Josh,

Ah, ok, that's great. I can try that. I'm trying to work against the
VC 8.0 build of Ice. I, probably mistakenly, am assuming that VS10 is backwards
compatible. If it still fails I can try and build ICE against Visual Studio 10.

Thanks

D.


-----Original Message-----
From: Josh Moore [mailto:josh at glencoesoftware.com]
Sent: 26 August 2011 18:53
To: Donald MacDonald
Cc: ome-devel Development
Subject: Re: [ome-devel] Building OMERO-CPP bindings on Windows

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\SConst
> ruc
> 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

This email has been sent from Aridhia Informatics Ltd a company registered in Scotland number SC324508 and having its registered office at 19 Blythswood Square, Glasgow, G2 4BG. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in any governing Aridhia Informatics Ltd client agreement. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by Aridhia Informatics Ltd in this regard and the recipient should carry out such virus and other checks as it considers appropriate. You can contact us at info at aridhia.com


More information about the ome-devel mailing list