enorum 201> cd /usr/local/epics/R3.14.12/extensions/src/mca
enorum 202> export EPICS_EXTENSIONS=/usr/local/epics/R3.14.12/extensions
enorum 203> export EPICS_BASE=/usr/local/epics/R3.14.12/base
enorum 204> sh buildForOctave.sh
mkoctfile --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.mex
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 mca.cpp -o mca.o
In 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.o
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 Channel.cpp -o Channel.o
In 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 -lm
cp O.linux-x86_64/mca.mex /usr/local/epics/R3.14.12/extensions/lib/linux-x86_64
enorum 205>
Did you try using the ‘buildForOctave’ script that is distributed with the MCA extension?
#!/bin/sh
# Provided by Eric Norum, APS, Dec. 2006
if [ -z "`env | grep EPICS_BASE`" -o -z "`env | grep EPICS_EXTENSIONS`" ]
echo "Need EPICS_BASE and EPICS_EXTENSIONS environment variables" >&2
MEX="mkoctfile --mex" FLAGS="-DmexAtExit=atexit" make MEXOUT=mex install
rm -f Channel.o MCAError.o TestHash.cpp mca.o
Caveat — it’s been a while since I’ve used this.
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.mexglx
make: mex: Command not found
Makefile:66: recipe for target 'O.linux-x86_64/mca.mexglx' failed
make: *** [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