[ome-users] Attempt to build "build-cpp"
John Webber (NBI)
John.Webber at nbi.ac.uk
Fri May 10 10:30:31 BST 2013
Hi all,
I am still experiencing the same error while trying to build a 64 bit, release version of the Omero CPPs.
I am using a Visual Studios 2010 64 bit command prompt and, after setting environment variables for VS 2010 64 bit tools with "vcvarsall.bat x64", I am using the following BAT file to attempt to build the Omero CPPs:
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_17
set ICE_HOME=D:\Ice
set OMERO_HOME=D:\GitHub\OMERO
set PATH=D:\Ice\bin\vc100\x64;C:\Program Files\Java\jdk1.7.0_17\bin;C:\Python27;%PATH%
set ARCH=x64
set RELEASE=Os
echo %ICE_HOME%
python build.py build-cpp
Unfortunately, I am still seeing the same error "Fatal Error: Ice library not found".
Please see attached the full output from my batch file.
The error at the end of the "D:\GitHub\openmicroscopy_v4.4.7\components\tools\OmeroCpp\config.log" file is:
C:\PROGRA~2\MICROS~2.0\VC\bin\link.EXE /nologo /MACHINE:X64 /DEBUG /OUT:.sconf_temp\conftest_2.exe /LIBPATH:. /LIBPATH:C:\Windows\Microsoft.NET\Framework64\v4.0.30319 /LIBPATH:C:\Windows\Microsoft.NET\Framework64\v3.5 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB\amd64" /LIBPATH:D:\GitHub\OMERO\lib /LIBPATH:D:\Ice\lib\vc100\x64 "/LIBPATH:C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64" /LIBPATH:D:\Ice\lib\x64 /LIBPATH:D:\Ice\lib Ice.lib .sconf_temp\conftest_2.obj
.sconf_temp\conftest_2.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
scons: Configure: no
As you can see, this STILL seems to be using D:\ice\lib in the LIBPATH, which is definitely incorrect! However, this is NOT something that I am setting, so I don't know where this is coming from. I have checked ALL of my environment variables (with the "set" command) and every mention of Ice points to the 64 bit version, as follows:
LIBPATH includes: "D:\Ice\lib\vc100\x64"
PATH includes: "D:\Ice\bin\vc100\x64"
And ICE_HOME is set to "D:\Ice".
Thanks
John
_____________________________________________
From: John Webber (NBI)
Sent: 09 May 2013 12:07
To: 'Roger Leigh'; ome-users at lists.openmicroscopy.org.uk
Cc: Jerome Avondo (jeromeavondo at gmail.com)
Subject: RE: [ome-users] Attempt to build "build-cpp"
Hi Roger, (et al)
Thank you for the response.
I have had another look this morning and am still at a loss! I have re-run the " python build.py build-cpp" and see the following error in the "config.log" flle within .. \components\tools\OmeroCpp:
scons: Configure: Checking for C library Ice...
.sconf_temp\conftest_2.c <-
|
|
|
|int
|main() {
|
|return 0;
|}
|
C:\PROGRA~2\MICROS~2.0\VC\bin\cl.EXE /Fo.sconf_temp\conftest_2.obj /c .sconf_temp\conftest_2.c /nologo /DOMERO_API_EXPORTS /D_REENTRANT /DNDEBUG /DWIN32_LEAN_AND_MEAN /Isrc /Itarget /ID:\GitHub\openmicroscopy_v4.4.7\components\blitz\generated /ID:\Ice\include
conftest_2.c
C:\PROGRA~2\MICROS~2.0\VC\bin\link.EXE /nologo /MACHINE:X64 /DEBUG /OUT:.sconf_temp\conftest_2.exe /LIBPATH:. /LIBPATH:C:\Windows\Microsoft.NET\Framework\v4.0.30319 /LIBPATH:C:\Windows\Microsoft.NET\Framework\v3.5 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB" /LIBPATH:D:\GitHub\OMERO\lib /LIBPATH:D:\Ice\lib\vc100\x64 "/LIBPATH:C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib" /LIBPATH:D:\Ice\lib\x64 /LIBPATH:D:\Ice\lib Ice.lib .sconf_temp\conftest_2.obj
.sconf_temp\conftest_2.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
scons: Configure: no
As you can see from this error, it appears to be using ice.lib from D:\ice\lib, but I have no idea why! I have checked ALL of my environment variables (with the "set" command) and every mention of Ice points to the 64 bit version, as follows:
LIBPATH includes: "D:\Ice\lib\vc100\x64"
PATH includes: "D:\Ice\bin\vc100\x64"
And ICE_HOME is set to "D:\Ice".
My complete LIBPATH is:
LIBPATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\F
ramework\v3.5;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB;c:\Prog
ram Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB;C:\Windows\Microsoft.
NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;c:\Program File
s (x86)\Microsoft Visual Studio 10.0\VC\LIB;c:\Program Files (x86)\Microsoft Vis
ual Studio 10.0\VC\ATLMFC\LIB;D:\GitHub\OMERO/lib;D:\Ice\lib\vc100\x64
My only thought is that I am not setting the ICE_HOME correctly... should this be something other than "D:\ice" ? The structure under D:\Ice is:
D:\Ice
D:\Ice\lib
D:\Ice\lib\vc100
D:\Ice\lib\vc100\x64
D:\Ice\bin
D:\Ice\bin\vc100
D:\Ice\bin\vc100\x64
Thanks
John
-----Original Message-----
From: ome-users-bounces at lists.openmicroscopy.org.uk<mailto:ome-users-bounces at lists.openmicroscopy.org.uk> [mailto:ome-users-bounces at lists.openmicroscopy.org.uk] On Behalf Of Roger Leigh
Sent: 09 May 2013 10:43
To: ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>
Subject: Re: [ome-users] Attempt to build "build-cpp"
On 09/05/2013 10:33, Roger Leigh wrote:
> One thought is that if you have both 32- and 64-bit versions of the
> Ice library (or any other dependencies), this may result in a failure
> to link 32- and 64-bit code. If so, this should show up in the logs.
Just to clarify, I mean having both 32- and 64-bit variants in the library search path.
--
Dr Roger Leigh -- Open Microscopy Environment Wellcome Trust Centre for Gene Regulation and Expression, College of Life Sciences, University of Dundee, Dow Street,
Dundee DD1 5EH Scotland UK Tel: (01382) 386364
The University of Dundee is a registered Scottish Charity, No: SC015096
_______________________________________________
ome-users mailing list
ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20130510/67c21727/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: out.txt
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20130510/67c21727/attachment.txt>
More information about the ome-users
mailing list