[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave on Mac
From: |
Joe Koski |
Subject: |
Re: Octave on Mac |
Date: |
Thu, 12 May 2005 09:41:02 -0600 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
on 5/11/05 10:41 PM, A Scotte Hodel at address@hidden wrote:
> 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));
>
I'm no expert on the arcane world of make files, but my take is that some
remnants of Fink are confusing ./configure when it looks to see where
everything is before the build process. Can you take /sw out of your path
temporarily by temporarily changing .bash_profile (or whatever), and see if
that doesn't allow ./configure to find the Mac native alternatives rather
than the Fink versions of things?
My 2.1.69 built on my machine under OS X 10.3.8 without problems, and I have
octaves-2.1.57 and -2.1.64 still installed on my Mac.
Joe Koski
-------------------------------------------------------------
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
-------------------------------------------------------------