octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35114] Octave 3.5.90: mkoctfile fails to link


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #35114] Octave 3.5.90: mkoctfile fails to link against BLAS/LAPACK
Date: Thu, 22 Dec 2011 21:37:26 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7

Follow-up Comment #8, bug #35114 (project octave):

Sorry, Lukas. I recently switched from Fink to Macports. I got the two mixed
up :-(

Regard building using MacPorts to satisfy dependencies;

(1) If you haven't already, clone the archive

hg clone http://www.octave.org/hg/octave

(2) Then update (I've set the branch to "stable" below)

hg pull ; hg update stable

(3) Activate (or install) the qhull from 2010

sudo port activate qhull @2010.1_3

(4)  For gcc-4.6


./autogen.sh

VER="4.6"

export PREFIX=/opt/local
export CC=/opt/local/bin/gcc-mp-$VER
export CXX=/opt/local/bin/g++-mp-$VER
export CXXCPP="/opt/local/bin/g++-mp-$VER -E"
export F77=/opt/local/bin/gfortran-mp-$VER
export FC=/opt/local/bin/gfortran-mp-$VER
export CXXFLAGS="-pipe -O2 -g -m64 -ggdb3"
export FFLAGS="$CXXFLAGS -D_THREAD_SAFE -pthread -gstabs"
export CFLAGS="$FFLAGS -lstdc++"
export LDFLAGS=-L$PREFIX/lib
export CPPFLAGS=-I$PREFIX/include
export BLAS_LIBS="-lcblas -lf77blas -latlas"
export LAPACK_LIBS=-llapack

./configure --prefix="/opt/local" --without-framework-carbon --with-x 
            --with-cholmod="-lcholmod -lmetis"

sed -i '' -e 's/-arch x86_64//' Makefile
sed -i '' -e 's/-arch x86_64//' libcruft/Makefile
sed -i '' -e 's/-arch x86_64//' liboctave/Makefile
sed -i '' -e 's/-arch x86_64//' src/Makefile

make -j2


For gcc-4.5


./autogen.sh

VER="4.5"

export PREFIX=/opt/local
export CC=/opt/local/bin/gcc-mp-$VER
export CXX=/opt/local/bin/g++-mp-$VER
export CXXCPP="/opt/local/bin/g++-mp-$VER -E"
export F77=/opt/local/bin/gfortran-mp-$VER
export FC=/opt/local/bin/gfortran-mp-$VER
export CXXFLAGS="-pipe -O2 -g -m64 -ggdb3"
export FFLAGS="$CXXFLAGS -D_THREAD_SAFE -pthread -gstabs"
export CFLAGS="$FFLAGS -lstdc++"
export LDFLAGS=-L$PREFIX/lib
export CPPFLAGS=-I$PREFIX/include
export BLAS_LIBS="-lcblas -lf77blas -latlas"
export LAPACK_LIBS=-llapack

./configure --prefix="/opt/local" --without-framework-carbon --with-x 
            --with-cholmod="-lcholmod -lmetis"

make -j2


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35114>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]