EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: labCa build fails on 64 bit Windows
From: Till Straumann <[email protected]>
To: "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 03 May 2012 11:12:59 -0500
I built it on 64-bit windows7 for matlab 2011a. I don't recall what compiler version 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.windows-
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.windows-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




Replies:
Re: labCa build fails on 64 bit Windows Ernest L. Williams Jr.
References:
labCa build fails on 64 bit Windows james.rowland

Navigate by Date:
Prev: RE: CA_PROTO_READ_NOTIFY Response graham.cox
Next: Re: [Scopes] BMP image record?? Pavel Masloff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: labCa build fails on 64 bit Windows james.rowland
Next: Re: labCa build fails on 64 bit Windows Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·