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  <20122013  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  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EDM X Error on Linux
From: John William Sinclair <[email protected]>
To: [email protected], [email protected]
Date: Fri, 24 Aug 2012 16:46:29 -0400
From Jason Abernathy:

I have found that running EDM will yield the error

Error: No realize class procedure defined

after an (apparantly) successful build on an Ubuntu 11.10 system.

This can be solved modifying the edmMain/Makefile

    edm_LIBS_Linux += Xm Xmu Xt Xp Xtst X11
    USR_LDFLAGS_Linux += -Wl,--no-as-needed<--- add this line
    edm_SYS_LIBS_Linux += pthread dl









On 08/24/2012 03:04 PM, Lucas Russo wrote:
Hello everyone,

I've recently installed EPICS base 3.14.12 on my Ubuntu 12.04 64-bit machine
and I am trying to install EDM 1-12-79 on it.

However, the first error popped up after having configured the epics environment
variables EPICS_BASE, EPICS_HOST_ARCH and EPICS_EXTENSIONS and
hitting make.

The build system complained about missing rules for some libraries, namely:
libXt.so, libXp.so, libXtst.so, libX11.so, libXmu.so

An example of such error follows:
----------------------
/usr/bin/ranlib libcfcaa62e-8199-11d3-a77f-00104b8742df.a
make[2]: *** No rule to make target `/usr/lib/libXt.a', needed by `libcfcaa62e-8199-11d3-a77f-00104b8742df.so'. Stop. make[2]: Leaving directory `/opt/epics/extensions/src/edm/lib/O.linux-x86_64'
make[1]: *** [install.linux-x86_64] Error 2
make[1]: Leaving directory `/opt/epics/extensions/src/edm/lib'
make: *** [lib.install] Error 2
----------------------

So, I tried to solve this issue making the following symlinks in the
/usr/lib directory:

----------------------
sudo ln -s ./x86_64-linux-gnu/libXt.so libXt.so
sudo ln -s ./x86_64-linux-gnu/libXp.so libXp.so
sudo ln -s ./x86_64-linux-gnu/libXtst.so libXtst.so
sudo ln -s ./x86_64-linux-gnu/libX11.so libX11.so
sudo ln -s ./x86_64-linux-gnu/libXmu.so libXmu.so
----------------------

By doing this I got rid of the previous errors and the compilation
succeeded.

Additionally I set the following EDM environment variables:

----------------------
EDM_TOPDIR=${EPICS_EXTENSIONS}/src/edm
export EDM_TOPDIR
EDMPVOBJECTS=${EPICS_EXTENSIONS}/ext_pref/edm
export EDMPVOBJECTS
EDMOBJECTS=${EPICS_EXTENSIONS}/ext_pref/edm
export EDMOBJECTS
EDMHELPFILES=${EPICS_EXTENSIONS}/src/edm/helpFiles
export EDMHELPFILES
EDMFILES=${EPICS_EXTENSIONS}/ext_pref/edm
export EDMFILES
EDM=${EPICS_EXTENSIONS}/src/edm/edmMain/O.${EPICS_HOST_ARCH}/edm
export EDM
PATH=${PATH}:${EPICS_EXTENSIONS}/src/edm/edmMain/O.${EPICS_HOST_ARCH}
EDMLIBS=${EPICS_EXTENSIONS}/lib/${EPICS_HOST_ARCH}
export EDMLIBS
----------------------

And set the component libraries and PV components

----------------------
for pv in Epics Calc Log Loc;do edm -addpv ${EPICS_EXTENSIONS}/lib/${EPICS_HOST_ARCH}/lib$pv.so;done for ff in lib*.so;do edm -add ${EPICS_EXTENSIONS}/lib/${EPICS_HOST_ARCH}/$ff; done
----------------------

Finally, after trying to issue the edm command the I got the following error:

----------------------
X error: code=3, msg: BadWindow (invalid Window parameter)
X error: code=3, msg: BadWindow (invalid Window parameter)
X error: code=3, msg: BadWindow (invalid Window parameter)
Error: No realize class procedure defined
----------------------

And nothing else happens.

I got nothing from the Xorg log or the similar thread
http://www.aps.anl.gov/epics/tech-talk/2008/msg00555.php

Does anyone have any idea of what this error could be?

Additional Info:

----------------------
uname:
Linux 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
----------------------

Thanks in advance,

Lucas


References:
EDM X Error on Linux Lucas Russo

Navigate by Date:
Prev: Re: Creating INLINK/OUTLINK in record support Bruce Hill
Next: Re: Creating INLINK/OUTLINK in record support Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: EDM X Error on Linux Lucas Russo
Next: Re: EDM X Error on Linux Jason Abernathy
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·