On 2015-02-24 13:35-0500 Jim Dishaw wrote:

>
> On Feb 24, 2015, at 12:58 PM, Phil Rosenberg <p.d.rosenb...@gmail.com> wrote:
>
>>> librt is not available on Mac OS X nor is it in MacPorts.  Which function 
>>> are we pulling in from librt?
>>
>> I think (and I might be misremembering) that this is required either
>> for the memory map or for the named mutexes. If this library is not
>> available then we are going to need an os specific solution for this.
>>
>> Not sure if I have time or the kit to do that!
>>
>> Phil
>
>

> Your recollection is correct.  On Linux (and maybe some other
unices) the shm_open() and shm_unlink() is provided by librt.  On Mac
OS, a separate library is not needed.  I hacked the
util/CMakeLists.txt to test it out and I got it to build.  I ran x01c
and the wxWidgets driver appeared to work correctly.

Congratulations for that real nice breakthrough.

> The following
section in util/CMakeLists.txt needs to be modified to exclude Mac OS
X (Darwin)

>
>  if(UNIX)
>    set(RT_LIB rt)
>  endif(UNIX)
>
> I would look into fixing, but I am leaving in a few minutes and will be away 
> from my development machine for the next few days.

That is the exact area which my recent fix for rt changes.  The new
logic now excludes the possibility of ever explicitly linking with
rt on Mac OS X so regardless of further changes with other Unices,
Mac OS X should be excluded and you should be able to build and
run wxwidgets without issues on that platform.

This build system logic does need testing on as many Linux platforms
as possible since I have dropped explicit linking to rt in all cases
now. But if it turns out any of those tests reveal explicit linking is
required on any Linux platform that is just a one-line change to the
CMake logic which would not affect the Mac OS X case.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to