hyperion.ng icon indicating copy to clipboard operation
hyperion.ng copied to clipboard

Cross compile instructions are not accurate

Open tociek opened this issue 10 years ago • 20 comments

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

tociek avatar Jul 05 '16 21:07 tociek

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

redPanther avatar Jul 06 '16 08:07 redPanther

I am quite confident that I did the steps you mentioned, but I will retry in the afternoon and report back.

tociek avatar Jul 06 '16 08:07 tociek

Verify if desired headers in opt folder. When cmake says xy didn't found. Xy isn't there or cmake search on wrong place.

redPanther avatar Jul 06 '16 09:07 redPanther

And the next error you will get is: libdnssd not found :)

brindosch avatar Jul 06 '16 09:07 brindosch

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.

redPanther avatar Jul 06 '16 09:07 redPanther

need to check, i rsynced everything and the lib is available, but "not found".

brindosch avatar Jul 06 '16 09:07 brindosch

Try the sudo line above.

@brindosh Try - DUSE_SHARED_AVAHI_LIBS=ON

redPanther avatar Jul 06 '16 09:07 redPanther

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

brindosch avatar Jul 06 '16 09:07 brindosch

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

tociek avatar Jul 06 '16 10:07 tociek

Qt5 is not available on wheezy. You need backports access or jessie

brindosch avatar Jul 06 '16 10:07 brindosch

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 :)

brindosch avatar Jul 06 '16 11:07 brindosch

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 :)

tociek avatar Jul 06 '16 11:07 tociek

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

brindosch avatar Jul 06 '16 14:07 brindosch

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

tociek avatar Jul 06 '16 20:07 tociek

perhaps lib is located somewhere else? e.g. /usr/lib?

redPanther avatar Jul 07 '16 13:07 redPanther

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)

tociek avatar Jul 07 '16 14:07 tociek

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)

tociek avatar Jul 07 '16 18:07 tociek

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

brindosch avatar Jul 09 '16 09:07 brindosch

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

tociek avatar Jul 11 '16 16:07 tociek

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 :)

brindosch avatar Aug 26 '16 20:08 brindosch