I think the issue is caused by the build system being unable to find files. In
process_begin: CreateProcess(NULL, C:/Program Files/MATLAB/R2023a /bin/mexext.bat, ...) failed.
It looks like there is an extra space character in “R2023a ” so you should check configure/RELEASE and remove this trailing character, however make may be unable to handle the space character in “Program Files” so you might need to
use the 8.3 DOS equivalent short name of PROGRA~1 as part of this path name i.e.
process_begin: CreateProcess(NULL, cl -nologo -FC -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -Ox -GL -Oy- -W3 -MD -DEPICS_BUILD_DLL -DEPICS_CALL_DLL -I. -I../O.Common -I. -I. -I.. -I../../include/compiler/msvc
-I../../include/os/WIN32 -I../../include -IC:/Users/fhr83689/base-R7.0.4.1/include/compiler/msvc -IC:/Users/fhr83689/base-R7.0.4.1/include/os/WIN32 -IC:/Users/fhr83689/base-R7.0.4.1/include -c ../ezca.c, ...) failed.
make (e=2): The system cannot find the file specified.
This looks to be due to make not finding the Microsoft compiler “cl”. Before building labca was the epics base startup/windows.bat run for the command window? If not then try building labca again after running that bat file
in the command window
From: Tech-talk
<tech-talk-bounces at aps.anl.gov> On Behalf Of Rajan Mistry - STFC UKRI via Tech-talk
Sent: Friday, August 2, 2024 2:29 PM
To: tech-talk at aps.anl.gov
Subject: Install issues for labCA (channel access interface for matlab)
Hello,
I have a windows PC and am trying to install the channel access interface for MATLAB, known as labca:
LabCA - EPICS/Channel Access Interface for Scilab and Matlab | epics-labca
(till-s.github.io)
GitHub - till-s/epics-labca: EPICS Channel-Access
Interface/Wrapper for Matlab and Scilab.
I am relatively new to EPICs, but have successfully installed EPICS to the location:
C:\Users\fhr83689\base-R7.0.4.1\bin\windows-x64
Commands such as ‘softioc’ will start EPICS, so I am confident that I have installed EPICS correctly.
The following system and user variables paths are defined , and are saved in my PATH environment variables (both system and user):
EPICS_BASE=“C:\Users\fhr83689\base-R7.0.4.1\”
EPICS_HOST_ARCH=”windows-x64”
%EPICS_BASE%\bin\%EPICS_HOST_ARCH%\
%EPICS_BASE%
I have cloned the tag 3.8.1 from the labCA repo into my downloads folder and then ran the make command to install it. However, it is not successfully installed and I get the following error messages (pasted at the end of this post).
Please can someone help me figure out what the issue is and how I can successfully install labCA ?
Thanks,
Raj
C:\Users\fhr83689\Downloads\epics-labca>make
The system cannot find the path specified.
C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -C ./configure install
make[1]: Entering directory 'C:/Users/fhr83689/Downloads/epics-labca/configure'
The system cannot find the path specified.
perl -CSD C:/Users/fhr83689/base-R7.0.4.1/bin/windows-x64/makeMakefile.pl O.windows-x64 ../..
perl -CSD -MExtUtils::Command -e mkpath O.Common
C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -C O.windows-x64 -f ../Makefile TOP=../.. \
T_A=windows-x64 install
make[2]: Entering directory 'C:/Users/fhr83689/Downloads/epics-labca/configure/O.windows-x64'
The system cannot find the path specified.
perl -CSD C:/Users/fhr83689/base-R7.0.4.1/bin/windows-x64/convertRelease.pl checkRelease
process_begin: CreateProcess(NULL, C:/Program Files/MATLAB/R2023a /bin/mexext.bat, ...) failed.
../../configure/RULES:10: pipe: No such file or directory
echo MEXEXT=.dll >>MATLAB_CONFIG_INCLUDE
make[2]: Leaving directory 'C:/Users/fhr83689/Downloads/epics-labca/configure/O.windows-x64'
make[1]: Leaving directory 'C:/Users/fhr83689/Downloads/epics-labca/configure'
C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -C ./ezca install
make[1]: Entering directory 'C:/Users/fhr83689/Downloads/epics-labca/ezca'
The system cannot find the path specified.
perl -CSD C:/Users/fhr83689/base-R7.0.4.1/bin/windows-x64/makeMakefile.pl O.windows-x64 ../..
perl -CSD -MExtUtils::Command -e mkpath O.Common
C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -C O.windows-x64 -f ../Makefile TOP=../.. \
T_A=windows-x64 install
make[2]: Entering directory 'C:/Users/fhr83689/Downloads/epics-labca/ezca/O.windows-x64'
The system cannot find the path specified.
perl -CSD C:/Users/fhr83689/base-R7.0.4.1/bin/windows-x64/mkmf.pl -m ezca.d -I. -I../O.Common -I. -I. -I.. -I../../include/compiler/msvc -I../../include/os/WIN32 -I../../include -IC:/Users/fhr83689/base-R7.0.4.1/include/compiler/msvc
-IC:/Users/fhr83689/base-R7.0.4.1/include/os/WIN32 -IC:/Users/fhr83689/base-R7.0.4.1/include ezca.obj ../ezca.c
The system cannot find the path specified.
cl -nologo -FC -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -Ox -GL -Oy- -W3 -MD -DEPICS_BUILD_DLL -DEPICS_CALL_DLL -I. -I../O.Common -I. -I. -I.. -I../../include/compiler/msvc -I../../include/os/WIN32
-I../../include -IC:/Users/fhr83689/base-R7.0.4.1/include/compiler/msvc -IC:/Users/fhr83689/base-R7.0.4.1/include/os/WIN32 -IC:/Users/fhr83689/base-R7.0.4.1/include -c ../ezca.c
process_begin: CreateProcess(NULL, cl -nologo -FC -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -Ox -GL -Oy- -W3 -MD -DEPICS_BUILD_DLL -DEPICS_CALL_DLL -I. -I../O.Common -I. -I. -I.. -I../../include/compiler/msvc -I../../include/os/WIN32
-I../../include -IC:/Users/fhr83689/base-R7.0.4.1/include/compiler/msvc -IC:/Users/fhr83689/base-R7.0.4.1/include/os/WIN32 -IC:/Users/fhr83689/base-R7.0.4.1/include -c ../ezca.c, ...) failed.
make (e=2): The system cannot find the file specified.
make[2]: *** [C:/Users/fhr83689/base-R7.0.4.1/configure/RULES_BUILD:241: ezca.obj] Error 2
make[2]: Leaving directory 'C:/Users/fhr83689/Downloads/epics-labca/ezca/O.windows-x64'
make[1]: *** [C:/Users/fhr83689/base-R7.0.4.1/configure/RULES_ARCHS:58: install.windows-x64] Error 2
make[1]: Leaving directory 'C:/Users/fhr83689/Downloads/epics-labca/ezca'
make: *** [C:/Users/fhr83689/base-R7.0.4.1/configure/RULES_DIRS:85: ezca.install] Error 2
Rajan Mistry
Laser Scientist (CALTA)
Central Laser Facility
R109 1.26
STFC Rutherford Appleton Laboratory
Harwell Campus, Didcot, OX11 0QX, UK
rajan.mistry at stfc.ac.uk
Tel.
+44 1235 394308
