Code Examples
From GT RoboJackets
The Code Examples are provided to allow members to practice using various development tools that we use. All of the examples are available through Subversion from:
- SVN: https://svn.robojackets.org/general/examples.
- WebSVN: https://websvn.robojackets.org/index/general/examples/#_examples_
Because all of the examples are accessible through Subversion, that tool is implied in each example. A basic overview of the examples is provided on this page and each example is documented. All of the examples assume that you have the tools that are used already installed and configured correctly. Getting and compiling an example is a great way to test this.
Contents |
Example 1
This example provides a basic Qt window with an OpenGL widget for graphics display. The aim is to familiarize yourself with the basics of Qt and the CMake build system.
Steps to build:
- Checkout the project from the Subversion path (below)
- Open a console and change to the bin directory of the project
- type$: cmake ..
- This will run the cmake executable and generate a Makefile to use in compiling the Example
- type$: make
- This will build the application
- Run the generated executable. Example1
Subversion Information
- SVN: https://svn.robojackets.org/general/examples/Example1
- WebSVN: https://websvn.robojackets.org/index/general/examples/Example1/#_examples_Example1_
Tools Used
- Qt
- CMake
Platforms
- Windows
- Linux
- Mac