EPICS on Windows
- install windows
- update windows
- enable RDP and / or SSH Server:
- install runtime_aio
- install chocolatey
- install strawberry perl make git gsudo
-
choco install strawberryperl perl make git gsudo
-
- install visual studio build tools with visualc++ package
-
choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.MSBuildTools;includeRecommended --add Microsoft.VisualStudio.Workload.VCTools;includeRecommended --quiet"
-
- install "Desktop Development With C++ Workload" because vcvarsall.bat is part of C++ workload, if its missing.
- (normally, it should install with the first command, but in our tests, it didnt...)
- (In VS, go Tools menu -> Get Tools and Features -> Install the Desktop Development With C++ workload)
- clone and build EPICS
-
git clone https://github.com/epics-base/epics-base --recursive --branch 7.0
-
- (modify startup\windows.bat to fit newer / alternate VC paths, namely exchange Community with BuildTools)
-
set _visual_studio_home=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
[...]
call "%_visual_studio_home%\VC\Auxiliary\Build\vcvarsall.bat" x64
-
- load VC environment and build epics.
-
startup\windows.bat
make
-
- add EPICS to PATH
- only set path with HKCU values, otherwise it would copy the HKLM path into it and everything would be duplicated
-
setx EPICS_HOST_ARCH windows-x64
setx EPICS_BASE C:\EPICS\epics-base
setx PATH "%Path_HKCU%;%EPICS_BASE%\bin\%EPICS_HOST_ARCH%" - or go via control panel > user accounts > left side: change my environment variables and add them via GUI
- when creating / compiling an IOC, always enable EPICS environment first!
-
%EPICS_BASE%\startup\windows.bat
-
Page last modified on June 15, 2022, at 04:44 PM
Powered by
PmWiki