Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:chapter1:buildfromsource [2018/01/01 20:47] claudio |
manual:chapter1:buildfromsource [2018/01/03 12:30] claudio [Building the firmware] |
||
---|---|---|---|
Line 106: | Line 106: | ||
===== Building the Desktop simulator ===== | ===== Building the Desktop simulator ===== | ||
- | Open Qt Creator, select Open Project, and go into newrpl-sources, | + | Open Qt Creator, select Open Project, and go into newrpl-sources, |
When prompted, just click on ' | When prompted, just click on ' | ||
Line 136: | Line 136: | ||
The xxxxxxxxxxxxxx should point to suitable headers. In particular on a 64-bit system the system headers might be incompatible and cause errors. The first attempt should be to keep the defaults, and if any errors appear, it needs to be changed to / | The xxxxxxxxxxxxxx should point to suitable headers. In particular on a 64-bit system the system headers might be incompatible and cause errors. The first attempt should be to keep the defaults, and if any errors appear, it needs to be changed to / | ||
+ | Another possible alternative for 64-bit systems is to install the package libc6-dev-i386, | ||
For Ubuntu it works with the defaults, for other systems change that to / | For Ubuntu it works with the defaults, for other systems change that to / | ||
'' | '' | ||
- | Save and close the file. | + | Save and close the file. |
+ | |||
Now from the top menu, ' | Now from the top menu, ' | ||
From the bottom of the screen, check the ' | From the bottom of the screen, check the ' | ||
Line 148: | Line 150: | ||
If you see that line, everything went well, and your build directory (usually named build-newrpl-fw-Desktop....) will contain the newrplfw.bin file, which is the ROM that needs to be flashed on the calculator. | If you see that line, everything went well, and your build directory (usually named build-newrpl-fw-Desktop....) will contain the newrplfw.bin file, which is the ROM that needs to be flashed on the calculator. | ||
+ | |||
+ | ===== Updating the source tree to a new version ===== | ||
+ | |||
+ | When updates are made to the source tree, open a terminal session and go inside the main source directory (usually newrpl-sources), | ||
+ | |||
+ | git pull | ||
+ | |||
+ | This will update the source code to the lastest version. Open QtCreator and open the newrpl-comp.pro project. On the Build menu, "Run QMake" then " | ||
+ | |||
+ | With the updated compiler in place, close all projects, open newrpl-ui.pro and do "Run QMake" then " | ||
+ | |||
+ | Finally, close all projects and open newrpl-fw.pro (or the equivalent for other hardware targets), and also "Run QMake" and " | ||
+ |