installing_xenomai3_podo3_and_qt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
installing_xenomai3_podo3_and_qt [2018/02/13 16:38] – jeanvaz | installing_xenomai3_podo3_and_qt [2018/06/11 18:26] (current) – keitaronishimura | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====Installing | + | ====Installing |
===How to use this tutorial=== | ===How to use this tutorial=== | ||
\\ | \\ | ||
- | This tutorial will take the reader step by step on how to install | + | This tutorial will take the reader step by step on how to install |
I recommend that the reader go through the tutorial once before, or have this tutorial open as the reader goes through the process on a different computer. The reader should be able to finish this tutorial in about 1.5~2hr. | I recommend that the reader go through the tutorial once before, or have this tutorial open as the reader goes through the process on a different computer. The reader should be able to finish this tutorial in about 1.5~2hr. | ||
+ | |||
+ | Please note that if you are using a computer with a dedicated graphics card you may run into graphical problems and may need to do additional steps to complete this tutorial. | ||
If the reader doesn' | If the reader doesn' | ||
Line 34: | Line 35: | ||
3. Press F7 to select the update file on the usb flash drive and update the BIOS. | 3. Press F7 to select the update file on the usb flash drive and update the BIOS. | ||
- | 4. Install ubuntu | + | 4. Install ubuntu |
\\ | \\ | ||
- | 16.04 has problems with software compatibility | + | 14.04 has problems with software compatibility |
===Xenomai3 Instalation=== | ===Xenomai3 Instalation=== | ||
Line 67: | Line 68: | ||
\\ | \\ | ||
- | 4. Then open the Ubuntu Software Center to install the Synaptic Package Manager. Then run the Synaptic Package Manager to check off these packages for installation: | + | 4. Then open the Ubuntu Software Center to install the Synaptic Package Manager. |
+ | ---- | ||
+ | <fc purple> | ||
+ | sudo apt-get install synaptic | ||
+ | </ | ||
+ | ---- | ||
+ | Then run the Synaptic Package Manager to check off these packages for installation: | ||
*build-essential | *build-essential | ||
*automake | *automake | ||
Line 81: | Line 88: | ||
{{podo_inst: | {{podo_inst: | ||
\\ | \\ | ||
- | 6. Once done close the package manager | + | <fc red> |
+ | NOTE: You do not need to use the synaptic package manager to install the needed packages. You can do the same thing with: | ||
+ | </ | ||
+ | ---- | ||
+ | <fc purple> | ||
+ | sudo apt-get install build-essential automake libtool libpopt-dev libglu1-mesa-dev libglade2-dev | ||
+ | </ | ||
+ | ---- | ||
+ | <fc red> | ||
+ | However, synaptic package manager is a good package manager to have anyways so I would recommend getting it regardless. | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | 6. If you were using the synaptic | ||
---- | ---- | ||
<fc purple> | <fc purple> | ||
Line 91: | Line 111: | ||
{{podo_inst: | {{podo_inst: | ||
\\ | \\ | ||
- | 7. Get the download file for Xenomai from the lab manager, or email me. Afterwards unzip it and put it inside usr/ | + | 7. Get the download file for Xenomai from the lab manager, or email me. When asking please tell them what version of ubuntu and how new your computer is. The version of xenomai needed will differ depending on these factors. Afterwards unzip it and put it inside usr/ |
\\ | \\ | ||
Line 112: | Line 132: | ||
{{podo_inst: | {{podo_inst: | ||
\\ | \\ | ||
- | 9. Run the command: | + | 9. The following |
---- | ---- | ||
<fc purple> | <fc purple> | ||
cd / | cd / | ||
+ | </fc> | ||
+ | ---- | ||
+ | For Ubuntu 16.04 and newer use: | ||
+ | ---- | ||
+ | <fc purple> | ||
+ | cd / | ||
</fc> | </fc> | ||
---- | ---- | ||
Line 159: | Line 185: | ||
</fc> | </fc> | ||
---- | ---- | ||
- | then use: | + | The following command will differ based on which version of Ubuntu you installed. For Ubuntu 14.04 and older use: |
---- | ---- | ||
<fc purple> | <fc purple> | ||
cd / | cd / | ||
+ | </fc> | ||
+ | ---- | ||
+ | For Ubuntu 16.04 and newer use: | ||
+ | ---- | ||
+ | <fc purple> | ||
+ | cd / | ||
</fc> | </fc> | ||
---- | ---- | ||
Line 219: | Line 251: | ||
\\ | \\ | ||
===Setting the Default Boot to Xenomai=== | ===Setting the Default Boot to Xenomai=== | ||
+ | Note: This step is not recommended if you are dual booting or need access to another version of Ubuntu on the same machine. It is possible to skip this step, as this is only a convenience for machines that work exclusively with PODO. | ||
+ | \\ | ||
1. Open a new terminal and run the command: | 1. Open a new terminal and run the command: | ||
Line 227: | Line 261: | ||
---- | ---- | ||
- | 2. Change <fc red> | + | 2. Change <fc red> |
+ | \\ | ||
+ | Note: Don't forget the quotation marks around the grub default ex. " | ||
\\ | \\ | ||
{{podo_inst: | {{podo_inst: | ||
Line 246: | Line 282: | ||
{{podo_inst: | {{podo_inst: | ||
\\ | \\ | ||
- | 3. In a terminal ' | + | 3. In a terminal ' |
---- | ---- | ||
<fc purple> | <fc purple> | ||
Line 265: | Line 301: | ||
</fc> | </fc> | ||
---- | ---- | ||
+ | Note: If you are just copy and pasting all of the commands it can sometimes copy invisible characters into the command line. If you get any errors with the previous command just type it out manually. | ||
+ | \\ | ||
5. Run: | 5. Run: | ||
Line 288: | Line 326: | ||
{{podo_inst: | {{podo_inst: | ||
\\ | \\ | ||
+ | Note: If you are using the newest xenomai 4 you can download qt 5.7.0 instead (https:// | ||
+ | \\ | ||
+ | |||
2. Find the directory holding the .run file and cd to it. Then run: | 2. Find the directory holding the .run file and cd to it. Then run: | ||
---- | ---- | ||
Line 305: | Line 346: | ||
{{podo_inst: | {{podo_inst: | ||
\\ | \\ | ||
- | 4. Check the /opt folder to make sure that qt5.5.1 was properly installed. | + | 4. Make sure that the files are installed into your /opt directory. |
+ | \\ | ||
+ | {{qt_save_loc.png?400}} | ||
+ | \\ | ||
===Xenomai debug.h Modification=== | ===Xenomai debug.h Modification=== | ||
Line 324: | Line 368: | ||
{{podo_inst: | {{podo_inst: | ||
\\ | \\ | ||
- | ===Installing | + | 4. You can now close everything. |
+ | \\ | ||
+ | ===Installing | ||
1. First go to the lab manager or email me to get the link to download all of the necessary files. | 1. First go to the lab manager or email me to get the link to download all of the necessary files. | ||
Line 348: | Line 394: | ||
\\ | \\ | ||
{{: | {{: | ||
+ | \\ | ||
+ | Note: If you don't have the build folder in your file run the build.sh file inside your podo file from a terminal: | ||
+ | ---- | ||
+ | <fc purple> | ||
+ | sudo chmod +x build.sh | ||
+ | \\ | ||
+ | ./build.sh | ||
+ | </fc> | ||
+ | ---- | ||
+ | \\ | ||
+ | {{podo_inst: | ||
\\ | \\ | ||
7. Make sure that both Release and Debug have the same path. Repeat this for all the other projects, making sure that both Release and Debug have the same build directory. As shown in the second picture you may see a warning, you can ignore it. | 7. Make sure that both Release and Debug have the same path. Repeat this for all the other projects, making sure that both Release and Debug have the same build directory. As shown in the second picture you may see a warning, you can ignore it. | ||
Line 353: | Line 410: | ||
{{: | {{: | ||
\\ | \\ | ||
- | 8. In the bottom left hand corner of the QT window there is a computer icon, click it and make sure that all the projects are in release mode instead of Debug mode. | + | 8. In the bottom left-hand corner of the QT window there is a computer icon, click it and make sure that all the projects are in release mode instead of Debug mode. |
\\ | \\ | ||
{{: | {{: | ||
Line 360: | Line 417: | ||
\\ | \\ | ||
{{podo_inst: | {{podo_inst: | ||
+ | \\ | ||
+ | Note: If you get an error about being unable to locate -lrbmodel just add the RBModel project and rebuild it byitself before rebuilding the others. This will create the rbmodel library the code is looking for. Don't forget to change the build location like the other projects for RBModel. | ||
+ | |||
\\ | \\ | ||
10. Now right click PODOLauncher in qt and run it. | 10. Now right click PODOLauncher in qt and run it. |
installing_xenomai3_podo3_and_qt.1518568735.txt.gz · Last modified: by jeanvaz