Permalink
Browse files

Update CompileHowto.txt (#706)

* Update CompileHowto.txt

* Update CompileHowto.txt

* Update CompileHowto.txt

* Update CompileHowto.txt

* Update CompileHowto.txt
  • Loading branch information...
1 parent c5ecd0f commit ec324f16935359e239807ee25561c9071acd5956 @NicoHood NicoHood committed with brindosch Jul 13, 2016
Showing with 7 additions and 7 deletions.
  1. +7 −7 CompileHowto.txt
View
@@ -1,6 +1,9 @@
# Install the required tools and dependencies
sudo apt-get update
-sudo apt-get install git cmake build-essential libQt4-dev libusb-1.0-0-dev python-dev libxrender-dev
+sudo apt-get install git cmake build-essential libQt4-dev libusb-1.0-0-dev python-dev libxrender-dev python
+
+# Arch/ALARM dependencies
+sudo pacman -S --needed git cmake base-devel qt4 libusb libxrender icu
# RPI ONLY: when you build on the rapberry pi and include the dispmanx grabber (which is the default)
# you also need the firmware including headers installed. This downloads the firmware from the raspberrypi github
@@ -24,9 +27,9 @@ mkdir "$HYPERION_DIR/build"
cd "$HYPERION_DIR/build"
# run cmake to generate make files on the raspberry pi WITHOUT PWM SUPPORT
-cmake -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
+cmake -DCMAKE_BUILD_TYPE=Release -DPLATFORM="rpi" -Wno-dev ..
# run cmake to generate make files on the raspberry pi WITH PWM SUPPORT
-cmake -DENABLE_WS2812BPWM=ON -DENABLE_WS281XPWM=ON -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
+cmake -DCMAKE_BUILD_TYPE=Release -DPLATFORM="rpi-pwm" -Wno-dev ..
# or if you are not compiling on the raspberry pi (e.g. OrangePi) and need to disable the Dispmanx grabber and support for spi devices
cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=OFF -DENABLE_X11=ON -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
# on amlogic platforms
@@ -45,10 +48,7 @@ sudo brew install cmake
cmake -DENABLE_DISPMANX=OFF -DENABLE_SPIDEV=OFF -DENABLE_V4L2=OFF -DENABLE_OSX=ON ..
# run make to build Hyperion
-make
-# or if you have a system with more then 1 cpu core
-make -j 4
-# "4" is the number of cpu cores (e.g. 4 on RPi2 and RPi3), this makes compile faster
+make -j $(nproc)
#after compile, to remove any stuff not needed for a release version.
strip bin/*

0 comments on commit ec324f1

Please sign in to comment.