RepRap Firmware Build ProcessSetup the Development Environment | ||||||||
| Changed: | ||||||||
| < < |
Ubuntu/Linux: run the command below to install the required packages. | |||||||
| > > |
Ubuntu/Linux: run the command below to install the required packages (we have made our own versions of sdcc and gputils for later firmware releases). | |||||||
| # sudo apt-get install cvs libc6-dev flex g++ bison gputils | ||||||||
RepRap Firmware Build Process | ||||||||
| Line: 17 to 17 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
RepRap Firmware Build Process | ||||||||
| Changed: | ||||||||
| < < |
For building under Windows, please see Cygwin Build instead of using the following instructions. | |||||||
| > > |
Setup the Development EnvironmentUbuntu/Linux: run the command below to install the required packages. # sudo apt-get install cvs libc6-dev flex g++ bison gputils Windows: please see Cygwin Build instead of using the following instructions. Mac OSX: no idea. it is probably possible. if you attempt it, please let us know!Compiling the Firmware | |||||||
| ||||||||
| Line: 17 to 27 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Added: | ||||||||
| > > |
make[3]: Entering directory `/home/iowa/reprap/trunk/reprap/firmware/sdcc-build/sdcc/sim/ucsim' g++ -g -O2 -gstabs+ -g3 -pipe -I. -Wall -I. -I./sim.src -Icmd.src -Igui.src -c pobj.cc -o pobj.o cmd.src/newcmdcl.h:127: error: extra qualification 'cl_console::' on member 'clone_for_exec' make[3]: *** [pobj.o ] Error 1 make[3]: Leaving directory `/home/iowa/reprap/trunk/reprap/firmware/sdcc-build/sdcc/sim/ucsim' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/iowa/reprap/trunk/reprap/firmware/sdcc-build/sdcc/sim/ucsim' make[1]: *** [sdcc-misc] Error 2 make[1]: Leaving directory `/home/iowa/reprap/trunk/reprap/firmware/sdcc-build/sdcc' make: *** [/home/iowa/reprap/trunk/reprap/firmware/sdcc/share/sdcc/include/pic] Error 2Edit the file sdcc-build/sdcc/sim/ucsim/cmd.src/newcmdcl.h and change line 127 from: virtual class cl_console *cl_console::clone_for_exec(char *fin); to: virtual class cl_console *clone_for_exec(char *fin); (we've reported this bug to the sdcc developers, and hopefully it will be resolved soon.) | |||||||
Building for a different processorTo build for a different processor than the default 16f628, use the PROCESSOR environment variable, eg | ||||||||
RepRap Firmware Build Process | ||||||||
| Line: 15 to 15 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Building for a different processor | ||||||||
RepRap Firmware Build Process | ||||||||
| Added: | ||||||||
| > > |
For building under Windows, please see Cygwin Build instead of using the following instructions. | |||||||
| ||||||||
RepRap Firmware Build Process | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > |
RepRap Firmware Build Process
Building for a different processorTo build for a different processor than the default 16f628, use the PROCESSOR environment variable, egPROCESSOR=16f627 make
Building only specific devicesTo build only specific devices, use the DEVICES environment variable, egDEVICES=stepmotor-small make
Similarly, to build a particular device for a different processor:
DEVICES=stepmotor-small PROCESSOR=16f627 make
Note: Most code uses some processor specific hardware and may not work correctly on any given device
-- SimonMcAuliffe - 07 Jan 2006
| |||||||