Cross compile instructions are not accurate
Hi,
I've been trying to compile hyperion-ng for RPi on my laptop (ubuntu 14.04). Unfortunately I got stuck at running create_all_releases.sh . I am getting the following error:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BCM_INCLUDE_DIR
used as include directory in directory /home/jacwk/hyperion1/libsrc/grabber/dispmanx
used as include directory in directory /home/jacwk/hyperion1/src/hyperion-dispmanx
BCM_LIBRARIES
linked by target "dispmanx-grabber" in directory /home/jacwk/hyperion1/libsrc/grabber/dispmanx
-- Configuring incomplete, errors occurred!
I do believe I followed all steps properly including qt5 installation.
Any help would be highly appreciated. Jacek
the headers for broadcom videochip are missing. Did you follow that instruction in crosscompilehowto:
mkdir -p "$RASCROSS_DIR/firmware"
git clone https://github.com/raspberrypi/firmware.git "$RASCROSS_DIR/firmware"
ln -s "$RASCROSS_DIR/firmware/hardfp/opt" "$ROOTFS_DIR/opt"
git clone git://github.com/raspberrypi/tools.git "$RASCROSS_DIR/tools"
cmake searches dispmanx headers in "$ROOTFS_DIR/opt" BTW the dependency list in crosscompile howto is completly outdated
try this:
sudo apt-get install git cmake build-essential qtbase5-dev libqt5serialport5-dev libusb-1.0-0-dev python-dev libxrender-dev libavahi-core-dev libavahi-compat-libdnssd-dev
I am quite confident that I did the steps you mentioned, but I will retry in the afternoon and report back.
Verify if desired headers in opt folder. When cmake says xy didn't found. Xy isn't there or cmake search on wrong place.
And the next error you will get is: libdnssd not found :)
Then we need libdnssd.so somwhere in lib path. We have to copy the lib from raspi to /usr/lib
Those 'not found' errors are usualy easy to solve.
need to check, i rsynced everything and the lib is available, but "not found".
Try the sudo line above.
@brindosh Try - DUSE_SHARED_AVAHI_LIBS=ON
Yeah i know, it worked on the pi before, but not at the crosscompile. and the lib 2 times available one time at the pi dir and one time at the ubuntu system
How do you normally compile hyperion? On pi? I used to do that on pi, but cmake now complains that it lacks qt5 and I was not able to install qt5 via aptitude
Qt5 is not available on wheezy. You need backports access or jessie
The documentation is laking, cause it is still in early development. This repo should rather be a private repo with dev access :)
You may get further configuration problems sooner or later, i suggest to ask not :) one person ask -> no problem more peoples ask -> weird issues answering :)
I just wanted to test one of the features you recently added (the one with 'leds' parameter in device section, that is not working globally, not only for apa102). If you want me to wait until it gets to the official release, then fine... I was just eager to see if it really works :)
No problem, due to your workload you should prefer to compile on the pi, you could use another sd card. May be way faster :)
edit: the compile how to is up2date (not for osx) https://github.com/hyperion-project/hyperion.ng/blob/master/CompileHowto.txt
That was indeed way easier... but I ran into another problem :)
I wanted to test hyperion on OE and I an got error saying that QT libraries are missing... So i copied them from jessie, but (at least) one of them (libQt5SerialPort.so.5) does not exist in /usr/lib/arm-linux-gnueabihf
perhaps lib is located somewhere else? e.g. /usr/lib?
That's where I got other qt libraries from, but the one mentioned before was not there...
I will check other folders (I assumed that all qt libs would be in single place)
Ok, apparently I was blind...
So... after copying several libs, hyperion finally started... and failed, because OE does not have python 3 installed:
0-89INFO: Creating linear smoothing
HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=100;updateDelay=0
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Aborted (core dumped)
Did you installed python 3 (compile)? As far as i know still 2.7.X is default. Use your OE a older version? We talked about this and we keep the python level in sync with kodi to prevent issues
Also we changed nothing here. (deps) But no one tested this on OE (as you do now :))
Edit: wheezy and jessie use both 2.7
I have the latest OE... I saw I have python 3 installed, but I don't know where is came from :) (maybe it's needed for different software). I will play around with it and in case I don't find solution, I will start with Jessie from scratch
a minimal update, but there are still code issues that needs to be pointed out until this is working again. As this is on the list for travis, i close it :)