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  <20162017  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  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: MCA or LabCA on Linux-64bit
From: "Allison, Stephanie" <[email protected]>
To: Hinxx <[email protected]>, Giovanna Campogiani <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 18 Nov 2016 16:23:59 +0000
Hi,

At SPEAR, we are still using an older linux GNU compiler.  Until we get a chance to upgrade, we make this patch to our newer versions of matlab:

Modify <matlab_root>/bin/glnxa64/mexopts/g++_glnxa64.xml to remove the "-std=c++11" compile flag.

So far, we've been able to do this without other fallout but we really should upgrade our compiler instead.

Stephanie Allison

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of Hinxx
> Sent: Friday, November 18, 2016 5:27 AM
> To: Giovanna Campogiani
> Cc: [email protected]
> Subject: Re: MCA or LabCA on Linux-64bit
> 
> On Fri, 2016-11-18 at 11:55 +0100, Giovanna Campogiani wrote:
> > Dear colleagues,
> > many thanks for the useful and fast input on my issue.
> >
> > I realise now I forgot to paste the final line in the MCA error
> > message: the full error message being
> >
> > cc1plus: error: unrecognized command line option "-std=c++11"
> 
> Looks like your 4.4.6 C++ compiler might be too old to support the
> -std=c++11 switch. Try to use -std=c++0x as suggested here http://stack
> overflow.com/questions/16456630/std-c11-flag-unrecognized-in-g-4-4-6.
> 
> Thanks,
> Hinko
> 
> >
> > make: *** [O.linux-x86_64/mca.mexa64] Error 255
> >
> > I modified the Makefile to look for a mca.mexa64 instead of
> > mca.mexglx file as that would be the correct extension for the file.
> >
> > In attachment I put the stdout and stderr messages
> >
> > I'll have a look at the PSI protocol, it's very interesting, would it
> > be suitable for operation with Matlab Middle Layer as well?
> >
> > Cheers,
> > Giovanna
> >
> > 2016-11-18 10:52 GMT+01:00 Ebner Simon Gregor (PSI) <simon.ebner@psi.
> > ch>:
> > > Hi Giovanna
> > >
> > > This is not directly related to your question, however it might
> > > solve your base issue to have Channel Access in Matlab.
> > > At PSI we use and (only) support this Channel Access package for
> > > Matlab: https://github.com/channelaccess/ca_matlab
> > > No compilation no installation … you only need a recent Matlab.
> > >
> > > Best
> > > Simon
> > >
> > >
> > > > On 18 Nov 2016, at 09:48, Giovanna Campogiani <giovanna.campogian
> > > [email protected]> wrote:
> > > >
> > > > Dear colleagues,
> > > > I am trying to make the configuration files for MCA or LabCA on a
> > > Scientific Linux 64bit machine and I am get the errors at the
> > > bottom of the email.
> > > > While searching for an answer I learnt probably the problem is
> > > within the fact that both MCA and LabCA are for a 32 bit pc. How to
> > > make MCA and LabCA compatible for a 64 bit version of MATLAB?
> > > > Is this the real issue or am I missing something else?
> > > >
> > > > Many thanks for your support,
> > > > best regards,
> > > > Giovanna
> > > >
> > > > -------------------------------------------------
> > > > Errors reports
> > > >
> > > > when trying to make MCA
> > > >
> > > > /local/MATLAB/R2016b/bin/mex" -v -I/opt/codac-
> > > 4.1/epics/base/include -I/opt/codac-4.1/epics/base/include/os/Linux
> > > -DEPICS_DLL_NO -L/opt/codac-4.1/epics/base/lib/linux-x86_64
> > > -ldbStaticHost -lCom -lca mca.cpp MCAError.cpp Channel.cpp -O
> > > O.linux-x86_64/mca.mexglx
> > > > Verbose mode is on.
> > > >
> > > > when trying to make LabCA
> > > > make -C ./configure install
> > > > make[1]: Entering directory `/home/codac-
> > > dev/MATLAB/labca_3_5_0/configure'
> > > > make -C O.linux-x86_64 -f ../Makefile TOP=../.. T_A=linux-x86_64
> > > install
> > > > make[2]: Entering directory `/home/codac-
> > > dev/MATLAB/labca_3_5_0/configure/O.linux-x86_64'
> > > > perl /opt/codac-4.1/epics/base/bin/linux-x86_64/convertRelease.pl
> > > checkRelease
> > > > make[2]: Leaving directory `/home/codac-
> > > dev/MATLAB/labca_3_5_0/configure/O.linux-x86_64'
> > > > make[1]: Leaving directory `/home/codac-
> > > dev/MATLAB/labca_3_5_0/configure'
> > > > make -C ./ezca install
> > > > make[1]: Entering directory `/home/codac-
> > > dev/MATLAB/labca_3_5_0/ezca'
> > > > make -C O.linux-x86_64 -f ../Makefile TOP=../.. T_A=linux-x86_64
> > > install
> > > > make[2]: Entering directory `/home/codac-
> > > dev/MATLAB/labca_3_5_0/ezca/O.linux-x86_64'
> > > >
> > > > /usr/bin/gcc -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
> > > -D_XOPEN_SOURCE=500           -D_X86_64_  -DUNIX  -D_BSD_SOURCE
> > > -Dlinux  -D_REENTRANT   -O3 -g   -Wall     -g  -m64     -fPIC -MMD
> > > -I. -I../O.Common -I. -I.. -I../../include/os/Linux
> > > -I../../include         ../ezca.c
> > > > make[2]: Leaving directory `/home/codac-
> > > dev/MATLAB/labca_3_5_0/ezca/O.linux-x86_64'
> > > > make[1]: Leaving directory `/home/codac-
> > > dev/MATLAB/labca_3_5_0/ezca'
> > > >
> > > >
> > > > --
> > > > Giovanna Campogiani
> > > >
> > > > Accelerator Physics PhD Student
> > > > Electronics Engineer
> > > >
> > > > Sapienza University of Rome
> > > > INFN - National Institute of Nuclear Physics
> > > >
> > > > e-mail: [email protected]
> > >
> > >
> >
> >


References:
MCA or LabCA on Linux-64bit Giovanna Campogiani
Re: MCA or LabCA on Linux-64bit Ebner Simon Gregor (PSI)
Re: MCA or LabCA on Linux-64bit Giovanna Campogiani
Re: MCA or LabCA on Linux-64bit Hinxx

Navigate by Date:
Prev: Re: MCA or LabCA on Linux-64bit Till Straumann
Next: Re: EPICS Base Release-Candidate Double Feature! Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: MCA or LabCA on Linux-64bit Hinxx
Next: Re: MCA or LabCA on Linux-64bit Till Straumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·