[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave on Mac
From: |
A Scotte Hodel |
Subject: |
Re: Octave on Mac |
Date: |
Wed, 11 May 2005 23:41:56 -0500 |
I was able to compile octave-2.1.69 on my machine only by deleting all
traces of octave 2.1.64 (my most recent install). I'm still unable to
compile octave-forge on my machine. Here's where the compile hangs.
The error messages make the fink-installed png.h suspect, but I don't
know enough to evaluate that.
CFLAGS=-L/sw/lib -I/sw/include
FLIBS=-L/sw/lib -lg2c
CXXFLAGS=-L/sw/lib -I/sw/include
LDLAGS=
make octave-forge
( cd octave-forge-2004.11.16 ; \
CFLAGS="-L/sw/lib -I/sw/include" CXXFLAGS="-L/sw/lib -I/sw/include"
FLIBS="-L/sw/lib -lg2c" \
LDFLAGS="-L/sw/lib" make )
Processing FIXES/
make[2]: Nothing to be done for `all'.
Processing extra/
Processing extra/MacOSX/
mkdir -p bin
CC -ObjC -o bin/ofsndplay OFSndPLay.cc -framework Cocoa
echo extra/MacOSX will be installed
extra/MacOSX will be installed
Processing extra/graceplot/
make[3]: Nothing to be done for `all'.
[ ---------- snip ---------------]
make[3]: Nothing to be done for `all'.
Processing main/image/...
mkoctfile -DHAVE_OCTAVE_21 -v pngread.cc -lpng
g++ -c -I/usr/local/include/octave-2.1.69
-I/usr/local/include/octave-2.1.69/octave -I/usr/local/include
-L/sw/lib -I/sw/include -DHAVE_OCTAVE_21 pngread.cc -o pngread.o
In file included from pngread.cc:36:
/sw/include/png.h:1014: error: parse error before `*' token
/sw/include/png.h:1015: error: parse error before `*' token
/sw/include/png.h:1016: error: parse error before `*' token
/sw/include/png.h:1017: error: parse error before `*' token
/sw/include/png.h:1019: error: parse error before `*' token
/sw/include/png.h:1023: error: parse error before `*' token
/sw/include/png.h:1024: error: parse error before `*' token
/sw/include/png.h:1025: error: parse error before `*' token
/sw/include/png.h:1032: error: parse error before `*' token
/sw/include/png.h:1037: error: parse error before `*' token
/sw/include/png.h:1040: error: parse error before `*' token
Lines 1014-1020 of png.h are:
typedef void (PNGAPI *png_error_ptr) PNGARG((png_structp,
png_const_charp));
typedef void (PNGAPI *png_rw_ptr) PNGARG((png_structp, png_bytep,
png_size_t));
typedef void (PNGAPI *png_flush_ptr) PNGARG((png_structp));
typedef void (PNGAPI *png_read_status_ptr) PNGARG((png_structp,
png_uint_32,
int));
typedef void (PNGAPI *png_write_status_ptr) PNGARG((png_structp,
png_uint_32,
int));
On May 9, 2005, at 11:11 AM, Joe Koski wrote:
on 5/9/05 9:26 AM, A Scotte Hodel at address@hidden wrote:
I received the question below. The procedure that I used to compile
octave-2.1.64 does not appear to work for the more recent 2.1.x branch
release or CVS releases. Has anyone else had success with this?
I've used a Makefile to do the octave/octave-forge install on Octave.
The text of the Makefile is at the end of this email.
And, oh yeah, I also had to use the trick
FLIBS=-lg2c ./configure --enable-shared --enable-dl --disable-static
to configure before I built octave. See the help at
http://wiki.octave.org/wiki.pl?OctaveForMac
if you haven't already.
Joe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------