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 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 <2016> 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: How to configurate MCA for Octave |
From: | Hulusi Öz <[email protected]> |
To: | Eric Norum <[email protected]>, [email protected] |
Date: | Thu, 21 Jul 2016 19:10:44 +0300 |
You must set the EPICS_BASE and EPICS_EXTENSIONS environment variables and then run the buildForOctave.sh script. I just tried this on a Linux machine here and all seems to work:enorum 201> cd /usr/local/epics/R3.14.12/extensions/src/mcaenorum 202> export EPICS_EXTENSIONS=/usr/local/epics/R3.14.12/extensionsenorum 203> export EPICS_BASE=/usr/local/epics/R3.14.12/baseenorum 204> sh buildForOctave.shmkoctfile --mex -DmexAtExit=atexit -v -I/usr/local/epics/R3.14.12/base/include -I/usr/local/epics/R3.14.12/base/include/os/Linux -DEPICS_DLL_NO -L/usr/local/epics/R3.14.12/base/lib/linux-x86_64 -ldbStaticHost -lCom -lca mca.cpp MCAError.cpp Channel.cpp -o O.linux-x86_64/mca.mexg++ -c -fPIC -I/usr/include/octave-3.4.3/octave/.. -I/usr/include/octave-3.4.3/octave -I/usr/include/freetype2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I. -I/usr/local/epics/R3.14.12/base/include -I/usr/local/epics/R3.14.12/base/include/os/Linux -DmexAtExit=atexit -DEPICS_DLL_NO mca.cpp -o mca.oIn file included from mca.cpp:24:Channel.h: In member function 'char* Channel::GetHostName() const':Channel.h:29: warning: deprecated conversion from string constant to 'char*'g++ -c -fPIC -I/usr/include/octave-3.4.3/octave/.. -I/usr/include/octave-3.4.3/octave -I/usr/include/freetype2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I. -I/usr/local/epics/R3.14.12/base/include -I/usr/local/epics/R3.14.12/base/include/os/Linux -DmexAtExit=atexit -DEPICS_DLL_NO MCAError.cpp -o MCAError.og++ -c -fPIC -I/usr/include/octave-3.4.3/octave/.. -I/usr/include/octave-3.4.3/octave -I/usr/include/freetype2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I. -I/usr/local/epics/R3.14.12/base/include -I/usr/local/epics/R3.14.12/base/include/os/Linux -DmexAtExit=atexit -DEPICS_DLL_NO Channel.cpp -o Channel.oIn file included from Channel.cpp:4:Channel.h: In member function 'char* Channel::GetHostName() const':Channel.h:29: warning: deprecated conversion from string constant to 'char*'g++ -shared -Wl,-Bsymbolic -o O.linux-x86_64/mca.mex mca.o MCAError.o Channel.o -L/usr/local/epics/R3.14.12/base/lib/linux-x86_64 -ldbStaticHost -lCom -lca -L/usr/lib64/octave/3.4.3 -L/usr/lib64 -loctinterp -loctave -lcruft -L/usr/lib64/atlas -llapack -L/usr/lib64/atlas -lf77blas -latlas -lfftw3 -lfftw3f -lm -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../.. -lgfortranbegin -lgfortran -lmcp O.linux-x86_64/mca.mex /usr/local/epics/R3.14.12/extensions/lib/linux-x86_64enorum 205>On Jul 21, 2016, at 6:48 AM, Eric Norum <[email protected]> wrote:Did you try using the ‘buildForOctave’ script that is distributed with the MCA extension?#!/bin/sh## Provided by Eric Norum, APS, Dec. 2006if [ -z "`env | grep EPICS_BASE`" -o -z "`env | grep EPICS_EXTENSIONS`" ]thenecho "Need EPICS_BASE and EPICS_EXTENSIONS environment variables" >&2exit 1fiMEX="mkoctfile --mex" FLAGS="-DmexAtExit=atexit" make MEXOUT=mex installrm -f Channel.o MCAError.o TestHash.cpp mca.oCaveat — it’s been a while since I’ve used this.On Jul 21, 2016, at 6:03 AM, Hulusi Öz <[email protected]> wrote:Hi Everyone,I have just installed GNU Octave on Ubuntu 16.04 -x64. And also, I have just installed MCA extension. However, I could not configurate each of them . Therefore, I could not build MCA extension. I have got this error :%---------------------------------%mex -v -I/opt/epics/base/include -I/opt/epics/base/include/os/Linux -DEPICS_DLL_NO -L/opt/epics/base/lib/linux-x86_64 -ldbStaticHost -lCom -lca mca.cpp MCAError.cpp Channel.cpp -o O.linux-x86_64/mca.mexglxmake: mex: Command not foundMakefile:66: recipe for target 'O.linux-x86_64/mca.mexglx' failedmake: *** [O.linux-x86_64/mca.mexglx] Error 127%---------------------------------%How can I figure this error out ? I am looking forward to your recommendations..Thanks in advance,Best Regards..Hulusi--
Eric Norum
[email protected]
--
Eric Norum
[email protected]