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 revisionLast revisionBoth sides next revision | ||
installing_gputils_and_sdcc_on_osx [2009/01/06 11:16] – Added the MacPorts installation instruction mhomscheidt | installing_gputils_and_sdcc_on_osx [2023/11/26 20:15] – admin | ||
---|---|---|---|
Line 5: | Line 5: | ||
And more than that: you are able to [[how to use xcode2 as ide on a mac|use Apple' | And more than that: you are able to [[how to use xcode2 as ide on a mac|use Apple' | ||
- | The first step in this process is to install SDCC. If you have already SDCC running and calling "sdcc -v" in terminal | + | The first step in this process is to install SDCC. If you have already SDCC running and calling "sdcc -v" in terminal |
\\ | \\ | ||
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 | ||
sometimes you have to call these with " | sometimes you have to call these with " | ||
- | If you have problems compiling and installing SDCC, you might lack a library. | + | If you have problems compiling and installing SDCC 2.8.0, you might lack a library. |
Here is what you should have installed (in this particularly order) | Here is what you should have installed (in this particularly order) | ||
\\ | \\ | ||
+ | ====== 1. Install GPUTILS ====== | ||
+ | [[http:// | ||
+ | (And check out the rest of his site, he has some useful info about Microchip Development on Mac OS X) | ||
- | ====== 1. GPUTILS ====== | + | ==== Compiling for PIC18F4685? |
- | [[http:// | + | If you want to compile for the PIC18F4685, you need a later version of GPUTILS than 0.13.4. The usage of 0.13.7 is highly recommended, |
- | Check out the rest of his site, he has some useful infos about MicroChip Dev on OSX | + | |
- | 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 |
- | \\ | + | <code bash> |
- | ====== 2. SDCC ====== | + | cd ~ |
- | SDCC is available here: http://sdcc.sourceforge.net/ | + | svn co https://gputils.svn.sourceforge.net/ |
+ | cd gputils/ | ||
+ | ./ | ||
+ | make | ||
+ | sudo make install | ||
+ | cd ~ | ||
+ | rm -Rf gputils | ||
+ | </ | ||
- | There are precompiled | + | 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. Install SDCC ====== | ||
+ | ==== Precompiled | ||
+ | Download and install from [[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:// | 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: | ||
+ | </ | ||
+ | --- // | ||
+ | |||
+ | |||
+ | Update 2023-11-26: usage of SDCC 2.8.0 still mandatory - confirmed that the tool can also be compiled for Apple Silicon. Link to source code: https:// | ||
+ | |||
+ | |||
+ | ==== 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 68: | Line 106: | ||
----- | ----- | ||
- | 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 | ||
- | --- // | ||
====== 3. If there are errors ====== | ====== 3. If there are errors ====== | ||
- | You might need additional libraries. | + | Please check first if you have the latest working stable versions, fitting to your platform. |
- | Go and load [[http:// | + | |
- | Then open FinkCommander and install these libraries: | + | If you have trouble installing SDCC on your mac, post your questions/ |
- | -> gettext-0.14.5, gputils-0.13.2, libiconv-1.9.2_1, | + | |
- | And don't blame me or anyone else if this breaks up something. It's your own responsibility! | + | |
- | 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