Experimental Physics and Industrial Control System
|
I found that it was straightforward to make medm work under lesstif.
The following
patch may suffice:
--- extensions/src/medm/medm/medm.c 2006-09-20 11:51:05.000000000
-0500
+++ ../medm-3.1.1/extensions/src/medm/medm/medm.c 2007-03-06
16:42:25.000000000 -0600
@@ -36,6 +36,8 @@
#include <X11/Xmu/Editres.h>
#endif
+#define STRING_CHECK(a) ((a)?(a):"")
+
#if DEBUG_WIN32_LEAKS
# ifdef WIN32
# ifdef _DEBUG
@@ -2807,7 +2809,7 @@
* we don't worry about that; we know better in our
declarations.
*/
if(items[i].accelerator) {
- str = XmStringCreateLocalized(items[i].accText);
+ str = XmStringCreateLocalized(STRING_CHECK(items[i].accText));
XtVaSetValues(items[i].widget,
XmNaccelerator, items[i].accelerator,
XmNacceleratorText, str,
Basically, the XmStringCreateLocalized function gets called with a NULL
argument from time to time. This is technically undefined according
to the
API, but allowed by openmotif and causes lesstif to segfault. The patch
simply substitutes an empty string for the NULL where necessary.
A caveat: I'm not a heavy medm user so YMMV....
Guy Jennings
Advanced Photon Source
On Jun 27, 2007, at 3:28 PM, Emmanuel Mayssat wrote:
Hello,
I am having a few difficulties compiling medm specifically on fedora
core 6. First I had to install the lesstif-devel to get missing header
files, then I change my CONFIG_SITE.linux-x86.linux86 and customize it
to my platform, then when I compile and I get conflicting
definition for
_XmDrawShadow which is declared as extern in /usr/include/Xm/XmDraw.h
and in .../medm/xc/Matrix.c. As a result, Matrix.c doesn't compile.
Bummer! Has anyone experienced this problem?
I tried to compile edm in place of medm.
Again I hit roadblocks on fc6.
I did not investigate the reason in depth.
But is there anything that I can use to visualize me PV on fc6 (i.e.
that is straight forward to compile) ?
I also remember reading a thread related to Motif support in future
linux versions. If I remember correctly motif was not going to be
supported any more. Is that true?
--
E
- Replies:
- RE: medm, edm, other on fc6 Adams, Billy R. (LARC-D401B)[RAYTHEON TECHNICAL SERVICES CO]
- References:
- medm, edm, other on fc6 Emmanuel Mayssat
- Navigate by Date:
- Prev:
Re: asynRecord and Labview problem Mikel Eguiraun
- Next:
Re: PV save and restore tool sought John Sinclair
- 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
- Navigate by Thread:
- Prev:
Re: medm, edm, other on fc6 Bob Soliday
- Next:
RE: medm, edm, other on fc6 Adams, Billy R. (LARC-D401B)[RAYTHEON TECHNICAL SERVICES CO]
- 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
|
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|