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  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: LabCA for MATLAB Installation error
From: Straumann Till Sascha via Tech-talk <tech-talk at aps.anl.gov>
To: Giovanni Franzini <giovanni.franzini at lnf.infn.it>, tech-talk at aps.anl.gov
Date: Thu, 15 Jun 2023 08:41:17 +0200
Hi Giovanni.

I don't have a matlab license for windows, so I can't test this ATM.

You could try to simply delete and comment the

  typedef int pid_t;

and the following lines where 'getpid()'  is defined and _getpid declared.

I probably introduced these hacks a long time ago when windows didn't
declare these items yet.

Maybe Jim (on bcc) has additional recommendations - he has a lot of
experience with labca under windows.

HTH
- Till


On 14.06.23 14:35, Giovanni Franzini via Tech-talk wrote:
Hello,

I would like to have some help.

I am trying to install LabCA 3.8.1 with MATLAB 2023 in Windows10.

I have set my path in the RELEASE as

BASE_SUBDIR=/base/

EPICS_BASE=/c/msys64/home/Gio-Ufficio/base-7.0.7

MATLABDIR = /c/MATlink

(MATlink is a symbolic link to the installation directory: C:\Program
Files\MATLAB\R2023a)

MATLIB_SUBDIR = win64/mingw64

(I also tried win64/microsoft)

When I run make (through MSYS2 MINGW64 ) I get the following error:

$ make

make: git: No such file or directory

make -C ./configure install

make[1]: Entering directory
'/home/Gio-Ufficio/epics-labca-labca_3_8_1/configure'

make -C O.windows-x64-mingw -f ../Makefile TOP=../.. \

     T_A=windows-x64-mingw install

make[2]: Entering directory
'/home/Gio-Ufficio/epics-labca-labca_3_8_1/configure/O.windows-x64-mingw'

perl -CSD
/c/msys64/home/Gio-Ufficio/base-7.0.7/bin/windows-x64-mingw/convertRelease.p
l checkRelease

echo MEXEXT=.mexw64 >>MATLAB_CONFIG_INCLUDE

make[2]: Leaving directory
'/home/Gio-Ufficio/epics-labca-labca_3_8_1/configure/O.windows-x64-mingw'

make[1]: Leaving directory
'/home/Gio-Ufficio/epics-labca-labca_3_8_1/configure'

make -C ./ezca install

make[1]: Entering directory '/home/Gio-Ufficio/epics-labca-labca_3_8_1/ezca'

make -C O.windows-x64-mingw -f ../Makefile TOP=../.. \

     T_A=windows-x64-mingw install

make[2]: Entering directory
'/home/Gio-Ufficio/epics-labca-labca_3_8_1/ezca/O.windows-x64-mingw'

make[2]: Nothing to be done for 'install'.

make[2]: Leaving directory
'/home/Gio-Ufficio/epics-labca-labca_3_8_1/ezca/O.windows-x64-mingw'

make[1]: Leaving directory '/home/Gio-Ufficio/epics-labca-labca_3_8_1/ezca'

make -C ./glue install

make[1]: Entering directory '/home/Gio-Ufficio/epics-labca-labca_3_8_1/glue'

make -C O.windows-x64-mingw -f ../Makefile TOP=../.. \

     T_A=windows-x64-mingw install

make[2]: Entering directory
'/home/Gio-Ufficio/epics-labca-labca_3_8_1/glue/O.windows-x64-mingw'

g++          -DMATLAB_APP    -D_MINGW -D__USE_MINGW_ANSI_STDIO      -O3
-Wall      -m64    -DEPICS_BUILD_DLL -DEPICS_CALL_DLL    -I. -I../O.Common
-I. -I. -I.. -I../../include/compiler/gcc -I../../include/os/WIN32
-I../../include
-I/c/msys64/home/Gio-Ufficio/base-7.0.7/include/compiler/gcc
-I/c/msys64/home/Gio-Ufficio/base-7.0.7/include/os/WIN32
-I/c/msys64/home/Gio-Ufficio/base-7.0.7/include             -I../../ezca
-I/c/MATlink/extern/include    -o ini.obj -c ../ini.cc

../ini.cc:22:13: error: conflicting declaration 'typedef int pid_t'

    22 | typedef int pid_t;

       |             ^~~~~

In file included from C:/msys64/mingw64/include/pthread.h:64,

                  from
C:/msys64/mingw64/include/c++/13.1.0/x86_64-w64-mingw32/bits/gthr-default.h:
35,

                  from
C:/msys64/mingw64/include/c++/13.1.0/x86_64-w64-mingw32/bits/gthr.h:148,

                  from
C:/msys64/mingw64/include/c++/13.1.0/ext/atomicity.h:35,

                  from
C:/msys64/mingw64/include/c++/13.1.0/bits/ios_base.h:39,

                  from C:/msys64/mingw64/include/c++/13.1.0/ios:44,

                  from C:/msys64/mingw64/include/c++/13.1.0/ostream:40,

                  from
C:/msys64/home/Gio-Ufficio/base-7.0.7/include/epicsTime.h:32,

                  from
C:/msys64/home/Gio-Ufficio/base-7.0.7/include/db_access.h:21,

                  from
C:/msys64/home/Gio-Ufficio/base-7.0.7/include/cadef.h:39,

                  from ../ini.cc:8:

C:/msys64/mingw64/include/sys/types.h:68:17: note: previous declaration as
'typedef _pid_t pid_t'

    68 | typedef _pid_t  pid_t;

       |                 ^~~~~

../ini.cc:24:16: warning: 'int _getpid()' redeclared without dllimport
attribute: previous dllimport ignored [-Wattributes]

    24 | extern "C" int _getpid();

       |                ^~~~~~~

make[2]: ***
[/c/msys64/home/Gio-Ufficio/base-7.0.7/configure/RULES_BUILD:263: ini.obj]
Error 1

make[2]: Leaving directory
'/home/Gio-Ufficio/epics-labca-labca_3_8_1/glue/O.windows-x64-mingw'

make[1]: ***
[/c/msys64/home/Gio-Ufficio/base-7.0.7/configure/RULES_ARCHS:58:
install.windows-x64-mingw] Error 2

make[1]: Leaving directory '/home/Gio-Ufficio/epics-labca-labca_3_8_1/glue'

make: *** [/c/msys64/home/Gio-Ufficio/base-7.0.7/configure/RULES_DIRS:85:
glue.install] Error 2

Any idea on what is the problem?

Thank you

Giovanni



Replies:
Cross-haired xy coordiate from XYGraph Zhang, Tong via Tech-talk
Re: LabCA for MATLAB Installation error boj via Tech-talk
References:
LabCA for MATLAB Installation error Giovanni Franzini via Tech-talk

Navigate by Date:
Prev: Issue installing asyn on CentOS 7 Brandon Gunn via Tech-talk
Next: Re: Issue installing asyn on CentOS 7 Torsten Bögershausen via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: LabCA for MATLAB Installation error Giovanni Franzini via Tech-talk
Next: Cross-haired xy coordiate from XYGraph Zhang, Tong via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 18 Dec 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·