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: windows-x64 tool versions
From: "Chu, Paul" <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 10 Sep 2012 17:12:49 +0000
What I did was to modify the startup\win32.bat and executed it before "make".  Here are the lines I modified in the file (I use Strawberry Perl and GnuWin32 make):

...
REM   --------------- ActiveState perl -------------------
set PATH=C:\strawberry\perl\bin;%PATH%
...
REM   --------------- gnuwin32 make ----------------------
set PATH=%ProgramFiles(x86)%\GnuWin32\bin;%PATH%
...
REM --  windows-x64 ---
call "C:\Program files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x64
REM --  win32-x86 ---
REM call "C:\Program files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
...
REM ======================================================
REM --------------- EPICS --------------------------------
REM ======================================================
set EPICS_HOST_ARCH=windows-x64
REM set EPICS_HOST_ARCH=win32-x86
...

Note: if you use Visual Studio 2010 Express (the free version), you will need to do the following extra steps:
1. Download and install Microsoft SDK 7.1
2. A patch to the SDK 7.1 (can be found here: http://www.microsoft.com/en-us/download/details.aspx?id=4422)
3. Use the following line in the win32.bat instead of the 'call "C:\Program files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x64':
CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64

Of course, these paths are assuming your VS installed in the default place on C:\.

By the way, I did get some error with mingw32 make but no problem with GnuWin32 make.

Hope this helps.

Paul

> -----Original Message-----
> From: [email protected] [mailto:tech-talk-
> [email protected]] On Behalf Of [email protected]
> Sent: Monday, September 10, 2012 11:36 AM
> To: [email protected]
> Subject: windows-x64 tool versions
> 
> Hi
> 
> Are there particular tool versions I need to build base-3.14.12.2 with out of
> the box configuration on windows-x64? I get this link error using these tools:
> 
> Visual Studio 2010:
> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01 for x64
> 
> U:\epics\base-3.14.12.2>perl -v
> This is perl 5, version 12, subversion 4 (v5.12.4) built for MSWin32-x64-multi-t
> hread
> 
> U:\epics\base-3.14.12.2>c:\MinGW\bin\mingw32-make.exe -v GNU Make
> 3.82 Built for i386-pc-mingw32
> 
> make
> ...
> link /nologo /subsystem:windows /dll /LTCG /incremental:no /opt:ref
> /release /ve
> rsion:3.14  /MACHINE:X64    /implib:com.lib /out:com.dll        bucketLib.obj ep
> icsRingPointer.obj epicsRingBytes.obj postfix.obj calcPerform.obj cvtFast.obj
> re sourceLib.obj epicsOnce.obj epicsSingletonMutex.obj dbmf.obj ellLib.obj
> envSubr.
> obj envData.obj errlog.obj errSymLib.obj errSymTbl.obj fdmgr.obj
> fdManager.obj f reeListLib.obj gpHashLib.obj iocsh.obj registry.obj
> libComRegister.obj iocLog.ob j logClient.obj macCore.obj macEnv.obj
> macUtil.obj aToIPAddr.obj adjustment.obj cantProceed.obj epicsConvert.obj
> epicsExit.obj epicsStdlib.obj epicsString.obj t runcateFile.obj
> ipAddrToAsciiAsynchronous.obj epicsUnitTest.obj epicsThread.obj
> epicsMutex.obj epicsEvent.obj epicsTime.obj epicsMessageQueue.obj
> epicsMath.obj epicsGeneralTime.obj osiClockTime.obj osdSock.obj
> osdSockAddrReuse.obj osiSock.o bj systemCallIntMech.obj
> epicsSocketConvertErrnoToString.obj osdAssert.obj osdFi ndSymbol.obj
> osdInterrupt.obj osdPoolStatus.obj osdSignal.obj osdEnv.obj epicsRe
> adline.obj epicsTempFile.obj epicsStdio.obj osdStdio.obj osdThread.obj
> osdMutex.
> obj osdEvent.obj osdTime.obj osdProcess.obj osdNetIntf.obj
> osdMessageQueue.obj d evLibVME.obj devLibVMEOSD.obj taskwd.obj
> epicsTimer.obj timer.obj timerQueue.obj  timerQueueActive.obj
> timerQueueActiveMgr.obj timerQueuePassive.obj tsDefs.obj e
> picsGetopt.obj setThreadName.obj forceBadAllocException.obj
>    Creating library com.lib and object com.exp fdManager.obj : error LNK2001:
> unresolved external symbol __WSAFDIsSet fdManager.obj : error LNK2001:
> unresolved external symbol __imp_WSAGetLastError fdManager.obj : error
> LNK2001: unresolved external symbol __imp_select logClient.obj : error
> LNK2001: unresolved external symbol __imp_send logClient.obj : error
> LNK2001: unresolved external symbol __imp_setsockopt logClient.obj : error
> LNK2001: unresolved external symbol __imp_shutdown logClient.obj : error
> LNK2001: unresolved external symbol __imp_htons logClient.obj : error
> LNK2001: unresolved external symbol __imp_connect aToIPAddr.obj : error
> LNK2001: unresolved external symbol __imp_htonl osdSock.obj : error
> LNK2001: unresolved external symbol __imp_accept osdSock.obj : error
> LNK2001: unresolved external symbol __imp_gethostbyname osdSock.obj :
> error LNK2001: unresolved external symbol __imp_gethostbyaddr
> osdSock.obj : error LNK2001: unresolved external symbol __imp_closesocket
> osdSock.obj : error LNK2001: unresolved external symbol __imp_socket
> osdSock.obj : error LNK2001: unresolved external symbol
> __imp_WSACleanup osdSock.obj : error LNK2001: unresolved external
> symbol __imp_WSAStartup osiSock.obj : error LNK2001: unresolved external
> symbol __imp_ntohs osiSock.obj : error LNK2001: unresolved external
> symbol __imp_ntohl osdProcess.obj : error LNK2001: unresolved external
> symbol __imp_MessageBoxA osdProcess.obj : error LNK2001: unresolved
> external symbol __imp_GetUserNameA osdNetIntf.obj : error LNK2001:
> unresolved external symbol __imp_WSAIoctl com.dll : fatal error LNK1120: 21
> unresolved externals
> mingw32-make[3]: *** [Com.dll] Error 1120
> mingw32-make[3]: Leaving directory `U:/epics/base-
> 3.14.12.2/src/libCom/O.windows
> -x64'
> mingw32-make[2]: *** [install.windows-x64] Error 2
> mingw32-make[2]: Leaving directory `U:/epics/base-3.14.12.2/src/libCom'
> mingw32-make[1]: *** [libCom.install] Error 2
> mingw32-make[1]: Leaving directory `U:/epics/base-3.14.12.2/src'
> mingw32-make: *** [src.install] Error 2
> 
> --
> This e-mail and any attachments may contain confidential, copyright and or
> privileged material, and are for the use of the intended addressee only. If
> you are not the intended addressee or an authorised recipient of the
> addressee please notify us of receipt by returning the e-mail and do not use,
> copy, retain, distribute or disclose the information in or attached to the e-
> mail.
> Any opinions expressed within this e-mail are those of the individual and not
> necessarily of Diamond Light Source Ltd.
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any
> attachments are free from viruses and we cannot accept liability for any
> damage which you may sustain as a result of software viruses which may be
> transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England
> and Wales with its registered office at Diamond House, Harwell Science and
> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
> 
> 
> 
> 



References:
windows-x64 tool versions james.rowland

Navigate by Date:
Prev: Does anyone have support for Hamamatsu ORCA Flash 4.0? nick.rees
Next: RE: windows-x64 tool versions Mark Rivers
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: windows-x64 tool versions james.rowland
Next: RE: windows-x64 tool versions Mark Rivers
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 ·