manual:chapter1:buildfromsource

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
manual:chapter1:buildfromsource [2019/11/20 14:16]
jojo1973 [Building the firmware]
manual:chapter1:buildfromsource [2019/11/20 14:31]
jojo1973
Line 109: Line 109:
 It's done: the ''elf2rom'' tool was built and installed in the appropriate location to be used by the other projects. Select ''Close all projects and editors'' from the main menu to end the session. It's done: the ''elf2rom'' tool was built and installed in the appropriate location to be used by the other projects. Select ''Close all projects and editors'' from the main menu to end the session.
  
-=== newRPL standalone compiler ===+=== Building the newRPL standalone compiler ===
  
   - Open //Qt Creator//, select ''Open Project'', and go into ''newrpl-sources'';   - Open //Qt Creator//, select ''Open Project'', and go into ''newrpl-sources'';
Line 122: Line 122:
 It's done: the ''newrpl-comp'' tool was built and installed in the appropriate location to be used by the other projects. Select ''Close all projects and editors'' from the main menu to end the session. It's done: the ''newrpl-comp'' tool was built and installed in the appropriate location to be used by the other projects. Select ''Close all projects and editors'' from the main menu to end the session.
  
-==== Building the Desktop simulator ====+==== Building the newRPL desktop simulator ====
  
   - Open //Qt Creator//, select ''Open Project'', and go into ''newrpl-sources'';   - Open //Qt Creator//, select ''Open Project'', and go into ''newrpl-sources'';
Line 139: Line 139:
 ==== Building the firmware ==== ==== Building the firmware ====
  
-  - Open //Qt Creator//, select ''Open Project'', and go into ''newrpl-sources'', then select the relevant project file: ''newrpl-fw.pro'' for the **50g** target, ''newrpl-fw39.pro'' for the **39g+ /39gs** target, ''newrpl-fw40.pro'' for the **40gs** target;+  - Open //Qt Creator//, select ''Open Project'', and go into ''newrpl-sources'', then select the relevant project file: ''newrpl-fw.pro'' for the **50g** target, ''newrpl-fw39.pro'' for the **39g+ / 39gs** target, ''newrpl-fw40.pro'' for the **40gs** target;
   - when prompted, just click on ''Configure project'';   - when prompted, just click on ''Configure project'';
   - open a Terminal window and type<code>   - open a Terminal window and type<code>
Line 151: Line 151:
   - another possible alternative for 64-bit systems is to install the package<code>   - another possible alternative for 64-bit systems is to install the package<code>
 libc6-dev-i386 libc6-dev-i386
-</code> which in most cases should allow to keep the default directories. For //Ubuntu// it works with the defaults, for other systems change that to ''/usr/include/<newlib>'', so the line reads<code>+</code> which in most cases should allow to keep the default directories. For //Ubuntu// it works with the defaults, for other systems change that to ''/usr/include/newlib'', so the line reads<code>
 INCLUDEPATH += firmware/include newrpl /usr/include/newlib</code> INCLUDEPATH += firmware/include newrpl /usr/include/newlib</code>
   - save and close the file;   - save and close the file;
Line 172: Line 172:
 git pull git pull
 </code>This will update the source code to the lastest version; </code>This will update the source code to the lastest version;
-  - open //Qt Creator//, select ''Open Project'', and go into ''newrpl-sources''; +  - [[buildfromsource#newrpl-standalone-compiler|build the standalone compiler]];
-  select the ''newrpl-comp.pro'' project file; +
-  - now from the top menu, ''Build'', ''Run QMake'', then ''Rebuild All'';+
   - check the compile output to make sure the new version was copied to ''newrpl/tools-bin'', if not then repeat the steps ''Run QMake'' and ''Rebuild all''.   - check the compile output to make sure the new version was copied to ''newrpl/tools-bin'', if not then repeat the steps ''Run QMake'' and ''Rebuild all''.
-  - with the updated compiler in place, close all projects, open ''newrpl-ui.pro'' and do ''Run QMake'' then ''Rebuild all''. The ''Run QMake'' step is not optional, needs to be manually executed to make sure the build number is updated, otherwise the ''[[manual:chapter6:system:cmd_version|VERSION]]'' command will report the incorrect build number. +  - with the updated compiler in place, close all projects and [[buildfromsource#building-the-desktop-simulator|rebuild the desktop simulator]]. The ''Run QMake'' step is not optional, it needs to be manually executed to make sure the build number is updated, otherwise the ''[[manual:chapter6:system:cmd_version|VERSION]]'' command will report the incorrect build number. 
-  - finally, close all projects and open ''newrpl-fw.pro'' (or the equivalent for other hardware targets), and also ''Run QMake'' and ''Rebuild all''. +  - finally, close all projects and [[buildfromsource#building-the-firmware|rebuild the firmware]].
  • manual/chapter1/buildfromsource.txt
  • Last modified: 2019/11/20 14:45
  • by jojo1973