[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: |
Mon, 09 May 2005 10:00:34 -0600 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
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 successfully built octave-2.1.69 and octave-forge on OS X 10.3.8 with
Xcode 1.5 tools and the November 2004 gcc update installed. I have seen
reports on this list that octave-2.9.x won't compile (yet) on a Mac, under
either 10.3.x or 10.4.x. Also, I haven't tried building octave since I
installed the cctools-528.5 update.
Joe
>
> 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.
>
> On May 8, 2005, at 11:04 PM, Aakash S Dalwani wrote:
>
>> Respected Sir,
>> I am trying to install the latest version of Octave (2.9.2) on
>> a
>> node
>> of an Apple Cluster running Mac OS X server (10.3.7).
>>
>> Although I am able to run the configure script, but I get the
>> following message when I run make.
>>
>> "ld: multiple definitions of symbol Array<long>::operator()(int, int,
>> int) const
>> Array-i.o definition of Array<long>::operator()(int, int, int) const
>> in
>> section (__TEXT,__text)
>> Array-so.o definition of Array<long>::operator()(int, int, int)
>> const in
>> section (__TEXT,__text)
>> ld: multiple definitions of symbol vtable for Array<long>
>> Array-i.o definition of vtable for Array<long> in section
>> (__DATA,__const)
>> Array-so.o definition of vtable for Array<long> in section
>> (__DATA,__const)"
>>
>> After many such messges, finally make exits with the following
>> error
>> message:
>> "/usr/bin/libtool: internal link edit command failed
>> make[2]: *** [liboctave.dylib] Error 1
>> make[1]: *** [liboctave] Error 2
>> make: *** [all] Error 2"
>>
>>
>> Please suggest a work around for this error,
>> Thanking you,
>> Aakash
>>
>> Ps: I am e-mailing you because I saw your message on the mailing list
>> that you wanted to port Octave to Mac
>>
>
> Text of the Makefile:
>
> CFLAGS="-L/sw/lib -I/sw/include"
> CVS_RSH=ssh
> CVSROOT=":ext:address@hidden:/cvs"
> FLIBS="-L/sw/lib -lg2c"
> LDFLAGS="-L/sw/lib"
>
> all: flags installed.octave installed.octave-forge
>
> flags:
> @echo CFLAGS=$(CFLAGS)
> @echo FLIBS=$(FLIBS)
> @echo CXXFLAGS=$(CFLAGS)
> @echo LDLAGS=$(LDLAGS)
>
> installed.octave: octave-2.1.64/src/octave
> @echo "install make:"
> (cd octave-2.1.64 ; sudo make install )
> touch $@
>
> octave-2.1.64/src/octave: octave-2.1.64/config.h
> @echo "octave make:"
> (cd octave-2.1.64 ; \
> CFLAGS=$(CFLAGS) CXXFLAGS=$(CFLAGS) FLIBS=$(FLIBS) \
> LDFLAGS=$(LDFLAGS) make )
>
> octave-2.1.64/config.h: octave-2.1.64/configure
> @echo "Config.h make:"
> (cd octave-2.1.64 ; \
> CFLAGS=$(CFLAGS) CXXFLAGS=$(CFLAGS) FLIBS=$(FLIBS) \
> LDFLAGS=$(LDFLAGS) \
> ./configure -enable-shared --enable-dl --disable-static )
> touch $@
>
> octave-2.1.64/configure : ./octave-2.1.64.tar.gz
> tar -xvzf octave-2.1.64.tar.gz
> touch $@
>
> installed.octave-forge : octave-forge-2004.11.16/config.status
> @echo "make octave-forge"
> ( cd octave-forge-2004.11.16 ; \
> CFLAGS=$(CFLAGS) CXXFLAGS=$(CFLAGS) FLIBS=$(FLIBS) \
> LDFLAGS=$(LDFLAGS) make )
>
> octave-forge-2004.11.16/config.status: octave-forge-2004.11.16/configure
> @echo "configure octave-forge"
> ( cd octave-forge-2004.11.16 ; \
> CFLAGS=$(CFLAGS) CXXFLAGS=$(CFLAGS) FLIBS=$(FLIBS) \
> LDFLAGS=$(LDFLAGS) ./configure )
>
> octave-forge-2004.11.16/configure: octave-forge-2004.11.16.tar.gz
> @echo "unpack octave-forge"
> tar -xvzf octave-forge-2004.11.16.tar.gz
> touch $@
>
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
>
-------------------------------------------------------------
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
-------------------------------------------------------------