[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling and installing CXSparse as a universal binary library on OSX
From: |
Richard Campbell |
Subject: |
Compiling and installing CXSparse as a universal binary library on OSX |
Date: |
Sun, 30 Jan 2011 14:32:50 -0500 |
This was not easy, as the build scripts do not respect the CFLAGS environment
variable, nor do they set the permissions properly during 'sudo make install'.
If you don't modify UFconfig.mk it will build as a native 64-bit only library,
which is fine, unless you're limited to compiling Octave as 32-bit.
You need to download UFConfig and CXSparse from the developer's website at
http://www.cise.ufl.edu/research/sparse/CXSparse/
After untarring UFConfig-3.6.0.tar.gz, you need to edit UFConfig.mk as follows:
CFLAGS = -O3 -fexceptions
changed to
CFLAGS = -O3 -fexceptions -arch i386 -arch x86_64
make
sudo make install
sudo chmod 644 /usr/local/include/UFconfig.h
Now, building CXsparse, after untarring CXSparse-2.2.5.tar.gz
make
sudo make install
sudo chmod 644 /usr/local/include/cs.h
Unfortunately, this still doesn't fix my cs-list error in Octave, but it was
worth a try.
R Campbell
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Compiling and installing CXSparse as a universal binary library on OSX,
Richard Campbell <=