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  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: labCa build fails on 64 bit Windows
From: "Ernest L. Williams Jr." <ernesto@slac.stanford.edu>
To: "Ernest L. Williams Jr." <ernesto@slac.stanford.edu>, EPICS Techtalk <tech-talk@aps.anl.gov>
Date: Fri, 04 May 2012 11:08:55 -0700
On 05/04/2012 10:59 AM, Ernest L. Williams Jr. wrote:
On 05/04/2012 03:44 AM, james.rowland@diamond.ac.uk wrote:
Hi Ernest

Please can I have the binaries while I work out what's wrong with the Visual Studio 2010 build, I don't have 2008.
Sure.
I will zip it up and mail it to you.
Or maybe, I should create a static executable?

I meant library




Cheers,
Ernest



James

-----Original Message-----
From: Ernest L. Williams Jr. [mailto:ernesto@slac.stanford.edu]
Sent: 03 May 2012 22:33
To: Till Straumann
Cc: Rowland, James (DLSLtd,RAL,DIA); tech-talk@aps.anl.gov
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, james.rowland@diamond.ac.uk 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





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

Navigate by Date:
Prev: Re: labCa build fails on 64 bit Windows Ernest L. Williams Jr.
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 
Navigate by Thread:
Prev: Re: labCa build fails on 64 bit Windows Ernest L. Williams Jr.
Next: RE: labCa build fails on 64 bit Windows james.rowland
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·