Wiki

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
university:tools:m1k:pixelpulse:build [26 Mar 2015 21:54] – [Building Pixelpulse 2] Tim Harderuniversity:tools:m1k:pixelpulse:build [04 Mar 2016 16:40] (current) – fix library for quick & qml Robin Getz
Line 6: Line 6:
  
   - Install LibUSB   - Install LibUSB
-  - Install Qt5.4  +    * On debian installations that would be something like:<WRAP box bgred><wrap alert>root user on the host</wrap> 
-  - Run the following commands from a console environment:+<xterm> 
 +root@raspberrypi:/home/pi/git# **apt-get install libusb-1.0-0-dev libudev-dev** 
 +</xterm></WRAP> 
 +  - Install Qt5.4 
 +    * On debian installations that would be something like:<WRAP box bgred><wrap alert>root user on the host</wrap> 
 +<xterm> 
 +root@raspberrypi:/home/pi/git# **apt-get install qtbase5-dev qtdeclarative5-dev** 
 +</xterm></WRAP> 
 +  - Check out PixelPulse:<WRAP box bgred><wrap alert>root user on the host</wrap>
 <xterm> <xterm>
 git clone --recursive https:%%//%%github.com/signalspec/pixelpulse2 git clone --recursive https:%%//%%github.com/signalspec/pixelpulse2
-cd pixelpulse2 +</xterm></WRAP
-mkdir build +  - Go into that directoryand make a build directory.<WRAP box bgred><wrap alert>root user on the host</wrap>
-cd build +
-qmake .. +
-make +
-./pixelpulse2 +
-</xterm> +
- +
-Use qmake Version 5e.g. on Opensuse 13.1 qmake is only version 4+
 <xterm> <xterm>
-> qmake --version+root@raspberrypi:/home/pi# **cd pixelpulse2** 
 +root@raspberrypi:/home/pi/pixelpulse2# **mkdir build** 
 +root@raspberrypi:/home/pi/pixelpulse2# **cd build** 
 +root@raspberrypi:/home/pi/pixelpulse2/build#  
 +</xterm></WRAP> 
 +  - make the project 
 +    * Before you can make things, you need to check out your version of qmake. You will get one of these results: 
 +      - If you get this, you are good to go<WRAP box bgred><wrap alert>root user on the host</wrap> 
 +<xterm> 
 +root@raspberrypi:/home/pi/pixelpulse2/build# **qmake --version** 
 +QMake version 3.0 
 +Using Qt version 5.1.1 in /usr/lib64 
 +</xterm></WRAP>
 +      - If you get this, you will need to use ''qmake-qt5'', rather than ''qmake'' below. (on Opensuse 13.1)<WRAP box bgred><wrap alert>root user on the host</wrap> 
 +<xterm> 
 +root@raspberrypi:/home/pi/pixelpulse2/build# **qmake --version**
 QMake version 2.01a QMake version 2.01a
 Using Qt version 4.8.5 in /usr/lib64 Using Qt version 4.8.5 in /usr/lib64
-qmake-qt5  --version+</xterm></WRAP> 
 +      - If you get this, you need to set the env var:<WRAP box bgred><wrap alert>root user on the host</wrap> 
 +<xterm> 
 +root@raspberrypi:/home/pi/pixelpulse2/build# qmake .. 
 +qmake: could not exec '/usr/lib/arm-linux-gnueabihf/qt4/bin/qmake': No such file or directory 
 +root@raspberrypi:/home/pi/pixelpulse2/build# **export QT_SELECT=5** 
 +root@raspberrypi:/home/pi/pixelpulse2/build# **qmake --version**
 QMake version 3.0 QMake version 3.0
-Using Qt version 5.1.1 in /usr/lib64 +</xterm></WRAP> 
-</xterm> +    * Now you are ready to b build things<WRAP box bgred><wrap alert>root user on the host</wrap>
-So run in this case+
 <xterm> <xterm>
-qmake-qt5 .. +root@raspberrypi:/home/pi/pixelpulse2/build# qmake .. 
-</xterm>+make 
 +./pixelpulse2 
 +</xterm></WRAP> 
 +    * <WRAP box bgred><wrap alert>root user on the host</wrap> 
 +<xterm> 
 +root@raspberrypi:/home/pi/pixelpulse2/build# qmake .. 
 +make 
 +./pixelpulse2 
 +</xterm></WRAP>
university/tools/m1k/pixelpulse/build.txt · Last modified: 04 Mar 2016 16:40 by Robin Getz