| 1 |
sys/unix/osx/README.txt -- notes on OS X (Apple) version of Nyquist |
| 2 |
|
| 3 |
Roger B. Dannenberg |
| 4 |
23 April 2011 |
| 5 |
|
| 6 |
HOW TO REBUILD STUBS TO CALL NYQUIST PRIMITIVES FROM XLISP |
| 7 |
|
| 8 |
The file nyqsrc/sndfnint.c implements XLISP functions that correspond |
| 9 |
to Nyquist primitives such as SND-OSC. This file and a number of |
| 10 |
associated files (such as sndfnintdefs.h) are built automatically by |
| 11 |
the intgen program. This process is automated in the Linux Makefile, |
| 12 |
but here's how to do it under OS X. |
| 13 |
|
| 14 |
0. COMPILE NYQUIST WITH XCODE |
| 15 |
Before changing the sources, make sure you can compile your existing |
| 16 |
installation of Nyquist using XCODE. |
| 17 |
|
| 18 |
1. COMPILE INTGEN WITH XCODE |
| 19 |
From XCODE, choose Active Configuration: Deployment, Active Target: |
| 20 |
intgen, Active Executable: intgen. |
| 21 |
|
| 22 |
Build (Command-B). |
| 23 |
|
| 24 |
Result is in nyquist/macosxproject/build/Deployment/intgen. You might |
| 25 |
want to make an alias to this or move it to your ~/bin directory or |
| 26 |
change your PATH so you can execute this from the command line without |
| 27 |
typing the full path. In the following, I assume simply typing |
| 28 |
"intgen" will run the application. |
| 29 |
|
| 30 |
After setting up intgen to run, the command "which intgen" should |
| 31 |
indicate the path to intgen that the shell will use. |
| 32 |
|
| 33 |
2. WORK IN A TERMINAL WINDOW AND CD TO THE MAIN NYQUIST DIRECTORY |
| 34 |
Open a Terminal application. |
| 35 |
cd nyquist [or navigate using cd to wherever your nyquist sources are] |
| 36 |
|
| 37 |
3. GENERATE THE INTERFACE CODE |
| 38 |
Note: if you are adding a new primitive, you will want to modify |
| 39 |
sys/unix/osx/sndfnint.cmdline by inserting the name of the header (.h) |
| 40 |
file for the new primitive. (For a nyquist release, the name should |
| 41 |
also go into a list in nyquist/misc/transfiles.lsp and the Makefiles |
| 42 |
should be rebuilt, but we'll stick to the Apple-specific tasks here.) |
| 43 |
|
| 44 |
intgen @sys/unix/osx/sndfnint.cmdline |
| 45 |
|
| 46 |
The files sndfnint.c, sndfnint.lsp, sndfnintdefs.h, and sndfnintptrs.h |
| 47 |
will be generated and placed in the current (nyquist) directory. |
| 48 |
|
| 49 |
4. INSTALL THE FILES |
| 50 |
You might want to make a safe backup copy of the original |
| 51 |
nyqsrc/sndfnint.c, nyqsrc/sndfnint.lsp, nyqsrc/sndfnintdefs.h, and |
| 52 |
nyqsrc/sndfnintptrs.h for reference. |
| 53 |
|
| 54 |
Move the new files to nyqsrc: |
| 55 |
|
| 56 |
mv sndfnint.c sndfnint.lsp sndfnintdefs.h sndfnintptrs.h nyqsrc |
| 57 |
|
| 58 |
5. RECOMPILE NYQUIST WITH XCODE |
| 59 |
|
| 60 |
|