Thanks for the warning Ralph,
I think I'm almost there. I discovered that the openmotif Makefile puts your libs and headers exactly where they should be to be broadly accessible. /usr/X11R6/lib and /usr/X11R6/include . I can now almost compile MEDM. The problem is:
make -C O.darwin-x86 -f ../Makefile TOP=../../../.. T_A=darwin-x86 install
/usr/bin/c++ -o medm -L/Users/andrewwagner/EPICS/base-3-14-11/lib/darwin-x86 -L/Users/andrewwagner/EPICS/extensions/lib/darwin-x86 -L/usr/X11R6/lib -arch i386 (etc ....)
ld: warning: in /usr/X11R6/lib/libXm.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
This is due to the fact that openmotif compiles with default gcc (i.e. i686-apple-darwin10-gcc-4.2.1) but EPICS compiles with i386 (see -arch i386 above). How do I hack the EPICS Makefiles to build something other than i386? I believe that if all -arch options are unset then it should use the default 64 bit compiler. How do I do this? Alternatively I could recompile openmotif in i386.
Cheers,
Andrew
On Jun 22, 2010, at 1:40 PM, Ralph Lange wrote:
> Andrew,
>
> did you check the results of searching the tech-talk archives [1] for "openmotif"?
> Have a look and then reconsider how much you want to get involved.....
>
> Cheers,
> Ralph
>
> [1] http://www.aps.anl.gov/epics/tech-talk/index.php
>
>
> On Tue 22 Jun 2010 16:30:11 Andrew Wagner wrote:
>> Thanks Eric,
>> Unfortunately I ran into the pitfall of attempting to install openmotif form source via http://www.openmotif.org/ . I was able to compile openmotif and install the programs but unfortunately its Makefile and the EPICS/extensions Makefile are incompatible. They seem to expect libraries to be built with different rules and put in different locations. The .h files medm needed where in openmotif-2.3.0/lib not /include and a library file libXm.a appears to never be built with the Makefile from openmotif.org <http://openmotif.org> . I get the error:
>> No rule to make target `/Users/andrewwagner/OpenMotif/openmotif-2.3.0/lib/libXm.a'
>>
>> Does anyone have experience installing openmotif from source? There must be a way to do this on a Linux box. For the time being I can just delete openmotif and reinstall from Darwin ports.
>> Cheers,
>> Andrew
>>
>>
>>
>> On Jun 22, 2010, at 9:16 AM, Eric Norum wrote:
>>
>>> I have the fink openmotif3 2.2.4-4 package installed on my OS X machine. Seems to work well with MEDM, EDM, StripTool and SDDSplot.
>>>
>>> MEDM is an extension:
>>> Download the extensions configuration files from EPICS Extensions Config Files <http://www.aps.anl.gov/epics/extensions/configure/index.php>
>>> Unpack the config file tarball. cd to the extensions directory created by unpacking the tarball. This directory will be referred to as the extensions <TOP> from now on
>>> Edit the configure/RELEASE file top refer to where you have EPICS base installed.
>>> Edit the configure/os/CONFIG_SITE.darwin-x86.darwin-x86 file and set up the correct references to your X11 and Motif packages.
>>> cd to the <TOP> directory and run make
>>>
>>> Now to download and build an extension -- medm in this case:
>>> Download the medm tarball: MEDM 3.1.4 <http://www.aps.anl.gov/epics/download/extensions/medm3_1_4.tar.gz>
>>> cd to the <TOP>/src directory and unpack the medm tarball
>>> cd to the <TOP>/src/medm directory and run make
>>>
>>>
>>>
>>>
>>> On Jun 21, 2010, at 6:06 PM, Andrew Wagner wrote:
>>>
>>>> Hey guys,
>>>>
>>>> I'm new to EPICS and have compiled both EPICS base and Asyn successfully on my OS X 10.6.3 MacBook Pro. It seems that much of the driver support includes pre-made MEDM screens. Is there a good how-to manual for installing MEDM on OS X (or any os)? I've searched tech-talk and there definitely seem to be some pitfalls. For instance Motif 2.30 should be used instead of 2.32 to avoid some odd behavior. Thanks very much for the help.
>>>>
>>>> Andrew Wagner
>>>>
>>>>
>>>
>>> --
>>> Eric Norum
>>> [email protected] <mailto:[email protected]>
>>>
>>>
>>>
>>>
>>
- Replies:
- Re: MEDM installation instructions Noboru Yamamoto
- References:
- MEDM installation instructions Andrew Wagner
- Re: MEDM installation instructions Eric Norum
- Re: MEDM installation instructions Andrew Wagner
- Re: MEDM installation instructions Ralph Lange
- Navigate by Date:
- Prev:
RE: CSS BOY / scripting / XY Graph Chen, Xihui
- Next:
Re: MEDM installation instructions Noboru Yamamoto
- 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 installation instructions Ralph Lange
- Next:
Re: MEDM installation instructions Noboru Yamamoto
- 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
|