EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  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  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: fedora core 7 medm (was >> Re: MEDM compile - update :)
From: Robert Soliday <[email protected]>
To: TechTalk EPICS <[email protected]>
Date: Mon, 15 Oct 2007 09:50:59 -0500
If I remember correctly, the ccmra version of openmotif does not put the libraries and headers into /usr/lib. I believe you will have to edit extensions/configure/os/CONFIG_SITE.linux-x86.linux-x86 and change the X11_LIB, X11_INC, MOTIF_LIB, and MOTIF_INC variables to point to the correct location.


----- Original Message -----
From: Heinrich du Toit <[email protected]>
Date: Monday, October 15, 2007 1:19 am
Subject: Re: fedora core 7 medm (was >> Re: MEDM compile - update :)

> 
> Hi
> 
> I'm really not the expert but with lesstif I found some other problems
> later on. Like menu's nog working or buttons not reacting and things
> like that.
> 
> So I found the motif packages somewhere and compiled with that.
> works much better.
> 
> You thing is not finding some header files it seems....
> Xm.h ect
> On my system: (ubuntu feisty)
> Xm.h & XmP.h is inside libmotif-dev
> It seems Label.h is inside libxaw-headers
> 
> Obviously I can't really say where these files are under Fedora..
> But it seems like you are missing some required files to compile MEDM.
> 
> 
> 
> On Sun, 2007-10-14 at 05:19 +0200, Mauro Giacchini wrote:
> > Heinrich du Toit wrote:
> > > Recently libmotif-dev has been replaced with lesstif2-dev 
> > > (under ubuntu anyways)
> > > therefore...
> > >
> > > in the file medm/xc/Matrix.c there is a line (44 about):
> > > /* Internal Motif functions not defined in header files */
> > > void _XmDrawShadow();
> > >
> > > Well under ubuntu we used to have libmotif-dev package for 
> which this
> > > was needed.
> > > This has been replaced with lesstif2-dev
> > > Now the line is no longer needed.
> > > Infact it gives a compile error if it is there
> > >
> > >
> > > Further:
> > >
> > > in medm/xc/WheelSwitch.c:
> > > line 232:
> > > Widget _XmGetTabGroup();
> > >
> > > Change this to:
> > > /*Widget _XmGetTabGroup();*/
> > > #define _XmGetTabGroup XmGetTabGroup
> > >
> > > As XmGetTabGroup is defined now!
> > >
> > >
> > >
> > > I'm still getting these warnings inside xc folder compile:
> > >
> > > gcc -ansi -pedantic -D_POSIX_C_SOURCE=199506L -O3 -Wall -D_X86_
> > > -Dlinux -fPIC -D_REENTRANT  -DUNIX -D_BSD_SOURCE -I. -I..
> > > -I/usr/X11R6/include -I/usr/X11R6/include/X11
> > > -I../../../../include/os/Linux -I../../../../include
> > > -I/epics/base/include/os/Linux -I/epics/base/include
> > > -c   ../WheelSwitch.c
> > > ../WheelSwitch.c: In function ‘Initialize’:
> > > ../WheelSwitch.c:687: warning: passing argument 1 of
> > > ‘_XmGetFocusPolicy’
> > > from incompatible pointer type
> > > ../WheelSwitch.c: In function ‘btn1DownProc’:
> > > ../WheelSwitch.c:2831: warning: passing argument 1 of
> > > ‘_XmDispatchGadgetInput’ from incompatible pointer type
> > > ../WheelSwitch.c: In function ‘enterWindowProc’:
> > > ../WheelSwitch.c:3040: warning: passing argument 1 of
> > > ‘_XmGetFocusPolicy’ from incompatible pointer type
> > > ../WheelSwitch.c: In function ‘leaveWindowProc’:
> > > ../WheelSwitch.c:3066: warning: passing argument 1 of
> > > ‘_XmGetFocusPolicy’ from incompatible pointer type
> > >
> > >
> > > But medm compiles and seems to work :)
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >   
> > Using your instruction the medm compile but when starts:
> > 
> >  Trying default (fixed) instead
> > MEDM Version 3.1.2.1: Loading aliased fonts.................
> > 
> > SIGSEGV
> > Aborted
> > 
> > then crash. I'm using openmotif-2.3.0-0 ..fc7.ccmra.i386.rpm
> > and lesstif-devel-0.95-0-20.fc7.i386.rpm
> > 
> > Reading old emails about this (to fc6) I've removed lesstif and 
> install> openmotif-devel-2....7.cmra.i386.rpm ; in this case it 
> didn't compile:
> > 
> > /usr/bin/gcc -c   -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS 
> > -D_XOPEN_SOURCE=500        -D_X86_  -DUNIX  -D_BSD_SOURCE -Dlinux 
> 
> > -D_REENTRANT -ansi  -O3  -Wall          -g -fPIC -I. -I.. 
> > -I../../../../include/os/Linux -I../../../../include 
> > -I/opt/epics/modules/asyn4-8/include/os/Linux 
> > -I/opt/epics/modules/asyn4-8/include 
> > -I/opt/epics/base-3.14.9/include/os/Linux 
> > -I/opt/epics/base-3.14.9/include -I/usr/include -I/usr/include/X11
> > ../Caption.c
> > ../Caption.c:30:20: error: Xm/XmP.h: No such file or directory
> > ../Caption.c:33:22: error: Xm/Label.h: No such file or directory
> > In file included from ../CaptionP.h:36,
> >                  from ../Caption.c:34:
> > ../Caption.h:36:19: error: Xm/Xm.h: No such file or directory
> > In file included from ../Caption.h:37,
> >                  from ../CaptionP.h:36,
> >                  from ../Caption.c:34:
> > /usr/include/X11/Core.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ 
> or 
> > ‘__attribute__’ before ‘WidgetClass’
> > 
> > 
> > what is wrong?
> > Mauro.
> > 
> > 
> 
> 
> 


References:
fedora core 7 medm (was >> Re: MEDM compile - update :) Mauro Giacchini
Re: fedora core 7 medm (was >> Re: MEDM compile - update :) Heinrich du Toit

Navigate by Date:
Prev: Re: genSub Tim Mooney
Next: Re: fedora core 7 medm (was >> Re: MEDM compile - update :) Adams, Billy R. (LARC-D401B)[RAYTHEON TECHNICAL SERVICES CO]
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: fedora core 7 medm (was >> Re: MEDM compile - update :) Heinrich du Toit
Next: fedora core 7 medm (was >> Re: MEDM compile - update :) Bertrand H.J. Biritz
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·