[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave 4.0 on Mac OS Yosemite (with gui!)
From: |
Ben Abbott |
Subject: |
Re: Octave 4.0 on Mac OS Yosemite (with gui!) |
Date: |
Mon, 05 Oct 2015 20:13:46 -0400 |
> On Oct 5, 2015, at 8:01 PM, Alexander Hansen <address@hidden> wrote:
>
>> On Oct 5, 2015, at 16:51, Ben Abbott <address@hidden> wrote:
>>
>>> On Oct 5, 2015, at 7:46 PM, Alexander Hansen <address@hidden> wrote:
>>>
>>>> On Oct 5, 2015, at 16:43, Ben Abbott <address@hidden> wrote:
>>>>
>>>>> On Oct 5, 2015, at 7:32 PM, Ben Abbott <address@hidden> wrote:
>>>>>
>>>>>> On Oct 5, 2015, at 5:31 PM, Marius Schamschula <address@hidden> wrote:
>>>>>>
>>>>>> On Oct 5, 2015, at 3:05 PM, Dr. Sebastian Schöps <address@hidden> wrote:
>>>>>>
>>>>>>>> The Qt libs for Mac OSX use native graphics, while osmesa support is
>>>>>>>> part of X11. Perhaps this is a problem? Does homebrew have an OSMesa
>>>>>>>> formula? I’ve just installed Fink’s package for osmesa and had to
>>>>>>>> tinker a bit for configure to work.
>>>>>>>>
>>>>>>>> Initially, I got ...
>>>>>>>
>>>>>>> Hi Ben,
>>>>>>>
>>>>>>> the problem seems to be the order of includes in __osmesa_print__. I
>>>>>>> did not yet fully understand why. However, I have created a small patch
>>>>>>> that fixes the problem for me
>>>>>>>
>>>>>>> https://gist.githubusercontent.com/schoeps/3bc5ae93f7580ef88d7a/raw/osmesa.patch
>>>>>>>
>>>>>>> Can you try it, please? (OS X 10.11, Xquartz 2.7.8_rc1)
>>>>>>>
>>>>>>> Sebastian
>>>>>>
>>>>>> Sebastian,
>>>>>>
>>>>>> I applied the patch under Yosemite, it built w/o any issues, this time
>>>>>> no "--without-OSMesa” needed!
>>>>>>
>>>>>> Marius
>>>>>> --
>>>>>> Marius Schamschula
>>>>>
>>>>> Hi Sabastian,
>>>>>
>>>>> Your patch allowed me to complete a build with osmesa enabled. However,
>>>>> when I tried to print for “visible” = “off” I encountered a seg-fault.
>>>>>
>>>>> panic: Segmentation fault: 11 -- stopping myself
>>>>>
>>>>> Were you and/or Marius able to print via osmesa.
>>>>>
>>>>> Ben
>>>>
>>>> Opps, I configured with the following options, and used Macports osmesa
>>>> port.
>>>>
>>>> --without-x \
>>>> --with-OSMesa \
>>>> --with-OSMesa-includedir=/sw/include/mesa \
>>>> --with-OSMesa-libdir=/sw/lib/mesa
>>>>
>>>> $ fink list mesa
>>>> Information about 10253 packages read in 14 seconds.
>>>> i mesa 7.0.2-3 3-D
>>>> graphics library
>>>> mesa-libglw-openmotif4 7.8.2-1 Xt /
>>>> Motif OpenGL widgets
>>>> mesa-libglw-openmotif4-shlibs 7.8.2-1 Xt /
>>>> Motif OpenGL widgets
>>>> i mesa-shlibs 7.0.2-3 3-D
>>>> graphics library
>>>> i system-pkgconfig-osmesa 8-1
>>>> [virtual pkgconfig package representing osmesa]
>>>>
>>>> Ben
>>>>
>>>
>>> That’d be Fink’s osmesa. :-)
>>>
>>> If I get a chance I’ll see about some modernization there to try to get a
>>> reasonable Octave 4.x into Fink.
>>>
>>> --
>>> Alexander Hansen, Ph.D.
>>> Fink User Liaison
>>
>> Hi Alex,
>>
>> Opps. You are correct, I mis-typed. I’m using Fink, not macports … groan!
>>
>> Does Fink’s mesa work with the OpenGL Carbon framework?
>>
>> And what is the relationship between "system-pkgconfig-osmesa 8-1” and the
>> mesa 7.0.2-3 package?
>>
>> Ben
>
> I don’t know much about it, but the last note from a maintainer said:
>
> Care needs to be taken to avoid system OpenGL,
> if you want to use Mesa3d, while compiling, like
> making sure that it's first in the linker's search
> path. Otherwise, you get runtime errors.
I’ll try changing that.
> So my thought is that it isn’t compatible with OpenGL.framework
>
> system-pkgconfig-osmesa isn’t related to the mesa package at all—it’s an
> indicator for the version of /opt/X11/lib/pkgconfig/osmesa.pc.
>
> —Alex
The contents are …
prefix=/opt/X11
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: osmesa
Description: Mesa Off-screen Rendering library
Requires:
Version: 8
Libs: -L${libdir} -lOSMesa
Libs.private: -lm -lpthread
Cflags: -I${includedir}
Sounds like an obviously stupid question … but … Any chance the X11 stuff would
work the Carbon framework, or is it X11 only?
Ben
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Dr. Sebastian Schöps, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Mike Miller, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Marius Schamschula, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Ben Abbott, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Ben Abbott, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Alexander Hansen, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Ben Abbott, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Alexander Hansen, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!),
Ben Abbott <=
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Alexander Hansen, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Ben Abbott, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Sebastian, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Sebastian, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Ben Abbott, 2015/10/08
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Mike Miller, 2015/10/08
- Message not available
- Re: Octave 4.0 on Mac OS Yosemite (with gui!), Ben Abbott, 2015/10/08