User Tools

Site Tools


installing_xenomai3_podo3_and_qt

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
installing_xenomai3_podo3_and_qt [2018/02/13 18:19] keitaronishimurainstalling_xenomai3_podo3_and_qt [2018/06/11 18:26] (current) keitaronishimura
Line 1: Line 1:
-====Installing Xenomai3PODO3, and QT====+====Installing XenomaiPODO, and QT====
  
 ===How to use this tutorial=== ===How to use this tutorial===
 \\ \\
-This tutorial will take the reader step by step on how to install Xenomai3, PODO3, and QT onto a computer. This tutorial assumes that the reader has experience with Ubuntu. I will be using Ubuntu 16.04 for this tutorial. Although it is possible to do it in 14.04 it is not recommended. The reader will also need to have an account to edit this page to get access to commented out information. I also +This tutorial will take the reader step by step on how to install Xenomai, PODO3, and QT onto a computer. This tutorial assumes that the reader has experience with Ubuntu. I will be using Ubuntu 16.04 for this tutorial. Although it is possible to do it in 14.04 it is not recommended. The reader will also need to have an account to edit this page to get access to commented out information. I also 
 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.
  
Line 35: 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 14.04 (Recommended)+4. Install ubuntu 16.04 (Recommended)
 \\ \\
-16.04 has problems with software compatibility+14.04 has problems with software compatibility
  
 ===Xenomai3 Instalation=== ===Xenomai3 Instalation===
Line 88: Line 88:
 {{podo_inst:xenint5.png?400}} {{podo_inst:xenint5.png?400}}
 \\ \\
-6. Once done close the package manager and open a new terminal and run the command:+<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> 
 +---- 
 +<fc purple> 
 +sudo apt-get install build-essential automake libtool libpopt-dev libglu1-mesa-dev libglade2-dev 
 +</fc> 
 +---- 
 +<fc red> 
 +However, synaptic package manager is a good package manager to have anyways so I would recommend getting it regardless.  
 +</fc> 
 + 
 +\\ 
 +6. If you were using the synaptic package manager close it, open a new terminal and run the command:
 ----  ---- 
 <fc purple> <fc purple>
Line 119: Line 132:
 {{podo_inst:root_hyunhee-desktop_-home-hyunhee_005.png?400}} {{podo_inst:root_hyunhee-desktop_-home-hyunhee_005.png?400}}
 \\ \\
-9. Run the command:+9. The following command will differ based on which version of ubuntu you are installing. For ubuntu 14.04 and older use:
 ----  ---- 
 <fc purple> <fc purple>
 cd /usr/local/src/Xenomai/Kernel cd /usr/local/src/Xenomai/Kernel
 +</fc>
 +----
 +For Ubuntu 16.04 and newer use:
 +----
 +<fc purple>
 +cd /usr/local/src/RTOS/Linux
 </fc> </fc>
 ---- ----
Line 166: 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 /usr/local/src/Xenomai/Library  cd /usr/local/src/Xenomai/Library 
 +</fc>
 +----
 +For Ubuntu 16.04 and newer use:
 +----
 +<fc purple>
 +cd /usr/local/src/RTOS/Xenomai
 </fc> </fc>
 ---- ----
Line 226: 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 234: Line 261:
 ---- ----
  
-2. Change <fc red>GRUB_DEFAULT = 0</fc> to <fc green>GRUB_DEFAULT = 1>[the number placement of xenomai in grub (default is usually 6)]</fc>+2. Change <fc red>GRUB_DEFAULT = 0</fc> to <fc green>GRUB_DEFAULT = "1>[the number placement of xenomai in grub (default is usually 6)]"</fc> 
 +\\ 
 +Note: Don't forget the quotation marks around the grub default ex. "1>6"
 \\ \\
 {{podo_inst:grub_-etc-default_-_gedit_002.png?400}} {{podo_inst:grub_-etc-default_-_gedit_002.png?400}}
Line 253: Line 282:
 {{podo_inst:peak-system_linux_website_-_mozilla_firefox_013.png?400}} {{podo_inst:peak-system_linux_website_-_mozilla_firefox_013.png?400}}
 \\ \\
-3. In a terminal 'cd' inside the downloaded folder and run the commands:+3. In a terminal 'cd' inside the extracted folder and run the commands:
 ---- ----
 <fc purple> <fc purple>
Line 272: 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 295: Line 326:
 {{podo_inst:index_of_-archive-qt_-_mozilla_firefox_015.png?400}} {{podo_inst:index_of_-archive-qt-5.5_-_mozilla_firefox_016.png?400}} {{podo_inst:index_of_-archive-qt-5.5-5.5.1_-_mozilla_firefox_018.png?400}} {{podo_inst:index_of_-archive-qt_-_mozilla_firefox_015.png?400}} {{podo_inst:index_of_-archive-qt-5.5_-_mozilla_firefox_016.png?400}} {{podo_inst:index_of_-archive-qt-5.5-5.5.1_-_mozilla_firefox_018.png?400}}
 \\ \\
 +Note: If you are using the newest xenomai 4 you can download qt 5.7.0 instead (https://download.qt.io/official_releases/qt/5.7/5.7.0/). Make sure you download the linux version not the android one. The rest of the commands are the same regardless of qt version.
 +\\
 + 
 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 312: Line 346:
 {{podo_inst:hyunhee_hyunhee-desktop_-downloads_019.png?400}} {{podo_inst:hyunhee_hyunhee-desktop_-downloads_019.png?400}}
 \\ \\
-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 331: Line 368:
 {{podo_inst:debug.h_-usr-include-xenomai-copperplate_-_gedit_022.png?400}} {{podo_inst:debug.h_-usr-include-xenomai-copperplate_-_gedit_022.png?400}}
 \\ \\
-===Installing PODO3===+4. You can now close everything.  
 +\\ 
 +===Installing PODO===
  
 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 355: Line 394:
 \\ \\
 {{:podoinst101.png?400}} {{:podoinst102.png?400}}  {{:podoinst101.png?400}} {{:podoinst102.png?400}} 
 +\\
 +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:buildsh.png?400}}{{podo_inst:buildshterm.png?400}}
 \\ \\
 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 360: Line 410:
 {{:podoinst103.png?400}} {{:podoinst104.png?400}} {{:podoinst103.png?400}} {{:podoinst104.png?400}}
 \\ \\
-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. 
 \\ \\
 {{:podoinst105.png?400}} {{:podoinst106.png?400}} {{:podoinst105.png?400}} {{:podoinst106.png?400}}
Line 367: Line 417:
 \\ \\
 {{podo_inst:podoinst13.png?400}}  {{podo_inst:podoinst13.png?400}} 
 +\\
 +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.1518574754.txt.gz · Last modified: by keitaronishimura