[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mac OS X build reference?
From: |
Richard Campbell |
Subject: |
Re: Mac OS X build reference? |
Date: |
Sat, 19 Feb 2011 15:14:51 -0500 |
On Feb 19, 2011, at 3:12 PM, Ben Abbott wrote:
> On Feb 19, 2011, at 2:41 PM, Richard Campbell wrote:
>
>> On Feb 19, 2011, at 2:37 PM, Ben Abbott wrote:
>>
>>> On Feb 19, 2011, at 2:00 PM, fork wrote:
>>>
>>>> fork <forkandwait <at> gmail.com> writes:
>>>>
>>>>> I am going to give building the latest
>>>>> on my Macbook, Snow Leopard.
>>>>
>>>> Success, at least for 32 bit! Here is what I did:
>>>>
>>>> Downloaded and installed xcode (I couldn't figure out how to build Blas/
>>>> Atlas/
>>>> Lapack and friends...)
>>>>
>>>> Built and installed the newest stable gcc with --prefix=/usr/local
>>>>
>>>> Ditto for gnuplot
>>>>
>>>> Ditto for other dependencies (sed, pcre, readline, make, etc). When in
>>>> doubt
>>>> (like with make) I installed it.
>>>>
>>>> Set the flags from Campbell's Readme:
>>>>
>>>> export CFLAGS="-m32"
>>>> export FFLAGS="$CFLAGS -ff2c"
>>>> export CPPFLAGS="$CFLAGS -D_REENTRANT -D__LISTS__"
>>>> export LDFLAGS="$CFLAGS"
>>>> export FC=/usr/local/bin/gfortran
>>>>
>>>> Reset the path to hit /usr/local/bin first (for our new gcc):
>>>> export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
>>>>
>>>> Then ran configure with a bunch of stuff disabled (from looking at the
>>>> logs for
>>>> the bus error with a more indiscriminant build, but not systematically):
>>>> ./configure --disable-docs --without-framework-carbon \
>>>> --without-x --disable-64 --without-opengl --without-framework-opengl
>>>>
>>>> make && make install
>>>>
>>>> I ran make check as well, but there was a single error I don't remember
>>>> what.
>>>>
>>>> I have successfully run eig() and plotted from the command line, and
>>>> printed a
>>>> simple color eps file. I get warnings about ghostscript, but it seems to
>>>> work
>>>> OK anyway
>>>
>>> The ghostscript warning could be more clear. Without ghostscirpt, the only
>>> format you can print if eps.
>>>
>>> Ben
>>
>> Which is really not a problem on OSX, which can convert eps to anything -
>> and the results of rasterizing the eps in Preview, for example, are usually
>> much better-looking than if you printed directly to png from Octave. But
>> yeah, someone should submit a patch to make the warning clearer.
>>
>> Campbell
>
>
> Interesting. I hadn't thought to compare the anti-aliasing of ghostscript to
> Apple's preview.
>
> Does MacOS include ghostscript compatible utility on the command line?
>
> Ben
>
>
It has a pstopdf utility which is roughly the same as ps2pdf from Ghostscript.
If you want rasterized graphics though, you've got to open it in Preview and
save it as some other format. Conceivably you could write some AppleScript to
make Preview do this for you from the command line, but I don't envy the person
who takes that on.
Campbell
- Re: Mac OS X build reference?, (continued)
- Re: Mac OS X build reference?, Jordi GutiƩrrez Hermoso, 2011/02/18
- Re: Mac OS X build reference?, fork, 2011/02/18
- Re: Mac OS X build reference?, Jordi GutiƩrrez Hermoso, 2011/02/18
- Re: Mac OS X build reference?, Richard Campbell, 2011/02/18
- Re: Mac OS X build reference?, fork, 2011/02/18
Re: Mac OS X build reference?, fork, 2011/02/19
Re: Mac OS X build reference?, Ben Abbott, 2011/02/19
Re: Mac OS X build reference?, Richard Campbell, 2011/02/19