amiro-os / ide / qtcreator / README.txt @ 88afb834
History | View | Annotate | Download (2.434 KB)
1 |
SETTING UP AN AMIRO-OS PROJECT FOR QT-CREATOR |
---|---|
2 |
============================================= |
3 |
|
4 |
1 - Creating the Project Files |
5 |
------------------------------ |
6 |
Run the "setup.sh" script in this directory and follow the instructions. |
7 |
> ./setup.sh |
8 |
|
9 |
|
10 |
|
11 |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
12 |
! THAT'S IT for the basic setup. ! |
13 |
! The next steps are only necessary, if you want to integrate 'make' into QtCreator, ! |
14 |
! or if QtCreator crashes when opening the projects. ! |
15 |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
16 |
|
17 |
|
18 |
|
19 |
2 - Setup the AMiRo build environment for QtCreator |
20 |
--------------------------------------------------- |
21 |
Launch the QtCreator application, click on |
22 |
Tools -> Options |
23 |
and select "Build & Run". |
24 |
|
25 |
Under the tab "Compilers" add the arm-none-eabi-g++ compiler as another GCC. |
26 |
|
27 |
Under the tab "Debuggers" add the arm-none-eabi-gdb debugger. |
28 |
|
29 |
Under the tab "Kits" manually create a new kit: |
30 |
Name: AMiRo |
31 |
Device type: Desktop |
32 |
Sysroot: [gcc-arm-none-eabi include path] |
33 |
Compiler: [the compiler added above] |
34 |
Environment: SERIALBOOT=[absolute path to the SerialBoot binary] |
35 |
Debugger: [the debugger added above] |
36 |
QT version: none |
37 |
With everything else empty or default. |
38 |
If there is a warning sign shown right beside the new kit, check the setup for errors. |
39 |
|
40 |
|
41 |
|
42 |
3 - Open the Project(s) with QtCreator |
43 |
-------------------------------------- |
44 |
For convenience, the absolute path to your device (e.g. /home/juser/amiro-os/devices/PowerManagement) |
45 |
will be referenced in the following by "MOD_PATH". |
46 |
|
47 |
In the QtCreator application, click on |
48 |
File -> Open File or Project |
49 |
and open the according *.creator file. |
50 |
|
51 |
Select the project in the "Projects" view and click on the "Projects" icon on the very left. |
52 |
Switch to the "Build & Run" tab. |
53 |
|
54 |
Change the kit to "AMiRo" (right above the "Build" and "Run" buttons). |
55 |
|
56 |
Add a new build configuration and call it "make". |
57 |
Build directory: MOD_PATH |
58 |
Build Steps: make --directory=MOD_PATH all |
59 |
Clean Steps: make --directory=MOD_PATH clean |
60 |
Optionally you can add "-j" to the build setp in order to parallelize the compilation process. |
61 |
|
62 |
Add another new build configuration by cloning the new "make" configuration and call t "make flash". |
63 |
Replace "all" at the end of the Build Step with "flash" |
64 |
|
65 |
Remove the "Default" build configuration. |
66 |
|
67 |
Repeat this step for reach further project. |