Thanks.  Did you get your fftw3 from macports, by the way?<br><br>sudo port install fftw-3 kept erroring off with a failed checksum, so I just built from source from <a href="http://fftw.org">fftw.org</a>, and got .a's and .la's instead of .dylibs.  How did you build the .dylibs (kind of OT for the mailing list, I know - especially since I now have lisplab working)?<br>
<br>There are actually symlinks to BLAS and LAPACK that OS X puts into /usr/lib/, presumably these would change to point to newer versions if Apple updated vecLib.<br><br>Also, do you know a good way to reverse a row/column vector?  cl-user doesn't seem to know about any of the accesor methods so I can't just (setf (matrix-store a) (reverse (matrix-store a))) at the top level.  I would be interested in implementing this functionality (vector-reverse ?) if there's no good way already.<br>
<br>Actually, in SBCL it is possible to subclass sequence, so that maybe a vector-dge could be implemented that would behave just like primitive lisp vectors as regards reverse, map, reduce etc, which I think would be a little less crufty although probably a PITA to implement and SBCL-specific (which lisplab is anyways).<br>
<br>-Adam Higuera<br><br><div class="gmail_quote">On Fri, Feb 19, 2010 at 5:59 AM, Knut Skogstrand Gjerden <span dir="ltr"><<a href="mailto:knut.gjerden@ntnu.no">knut.gjerden@ntnu.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Pong!<br>
<br>
Sure, it is quite easy (at least if you run SBCL). To link against Apple's blas and lapack, you can put<br>
<br>
(defvar *lisplab-libblas-path* #P"/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib"); "Path to BLAS shared object file.")<br>
(defvar *lisplab-liblapack-path* #P"/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib"); "Path to LAPACK shared object file.")<br>
(defvar *lisplab-libfftw-path* #P"/opt/local/lib/libfftw3.dylib"); "Path to FFTW 3 shared object file.")<br>
(defvar *lisplab-libfftw-threads-path* #P"/opt/local/lib/libfftw3_threads.dylib"); "Path to FFTW 3 thread extension shared object file.")<br>
<br>
at the top of lisplab.asd. These addresses should be standard on any Mac, so you can just copy-paste, but check if your fftw-library is installed under /opt or /usr.<br>
<br>
Then, all you have to do (in SBCL) is to (require 'lisplab) and you are good to go. I usually do this in my .sbclrc-file because I am lazy, but you can do it anywhere in your lisp. If your lisp is not SBCL, you have to do some (asdf load-op ...)-stuff instead, which I do not remember because I never do it.<br>

<br>
Knut<br>
<div class="im"><br>
<br>
On 18. Feb, 2010, at 5:08 PM, Adam Higuera wrote:<br>
<br>
> Just pinging the list to see if anyone has had any success building lisplab on Mac OS X.<br>
><br>
> In particular would someone more knowledgeable than me like to explain what to do about *lisp-blas-path* etc if I want to link against Apple's Accelerate framework?<br>
</div>> _______________________________________________<br>
> lisplab-devel mailing list<br>
> <a href="mailto:lisplab-devel@common-lisp.net">lisplab-devel@common-lisp.net</a><br>
> <a href="http://common-lisp.net/cgi-bin/mailman/listinfo/lisplab-devel" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/lisplab-devel</a><br>
<br>
</blockquote></div><br>