Differences

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

Link to this comparison view

Next revision
Previous revision
en:general_information:qt_creator [2014/10/22 09:46] – created liedmannen:general_information:qt_creator [2022/08/04 15:02] (current) – external edit 127.0.0.1
Line 5: Line 5:
 ==== Prerequisites ==== ==== Prerequisites ====
 <WRAP round important 75%> <WRAP round important 75%>
- You need to install  python devel packages on the build host and then compile the OSELAS toolchain !+ You have to install the Python devel packages on the build host and then compile the OSELAS toolchain !
 </WRAP> </WRAP>
  
 === Install python devel packages === === Install python devel packages ===
- - Update Packetmanager +  - Update Packetmanager <code bash>sudo apt-get update</code> 
-<code bash>sudo apt-get update</code> +  - Install python devel packages <code bash>sudo apt-get install python-dev</code>
-  - Install python devel packages +
-<code bash>sudo apt-get install python-dev</code>+
  
  
Line 22: Line 20:
 === Host === === Host ===
   * installed PTXdist [[http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf|Pengutronix quickstart guide]]   * installed PTXdist [[http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf|Pengutronix quickstart guide]]
-  * OSELAS TOOLCHAIN including GDB with python support [[http://www.ptxdist.org/software/ptxdist/appnotes  /AppNote_BuildingToolchain.pdf|Appnote building OSELAS Toolchain]]+  * OSELAS TOOLCHAIN including GDB with python support [[http://www.pengutronix.de/software/ptxdist/appnotes/AppNote_BuildingToolchain.pdf|Appnote building OSELAS Toolchain]]
   * PTXdist images    * PTXdist images 
 +
  
    
Line 30: Line 29:
   * User with password (needed for ssh remote access)   * User with password (needed for ssh remote access)
   * gdbserver   * gdbserver
-  * OpenSSH with sshd and sftpd+  * OpenSSH with sshd and sftpd (disable dropbear in ptxdist menu and build a new image)
   * Network connection to development host   * Network connection to development host
  
Line 44: Line 43:
  
 === Ubuntu packetmanager installation === === Ubuntu packetmanager installation ===
-  - Update Packetmanager +  - Update Packetmanager <code bash>sudo apt-get update</code> 
-<code bash>sudo apt-get update</code> +  - Install Qt Creator <code bash>sudo apt-get install qtcreator</code>
-  - Install Qt Creator +
-<code bash>sudo apt-get install qtcreator</code>+
  
 ---- ----
Line 58: Line 55:
 In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options** In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options**
 \\ \\
-{{:intern:general_information:qt_1.jpg?nolink&800|  }}+ 
 +{{:en:general_information:qt_1.jpg?nolink&800|  }}
 \\ \\
 \\ \\
 In the Options menu select **Build & Run** from the menu tab on the left side then select the **Compilers** tab and click on **Add** button on the upper right side then select **Custom** from the dropdown menu\\  In the Options menu select **Build & Run** from the menu tab on the left side then select the **Compilers** tab and click on **Add** button on the upper right side then select **Custom** from the dropdown menu\\ 
-{{:intern:general_information:qt_2.jpg?nolink&800|  }}+{{:en:general_information:qt_2.jpg?nolink&800|  }}
  
  
 Now you have to set  Now you have to set 
 \\ \\
-{{:intern:general_information:qt_3.jpg?nolink&800|  }}+{{:en:general_information:qt_3.jpg?nolink&800|  }}
 \\ \\
 __**Name**__ should be named like the toolchain compiler in this case **<PTXCONF_GNU_TARGET>**\\ __**Name**__ should be named like the toolchain compiler in this case **<PTXCONF_GNU_TARGET>**\\
Line 88: Line 86:
 In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options** In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options**
 \\ \\
-{{:intern:general_information:qt_1.jpg?nolink&800|  }}+{{:en:general_information:qt_1.jpg?nolink&800|  }}
 \\ \\
 \\ \\
 In the Options menu select **Build & Run** from the menu tab an the left side then select **Debuggers** tab and click on **Add** button on the upper right side In the Options menu select **Build & Run** from the menu tab an the left side then select **Debuggers** tab and click on **Add** button on the upper right side
  
-{{:intern:general_information:qt_4.jpg?nolink&800|  }}+{{:en:general_information:qt_4.jpg?nolink&800|  }}
  
  
Line 99: Line 97:
 now you have to set  now you have to set 
 \\ \\
-{{:intern:general_information:qt_5.jpg?nolink&800|}}+{{:en:general_information:qt_5.jpg?nolink&800|}}
  
 __**Name**__ should be named like the toolchain compiler in this case **<PTXCONF_GNU_TARGET>**\\  __**Name**__ should be named like the toolchain compiler in this case **<PTXCONF_GNU_TARGET>**\\ 
Line 114: Line 112:
 In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options** In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options**
 \\ \\
-{{:intern:general_information:qt_1.jpg?nolink&800|  }}+{{:en:general_information:qt_1.jpg?nolink&800|  }}
 \\ \\
 \\ \\
 In the Options menu select **Build & Run** from the menu tab on the left side then select **Qt Versions** tab and click on the **Add** button on the upper right side a filemanager window appers  In the Options menu select **Build & Run** from the menu tab on the left side then select **Qt Versions** tab and click on the **Add** button on the upper right side a filemanager window appers 
 \\ \\
-{{:intern:general_information:qt_7.jpg?nolink&800|  }}+{{:en:general_information:qt_7.jpg?nolink&800|  }}
  
  
-navigte to **/your/BSP source/platform-<PTXCONF_PLATFORM>/sysroot-cross/bin/qmake-cross**\\+navigate to **/your/BSP source/platform-<PTXCONF_PLATFORM>/sysroot-cross/bin/qmake-cross**\\
  
 for this tutorial **/home/tq/workspace/BSPs/TQMa6x-BSP_REV.0104/platform-MBa6x/sysroot-cross/bin/qmake-cross** for this tutorial **/home/tq/workspace/BSPs/TQMa6x-BSP_REV.0104/platform-MBa6x/sysroot-cross/bin/qmake-cross**
Line 130: Line 128:
 In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options** In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options**
 \\ \\
-{{:intern:general_information:qt_1.jpg?nolink&800|  }} +{{:en:general_information:qt_1.jpg?nolink&800|  }}
-\\ +
-\\ +
-In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options** +
-\\ +
-{{:intern:general_information:qt_1.jpg?nolink&800|  }}+
 \\ \\
 \\ \\
 in the Options menu select **Device** and click on **Add** button in the Options menu select **Device** and click on **Add** button
-{{:intern:general_information:qt_8.jpg?nolink&800|}}+{{:en:general_information:qt_8.jpg?nolink&800|}}
 \\ \\
 The device configuration wizard appears The device configuration wizard appears
 \\ \\
-{{:intern:general_information:qt_10.jpg?nolink&300|}} +{{:en:general_information:qt_10.jpg?nolink&300|}} 
 \\ \\
 select **Generic Linux Device** and click on **Start Wizard** select **Generic Linux Device** and click on **Start Wizard**
Line 149: Line 142:
 in the following window you have to set the connection parameters in the following window you have to set the connection parameters
 \\ \\
-{{:intern:general_information:qt_9.jpg?nolink&600|}}+{{:en:general_information:qt_9.jpg?nolink&600|}}
  
 __**The name to identify this configuration**__ you can enter any Name here e.g. **<your device name>**\\ __**The name to identify this configuration**__ you can enter any Name here e.g. **<your device name>**\\
Line 170: Line 163:
 In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options** In the main window of Qt Creator select the tab **Tools** and in the dropdown menu **Options**
 \\ \\
-{{:intern:general_information:qt_1.jpg?nolink&800|  }}+{{:en:general_information:qt_1.jpg?nolink&800|  }}
 \\ \\
 \\ \\
Line 176: Line 169:
 \\ \\
  
-{{:intern:general_information:qt_14.jpg?nolink&800|}}+{{:en:general_information:qt_14.jpg?nolink&800|}}
 \\ \\
 you have to set\\  you have to set\\ 
Line 189: Line 182:
 __**Device**__ will be automatically fill up if you configured a[[intern:general_information:qt_creator#Add a device| device]] before\\ __**Device**__ will be automatically fill up if you configured a[[intern:general_information:qt_creator#Add a device| device]] before\\
 \\ \\
-__**Sysroot**__  set your root debug folder **/path/to/your/BSP source/platform<PTXCONF_PLATFORM>/root-debug**\\  +__**Sysroot**__  set your root debug folder **/path/to/your/BSP source/platform<PTXCONF_PLATFORM>/sysroot-target**\\  
-for this tutorial**/home/tq/workspace/BSPs/TQMa6x-BSP-REV.0104/platform-MBa6x/root-debug**\\+for this tutorial**/home/tq/workspace/BSPs/TQMa6x-BSP-REV.0104/platform-MBa6x/sysroot-target**\\
 \\ \\
 __**Compiler**__ select [[intern:general_information:qt_creator#Add compiler from BSP source| compiler]] you configured before\\  __**Compiler**__ select [[intern:general_information:qt_creator#Add compiler from BSP source| compiler]] you configured before\\ 
Line 202: Line 195:
 \\ \\
 __**Qt mkspec**__\\ __**Qt mkspec**__\\
 +
 +===== Creating a Hello World Application =====
 +
 +To create a new project select File > New file or project > Other Projects > Empty Qt Project
 + 
  • Last modified: 2022/08/04 15:04