igor2epics provides an XOP for Wavemetrics Igor Pro to create EPICS Channel Access clients.
Install Xcode or just the Commnad Line Tools on macOS and Visual Studio with C++ support or just Visual C++ Build Tools on Windows.
Build EPICS base 3.14.12, or any other current version, with the following EPICS_HOST_ARCH environment
OS Arch EPICS_HOST_ARCH Windows 32bit win32-x86-static 64bit windows-x64-static macOS PPC darwin-ppcx86 Intel darwin-x86
In the following the epics base is assumed to at $HOME/epics/base-3.14.12 on macOS and C:epicsbase-3.14.12 on Window.
Get the sourcec code:
git clone git://git.code.sf.net/p/igor2epics/git igor2epics
Place XOPSupport folder side by side to igor2epics source folder.
cmake -S igor2epics -B build64 -DEPICS_BASE=C:\epics\base-3.14.12 -DEPICS_HOST_ARCH=windows-x64-static -DXOP_SUPPORT=..\XOPSupport -G "Visual Studio 14 2015" -A x64 cmake --build build64 --config Release cmake -S igor2epics -B build32 -DEPICS_BASE=C:\epics\base-3.14.12 -DEPICS_HOST_ARCH=win32-x86-static -DXOP_SUPPORT=..\XOPSupport -G "Visual Studio 14 2015" -A Win32 cmake --build build32 --config Release
The results are build32/Release/EPICS.xop and build64/Release/EPICS64.xop for 32/64bit respectively.
Open the solution file EPICS.sln appropriate for your Visual Studio version, e.g. VC2015/EPICS.sln. In the EPICS project properties pages, change the Additional Include Directories and Additional Library Directories to reflect your EPICS base setup. Now build solution, and EPICS.xop or EPICS64.xop (based on the active solution platform) should be created under VC2015.
cmake -S igor2epics -B build64 -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DEPICS_BASE=~/epics/base-3.14.12 -DEPICS_HOST_ARCH=darwin-x86 -DXOP_SUPPORT=../XOPSupport cmake --build build64 --config Release cmake -S igor2epics -B build32 -DCMAKE_OSX_ARCHITECTURES=i386 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DEPICS_BASE=~/epics/base-3.14.12 -DEPICS_HOST_ARCH=darwin-x86 -DXOP_SUPPORT=../XOPSupport cmake --build build32 --config Release
The results are build32/EPICS.xop and build64/EPICS64.xop for 32/64bit respectively.
Open Xcode/EPICS.xcodeproj. In the EPICS project info dialog Build tab, change Header Search Paths and Library Search Paths to reflect your EPICS base setup, e.g. /Developer/epics/base-3.14.12, In order to link to the static libraries thus portable, remove *.dylib under /Developer/epics/base-3.14.12/lib/darwin-x86. Now select the architecture to build from menu Product->Scheme, EPICS for 32bit and EPICS64 for 64bit. Now build the product, and EPICS.xop or EPICS64.xop should be created under Products in the Project navigator.