-----Original Message-----
From: Ernest L. Williams Jr. [mailto:[email protected]]
Sent: 03 May 2012 22:33
To: Till Straumann
Cc: Rowland, James (DLSLtd,RAL,DIA); [email protected]
Subject: Re: labCa build fails on 64 bit Windows
On 05/03/2012 09:12 AM, Till Straumann wrote:
I built it on 64-bit windows7 for matlab 2011a. I don't recall what
compiler version
Hi,
I used MS Visual Studio 2010
I can provide binaries as well. :)
Cheers,
Ernest.
was used. Maybe Ernest can fill us in. He should also have access to
the binaries; if you're lucky they work for you.
- Till
On 05/03/2012 06:06 AM, [email protected] wrote:
Hi
Has anyone got labCa 3.4 to build on windows-64? If so, what
combination of Matlab, Windows and Compiler are you using. I can't
get it to work with Windows Server 2008, MatlabR2011b, Visual Studio
2010, EPICS 3.14.12.1
Initially the build fails building ezcaglue with some missing libraries:
link /nologo /subsystem:windows /dll /LTCG /incremental:no /opt:ref
/release /MACHINE:X64 c:/ma
tlab2011b/extern/lib/win64/microsoft/libut.lib
c:/matlab2011b/extern/lib/win64/microsoft/libmx.lib c
:/matlab2011b/extern/lib/win64/microsoft/libmex.lib /implib:mezcaglue.lib
/out:mezcaglue.dll
ini.obj multiEzca.obj ctrlC-polled.obj mglue.obj
..\\..\\lib\\windows-x64\\ezcamt.lib d:\ep
ics\r3.14.12.1\base\\lib\\windows-x64\\ca.lib
d:\epics\r3.14.12.1\base\\lib\\windows-x64\\Com.lib u ser32.lib
Creating library mezcaglue.lib and object mezcaglue.exp
ca.lib(ca_client_context.obj) : error LNK2001: unresolved external
symbol __imp_bind etc.
Adding ws2_32 and advapi32 to USR_SYS_LIBS fixes this but the mex functions
fail:
make[2]: Entering directory
`S:/Technical/Controls/Software/Matlab/Build/labca_3_4/matlab/O.windo
ws-
x64'
c:/matlab2011b/bin/mex.bat -DMATLAB_APP ../lcaGetNelem.c -I. -
I../O.Common -I. -I.. -I../../inclu
de/os/WIN32 -I../../include -Id:\epics\r3.14.12.1\base/include/os/WIN32 -
Id:\epics\r3.14.12.1\base/i
nclude -I../../ezca -I../../glue ../../lib/windows-
x64/mezcaglue.lib ../../lib/windows
-x64/ezcamt.lib d:\epics\r3.14.12.1\base/lib/windows-x64/ca.lib
d:\epics\r3.14.12.1\base/lib/windo
ws-x64/Com.lib ../../lib/windows-x64/ezcamt.lib
d:\epics\r3.14.12.1\base/lib/windows-x64/ca.lib d
:\epics\r3.14.12.1\base/lib/windows-x64/Com.lib ws2_32.lib advapi32.lib
ws2_32.lib advapi32.lib user 32.lib kernel32.lib winmm.lib
Creating library
C:\Users\jr76\AppData\Local\Temp\3\mex_JqkfYu\templib.x and object
C:\Users\jr76 \AppData\Local\Temp\3\mex_JqkfYu\templib.exp
lcaGetNelem.obj : error LNK2019: unresolved external symbol
__imp_ezcaFree referenced in function me xFunction
lcaGetNelem.mexw64 : fatal error LNK1120: 1 unresolved externals
C:\MATLAB~1\BIN\MEX.PL: Error: Link of 'lcaGetNelem.mexw64' failed.
make[2]: *** [lcaGetNelem.mexw64] Error 2
make[2]: Leaving directory
`S:/Technical/Controls/Software/Matlab/Build/labca_3_4/matlab/O.windo
ws-x
64'
make[1]: *** [install.windows-x64] Error 2
make[1]: Leaving directory
`S:/Technical/Controls/Software/Matlab/Build/labca_3_4/matlab'
make: *** [matlab.install] Error 2
S:\Technical\Controls\Software\Matlab\Build\labca_3_4>
James