Unable to initialize ws281x library.

  • Hello,
    i tryed to install Hypersion on an new Pi3 with LibreELEC (Krypton) v7.90.010 ALPHA)



    ssh out: ######################################################################## 100.0%
    ssh in: ---> Adding Hyperion to OpenELEC/LibreELEC autostart.sh
    ssh in: ---> Starting Hyperion
    ssh in: *******************************************************************************
    ssh in: Hyperion Installation/Update finished!
    ssh in: Please download the latest HyperCon version to benefit from new features!
    ssh in: To create a config, follow the HyperCon Guide at our Wiki (EN/DE)!
    ssh in: Wiki: wiki.hyperion-project.org Webpage: www.hyperion-project.org
    ssh in: *******************************************************************************
    ssh in: Rebooting now, we added dtparam=spi=on to config.txt
    ssh disconnected
    ssh connected
    sftp Send Hyperion Config - Sourcepath: C:/Users/mario/Desktop, Targetpath: /storage/.config/, Filename: hyperion.config.json
    ssh out: /storage/.config/autostart.sh > /dev/null 2>&1 &
    ssh out: cat /storage/logfiles/hyperion.log
    ssh in: Hyperion Ambilight Deamon (457)
    ssh in: Version : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
    ssh in: Build Time: Jul 25 2016 06:54:40
    ssh in: INFO: Selected configuration file: /storage/.config/hyperion.config.json
    ssh in: HYPERION INFO: ColorTransform 'default' => [0; 45]
    ssh in: HYPERION INFO: ColorCorrection 'default' => [0; 45]
    ssh in: HYPERION INFO: ColorAdjustment 'default' => [0; 45]
    ssh in: LEDDEVICE INFO: configuration:
    ssh in: {
    ssh in: "colorOrder" : "rgb",
    ssh in: "leds" : 256,
    ssh in: "name" : "MyHyperionConfig",
    ssh in: "type" : "ws281x"
    ssh in: }
    ssh in: whiteAlgorithm ::
    ssh in: Unable to initialize ws281x library.
    ssh in: terminate called after throwing an instance of 'int'
    ssh in: Aborted (core dumped)


    LibreELEC:~ # cat /proc/cpuinfo
    processor : 0
    model name : ARMv7 Processor rev 4 (v7l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4


    processor : 1
    model name : ARMv7 Processor rev 4 (v7l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4


    processor : 2
    model name : ARMv7 Processor rev 4 (v7l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4


    processor : 3
    model name : ARMv7 Processor rev 4 (v7l)
    BogoMIPS : 38.00
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4


    Hardware : BCM2835
    Revision : a22042
    Serial : 0000000027368d3a


  • Good Morning, thanks for the repley, and code changes.


    Yes, i'm able to build from source.


    With this Howto "Compile from Source" i got errors.


    https://github.com/hyperion-pr…b/master/CompileHowto.txt



    Run Build Command:"/usr/bin/make" "cmTC_9739b/fast"
    /usr/bin/make -f CMakeFiles/cmTC_9739b.dir/build.make CMakeFiles/cmTC_9739b.dir/build
    make[1]: Verzeichnis „/home/msth/Build_Hyperion/hyperion/build/CMakeFiles/CMakeTmp“ wird betreten
    Building CXX object CMakeFiles/cmTC_9739b.dir/CheckSymbolExists.cxx.o
    /usr/bin/c++ -I/usr/include/qt4 -std=c++0x -Wall -o CMakeFiles/cmTC_9739b.dir/CheckSymbolExists.cxx.o -c /home/msth/Build_Hyperion/hyperion/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
    /home/msth/Build_Hyperion/hyperion/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
    /home/msth/Build_Hyperion/hyperion/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_WIN’ was not declared in this scope
    return ((int*)(&Q_WS_WIN))[argc];
    ^
    CMakeFiles/cmTC_9739b.dir/build.make:65: die Regel für Ziel „CMakeFiles/cmTC_9739b.dir/CheckSymbolExists.cxx.o“ scheiterte
    make[1]: *** [CMakeFiles/cmTC_9739b.dir/CheckSymbolExists.cxx.o] Fehler 1
    make[1]: Verzeichnis „/home/msth/Build_Hyperion/hyperion/build/CMakeFiles/CMakeTmp“ wird verlassen
    Makefile:126: die Regel für Ziel „cmTC_9739b/fast“ scheiterte
    make: *** [cmTC_9739b/fast] Fehler 2


    File /home/msth/Build_Hyperion/hyperion/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
    /* */
    #include <QtCore/qglobal.h>
    ....

  • Ohh sorry for that. I'm not an coder. And the Line "# Arch/ALARM dependencies" brought me to the idea, that this is crosscompile.


    I try an compile on "Linux 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux"


    and got this error


    [ 92%] Built target xbmcvideochecker
    [ 92%] Generating __/__/__/include/grabber/moc_DispmanxWrapper.cxx
    Scanning dependencies of target dispmanx-grabber
    [ 93%] Building CXX object libsrc/grabber/dispmanx/CMakeFiles/dispmanx-grabber.dir/__/__/__/include/grabber/moc_DispmanxWrapper.cxx.o
    [ 93%] Building CXX object libsrc/grabber/dispmanx/CMakeFiles/dispmanx-grabber.dir/DispmanxWrapper.cpp.o
    /home/msth/hyperion/libsrc/grabber/dispmanx/DispmanxWrapper.cpp: In member function ‘void DispmanxWrapper::setGrabbingMode(GrabbingMode)’:
    /home/msth/hyperion/libsrc/grabber/dispmanx/DispmanxWrapper.cpp:78:27: error: ‘DISPMANX_SNAPSHOT_NO_RGB’ was not declared in this scope
    /home/msth/hyperion/libsrc/grabber/dispmanx/DispmanxWrapper.cpp:78:52: error: ‘DISPMANX_SNAPSHOT_FILL’ was not declared in this scope
    make[2]: *** [libsrc/grabber/dispmanx/CMakeFiles/dispmanx-grabber.dir/DispmanxWrapper.cpp.o] Fehler 1
    make[1]: *** [libsrc/grabber/dispmanx/CMakeFiles/dispmanx-grabber.dir/all] Fehler 2
    make: *** [all] Fehler 2

  • Cool! Much further ...


    Did you do the firmware bit from the compile how to ?
    # 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
    # and copies the required files to the correct place. The firmware directory can be deleted afterwards if desired.
    export FIRMWARE_DIR="raspberrypi-firmware"
    git clone --depth 1 https://github.com/raspberrypi/firmware.git "$FIRMWARE_DIR"
    sudo cp -R "$FIRMWARE_DIR/hardfp/opt/" /opt

  • have tried a third time


    mv hyperion_build hyperion_build_old


    mkdir hyperion_build
    cd hyperion_build
    export FIRMWARE_DIR="raspberrypi-firmware"
    git clone --depth 1 https://github.com/raspberrypi/firmware.git "$FIRMWARE_DIR"
    sudo cp -R "$FIRMWARE_DIR/hardfp/opt/" /opt


    export HYPERION_DIR="hyperion"
    git clone --recursive https://github.com/tvdzwan/hyperion.git "$HYPERION_DIR"


    mkdir "$HYPERION_DIR/build"
    cd "$HYPERION_DIR/build"
    cmake -DCMAKE_BUILD_TYPE=Release -DPLATFORM="rpi-pwm" -Wno-dev ..
    make -j $(nproc)


    But still the same ;(

  • Hi, changed the source code, like in post 2.


    and it starts now
    LibreELEC:~/.config # /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json
    Hyperion Ambilight Deamon (530)
    Version : master (GitHub-69f4b32/6445c35-1481143098
    Build Time: Dec 28 2016 10:36:21
    INFO: Selected configuration file: /storage/.config/hyperion.config.json
    HYPERION INFO: ColorTransform 'default' => [0; 599]
    HYPERION INFO: ColorCorrection 'default' => [0; 599]
    HYPERION INFO: ColorAdjustment 'default' => [0; 599]
    LEDDEVICE INFO: configuration:
    {
    "colorOrder" : "rgb",
    "leds" : 256,
    "name" : "MyHyperionConfig",
    "type" : "ws281x"
    }


    whiteAlgorithm ::
    HYPERION INFO: Json forward to 127.0.0.1:19446
    HYPERION INFO: Proto forward to 127.0.0.1:19447
    INFO: Creating linear smoothing
    HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    EFFECTENGINE INFO: 27 effects loaded from directory /storage/hyperion/effects
    EFFECTENGINE INFO: Initializing Python interpreter
    INFO: Hyperion started and initialised
    INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    started
    INFO: Json server created and started on port 19444
    PROTOCONNECTION INFO: Connecting to Hyperion: 127.0.0.1:19447
    INFO: Proto server created and started on port 19445
    DISPMANXGRABBER INFO: Display opened with resolution: 1920x1200
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    INFO: Frame grabber created and started
    BORDER SWITCH REQUIRED!!
    CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    EFFECTENGINE INFO: effect finished

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!