I have slayed my own dragon(s) -- of my own making.
If you have read my other posts on this you know. If not here is my solution and learning process for compileing ARSS on a G3 mac.
In the beginning my approach was wrong. The developer noted that there was a mac compile string on the ARSS website which uses gcc not cmake. In my defense I didn't think to look in the news section on the main page - but the site isn't that large, so if I had, I could have saved myself a day or so of stress.
Here are the steps that I went through:
I have to note that, it is possible, even probable that I have done something that is technically incorrect. I'm just starting into all this stuff so please feel free to point out any shortcomings or refinements. I have not listed exact steppes for compile etc. But I have found this general primer to be useful.
ARSS The Analysis & Resynthesis Sound Spectrograph
On my older hardware (a G3 500mhz icebook, 10.4.11) I received the following errors useing the provided mac binarys.
dyld: incompatible cpu-subtype
Trace/BPT trap
I first removed the non working version:
Machine$ whereis arss
Machine$ /usr/local/bin/arss
Machine$ sudo rm /usr/local/bin/arss
In the ARSS site I read:
However I had no joy using the macports distro of FFTW3, which FFTW promotes, and was never able to get ARSS to compile as it couldn't find fftw3.h. (see note below)
So I downloaded the source for FFTW3 and followed their instructions for compiling on a mac FFTW Installation on the MacOS.
I unpacked and compiled FFTW3 into /usr/local/
I then downloaded the ARSS source from the website and unpacked it and installed it into /bin/
compile using:
cd /bin/
sudo tar -xzvf arss-0.2.3-src.tar.gz
cd /bin/arss-0.2.3-src/src
sudo gcc *.c -o /bin/arss -lm -lfftw3 -O2
Presto, kabam, golly-gee-whiz, it works.
Notes:
Now Im not sure if there is something else I should be doing or if /bin/ is technically the correct place to install this. I'm all sorts of confused about how and where things *should* be installed.
According to an email from the author, Michel Rouzic:
This is the part that I could never get to work using the macports distribution of FFTW-3 (fink would never update correctly on this machine and didn't list FFTW as a possible port). No matter what I did (using cmake or gcc) I would get an error stating that it couldn't find fftw3.h.
using gcc I tried using various manifestations of -l but could never tell if I was doing some noob error in keying it in, or if it was the same old problem.
Using cmake I tried updating CMake files to reflect the macports location under /opt/. I even created symbolic links to the fftw3.h locations along paths listed in the cmake file. cmake may not have compiled it correctly but, in my understanding, it should have at least found the header files.