installing_gputils_and_sdcc_on_osx
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
installing_gputils_and_sdcc_on_osx [2009/10/08 07:17] – karnlund | installing_gputils_and_sdcc_on_osx [2012/05/19 16:15] – admin | ||
---|---|---|---|
Line 17: | Line 17: | ||
Now you have to type three commands: | Now you have to type three commands: | ||
- | * ./config | + | * ./configure |
* make | * make | ||
* make install | * make install | ||
Line 27: | Line 27: | ||
\\ | \\ | ||
- | ====== 1. GPUTILS ====== | + | ====== 1. Install |
- | [[http:// | + | [[http:// |
- | Check out the rest of his site, he has some useful | + | (And check out the rest of his site, he has some useful |
- | If you want to compile for the PIC18f4685, you need a later version of GPUTILS than 0.13.4, at the moment you need to compile GPUTILS for yourself then. But it runs smoothly on OS X (tried on 10.5).\\ | + | ==== Compiling for PIC18F4685? ==== |
+ | If you want to compile for the PIC18F4685, you need a later version of GPUTILS than 0.13.4, at the moment you need to compile GPUTILS for yourself then. But it runs smoothly on OS X (tried on 10.5).\\ | ||
**Following the instructions from [[http:// | **Following the instructions from [[http:// | ||
<code bash> | <code bash> | ||
- | svn co https:// | + | cd ~ |
- | cd < | + | svn co https:// |
+ | cd gputils/ | ||
./configure | ./configure | ||
make | make | ||
sudo make install | sudo make install | ||
+ | cd ~ | ||
+ | rm -Rf gputils | ||
</ | </ | ||
+ | I've written these instruction to store a temporary copy of the gputils source code in your home directory, then remove this code after the installation. | ||
- | ====== 2. SDCC ====== | + | ====== 2. Install |
- | SDCC is available here: http:// | + | ==== Precompiled binaries ==== |
- | + | Download and install from [[http:// | |
- | There are precompiled binaries for OSX that should work. | + | |
If you can't find an existing working version, I've built a binary installer that worked for me (note that this is not the most up-to-date version!): http:// | If you can't find an existing working version, I've built a binary installer that worked for me (note that this is not the most up-to-date version!): http:// | ||
+ | ==== via MacPorts and Xcode ==== | ||
+ | |||
+ | If you have [[http:// | ||
+ | |||
+ | * Open the ' | ||
+ | * There find the actual ' | ||
+ | <code bash> | ||
+ | [MyMac:~] > port search sdcc | ||
+ | sdcc @2.8.0 (lang) | ||
+ | ANSI C compiler targeting Intel 8051, Maxim 80DS390, Zilog Z80 | ||
+ | </ | ||
+ | |||
+ | * Then download, compile and configure ' | ||
+ | <code bash> | ||
+ | [MyMac:~] > sudo port install sdcc | ||
+ | Passwd: | ||
+ | </ | ||
+ | --- // | ||
+ | |||
+ | |||
+ | ==== Test for correct installation ==== | ||
A test in the terminal with "sdcc -v" should now show the proper version (you need 2.5 or higher): | A test in the terminal with "sdcc -v" should now show the proper version (you need 2.5 or higher): | ||
<code bash> | <code bash> | ||
Line 78: | Line 103: | ||
----- | ----- | ||
- | via MacPorts and Xcode: | ||
- | If you have [[http:// | ||
- | |||
- | * Open the ' | ||
- | * There find the actual ' | ||
- | <code bash> | ||
- | [MyMac:~] > port search sdcc | ||
- | sdcc @2.8.0 (lang) | ||
- | ANSI C compiler targeting Intel 8051, Maxim 80DS390, Zilog Z80 | ||
- | </ | ||
- | |||
- | * Then download, compile and configure ' | ||
- | <code bash> | ||
- | [MyMac:~] > sudo port install sdcc | ||
- | Passwd: | ||
- | </ | ||
- | --- // | ||
====== 3. If there are errors ====== | ====== 3. If there are errors ====== | ||
Please check first if you have the latest working stable versions, fitting to your platform. | Please check first if you have the latest working stable versions, fitting to your platform. | ||
- | If you have trouble installing SDCC on your mac, post your questions/ | + | If you have trouble installing SDCC on your mac, post your questions/ |
installing_gputils_and_sdcc_on_osx.txt · Last modified: 2023/11/26 20:16 by admin