CEC in Kernel 4.14

Test and fix the Kernel 4.14 features
Post Reply
meaz
Posts: 37
Joined: Fri Apr 12, 2019 5:49 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 1 time
Contact:

CEC in Kernel 4.14

Unread post by meaz » Wed May 08, 2019 6:13 pm

Hello,

I'm a band new user of Odroid. I'm used to use Raspberry pi. There is something very important to me that I can't make work on my Odroid XU4:
CEC with Kodi.

I have installed debian stretch from here view topic.php?f=96&t=30552

Here is what I have done so far:
- /boot/boot.ini has CEC enabled: setenv cecenable "true"
- I have write permission to /dev/cec0
- my ODROID is connected to HDMI-1
- I have installed libcec4 from http://oph.mdrjr.net/meveric/ repo
- I also had to do this: ln -s /dev/cec0 /dev/CEC


When I do that, I have a message on Kodi "Pulse-eight connecting". The peripherals options in Settings/System/Input is now available.
However, Pulse-eight doesn't seem to be connected.

In Kodi log, i have:

Code: Select all

ERROR: CecLogMessage - Write: write failed !
WHen I do that:

Code: Select all

cec-client -l
I get:

Code: Select all

libCEC version: 4.0.1, compiled on Linux-4.14.107+ ... , features:
P8_USB, DRM, P8_detect, randr, Exynos
Found devices: 1

device:              1
com port:            Exynos
ERROR:   [             532]     SetLogicalAddresses: IOCTL
SetLogicalAddr failed !
vendor id:           0000
product id:          0000
firmware version:    0
type:                unknown

The repo maintener, Meveric, tried to help me out. He couldn't find a solution either. He set the cec device in different modes, like tv, playback, tuner, etc. but cec-compliance always fails to test the device.

So, I'm not sure if CEC is still working under Kernel 4.14 or not.
The same driver works fine under Kernel 3.10 so I'd say the real issue is Kernel 4.14 here.
Would you have a way to fix this in the Kernel?

Thanks a lot

meaz

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: CEC in Kernel 4.14

Unread post by OverSun » Wed May 08, 2019 6:40 pm

as a first possible step to debug this - turn off your tv, disconnect everything from it, leave only odroid in.
turn on tv, odroid board, and then try to test stuff.
that would eliminate other devices grabbing all available logical ports.

I find quite amusing design when there are only 4 logical ports for each device type (which is again 4 and only 2 of them really useful as input), and when device claims logical port TV cannot give it to any other device, so you can easily exhaust ports just connecting and disconnecting stuff while testing. few plug ins and outs and all logical ports are going to be taking until proper timeouts.
So yeah, try to start clean, and then connect stuff one by one if that helps.

User avatar
AreaScout
Posts: 1094
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 20 times
Been thanked: 60 times
Contact:

Re: CEC in Kernel 4.14

Unread post by AreaScout » Wed May 08, 2019 8:11 pm

Hello

You don't need a /dev/CEC that's the device naming with the old CEC API, since 4.10 a new API is active in the kernel which uses /dev/cec0 naming, if you have needed the old naming in order to get libecec barely working it only means that you are using an libcec which doesn't support the new API

To add libcec with new API please follow this guide https://wiki.odroid.com/odroid-xu4/soft ... rom_source

Also to be sure the old library is not used anymore copy the one from your compiled source folder over to the one in the system library folder with

Code: Select all

sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.1
RG

meaz
Posts: 37
Joined: Fri Apr 12, 2019 5:49 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: CEC in Kernel 4.14

Unread post by meaz » Mon May 13, 2019 1:00 am

Thanks a lot for your help.

Thanks to meveric, I now have the right libcec4 : viewtopic.php?f=96&t=30552&p=255688#p255688

It has work like 10 minutes. But now it doesn't anymore! I formatted to start from scratch again. But it still doesn't connect. I have this message from kodi : "Connection to Pulse-Eight CEC..." But it never connects.

I'm on HDMI1, I have unplugged everything else.

In Kodi log, i have:

Code: Select all

17:51:45.682 T:2519712496  NOTICE: Register - new cec device registered on cec->Linux: CEC Adapter (0000:0000)
17:51:45.683 T:2462589680   ERROR: CecLogMessage - CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=1
17:51:45.754 T:2976116720   ERROR: Previous line repeats 3 times.
17:51:45.754 T:2976116720  NOTICE: initialize done
17:51:45.754 T:2976116720  NOTICE: Running the application...
17:51:45.762 T:2976116720  NOTICE: starting zeroconf publishing
17:51:45.762 T:2976116720  NOTICE: starting upnp client
17:51:45.768 T:2353484528  NOTICE: ES: Starting UDP Event server on port 9777
17:51:45.768 T:2353484528  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
17:51:49.244 T:2462589680   ERROR: CecLogMessage - CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=1
17:51:49.448 T:2462589680   ERROR: Previous line repeats 1 times.
17:51:49.448 T:2462589680   ERROR: CecLogMessage - CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=22
If I do:

Code: Select all

cec-client -l
I get this:

Code: Select all

libCEC version: 4.0.4, compiled on Linux-4.14.107+ ... , features: P8_USB, DRM, P8_detect, randr, Exynos, Linux, AOCEC
Found devices: 1

device:              1
com port:            Linux
vendor id:           0000
product id:          0000
firmware version:    0
type:                Linux
I don't understand why it doesn't work, especially why as it worked some minutes!

User avatar
AreaScout
Posts: 1094
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 20 times
Been thanked: 60 times
Contact:

Re: CEC in Kernel 4.14

Unread post by AreaScout » Mon May 13, 2019 9:08 pm

    Please do a sudo apt install mlocate followed by a sudo updatedb and then please locate all libcec with locate libcec and post the output, I wanna be sure if this is the only libcec library around on the system

    RG

    meaz
    Posts: 37
    Joined: Fri Apr 12, 2019 5:49 pm
    languages_spoken: english
    ODROIDs: XU4
    Has thanked: 0
    Been thanked: 1 time
    Contact:

    Re: CEC in Kernel 4.14

    Unread post by meaz » Mon May 13, 2019 10:43 pm

    Here is what I get: with locate libcec

    Code: Select all

    /usr/lib/arm-linux-gnueabihf/libcec.so.4
    /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4
    /usr/share/doc/libcec4
    /usr/share/doc/libcec4/changelog.Debian.gz
    /usr/share/doc/libcec4/changelog.gz
    /usr/share/doc/libcec4/copyright
    /var/cache/apt/archives/libcec4_4.0.4+dfsg1-2~bpo9_armhf.deb
    /var/lib/dpkg/info/libcec4:armhf.list
    /var/lib/dpkg/info/libcec4:armhf.md5sums
    /var/lib/dpkg/info/libcec4:armhf.shlibs
    /var/lib/dpkg/info/libcec4:armhf.symbols
    /var/lib/dpkg/info/libcec4:armhf.triggers
    

    User avatar
    AreaScout
    Posts: 1094
    Joined: Sun Jul 07, 2013 3:05 am
    languages_spoken: german, english
    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
    N1, Go, VU5A, Show2, CloudShell2,
    H2, N2, VU7A, VuShell
    Has thanked: 20 times
    Been thanked: 60 times
    Contact:

    Re: CEC in Kernel 4.14

    Unread post by AreaScout » Wed May 15, 2019 11:20 pm

      Sorry for the late, here some things you can check before you build it again for yourself

      check if the permissions of the /dev/cec0 device are ok

      echo 'KERNEL=="cec0", MODE="0666", GROUP="video"' > /etc/udev/rules.d/51-cec0.rules

      issue a udevadm control --reload-rules && udevadm trigger to reload the rules

      If your TV has more then one HDMI ports, try it only on HDMI 1, sometimes only the first HDMI port is able to do cec i.e my LG TV

      If all that doesn't help, try to build it for your self <-- last panic solution

      Code: Select all

      apt-get install git cmake libudev-dev libxrandr-dev python-dev swig
      
      git clone https://github.com/Pulse-Eight/libcec.git
      cd libcec
      wget -O libcec.patch https://github.com/Kwiboo/libcec/commit/48255b7d4e1cba1050b8abfbd03be37c0737e832.patch
      git apply libcec.patch
      mkdir build
      cd build
      cmake -DHAVE_LINUX_API=1 ..
      make -j7
      
      after building was finished, copy the library over to /usr/lib/arm-linux-gnueabihf with

      Code: Select all

      sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4
      
      RG

      meaz
      Posts: 37
      Joined: Fri Apr 12, 2019 5:49 pm
      languages_spoken: english
      ODROIDs: XU4
      Has thanked: 0
      Been thanked: 1 time
      Contact:

      Re: CEC in Kernel 4.14

      Unread post by meaz » Thu May 16, 2019 10:52 pm

      Hi AreaScout,

      don't worry, I know that you guys have plenty of things to do, it is already so nie to take of your time to help us out.

      I have checked the permissions of the /dev/cec0 device and they are ok (KERNEL=="cec0", MODE="0666", GROUP="video" in /etc/udev/rules.d/51-cec0.rules.
      I have pluged the XU4 on HDMI 1.
      But it still doesn't work.

      So, I have tried to build it for myself.

      All this part is fine:

      Code: Select all

      apt-get install git cmake libudev-dev libxrandr-dev python-dev swig
      
      git clone https://github.com/Pulse-Eight/libcec.git
      cd libcec
      wget -O libcec.patch https://github.com/Kwiboo/libcec/commit/48255b7d4e1cba1050b8abfbd03be37c0737e832.patch
      git apply libcec.patch
      mkdir build
      cd build
      But

      Code: Select all

      cmake -DHAVE_LINUX_API=1 ..
      gives me that:

      Code: Select all

      -- The C compiler identification is GNU 6.3.0
      -- The CXX compiler identification is GNU 6.3.0
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Check for working CXX compiler: /usr/bin/c++
      -- Check for working CXX compiler: /usr/bin/c++ -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Performing Test SUPPORTS_CXX11
      -- Performing Test SUPPORTS_CXX11 - Success
      -- Looking for pthread.h
      -- Looking for pthread.h - found
      -- Looking for pthread_create
      -- Looking for pthread_create - not found
      -- Looking for pthread_create in pthreads
      -- Looking for pthread_create in pthreads - not found
      -- Looking for pthread_create in pthread
      -- Looking for pthread_create in pthread - found
      -- Found Threads: TRUE  
      -- Looking for initscr in curses
      -- Looking for initscr in curses - not found
      -- Looking for dlopen in dl
      -- Looking for dlopen in dl - found
      -- Looking for clock_gettime in rt
      -- Looking for clock_gettime in rt - found
      -- Found PythonLibs: /usr/lib/arm-linux-gnueabihf/libpython2.7.so (found version "2.7.13") 
      -- git found: libcec-4.0.4+1-ba9b538~dirty
      -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
      -- Looking for include file sys/file.h
      -- Looking for include file sys/file.h - found
      -- Looking for flock
      -- Looking for flock - found
      -- Checking for module 'udev'
      --   Found udev, version 232
      -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h
      -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h - found
      -- Looking for XRRGetScreenResources in Xrandr
      -- Looking for XRRGetScreenResources in Xrandr - found
      -- Looking for bcm_host_init in bcm_host
      -- Looking for bcm_host_init in bcm_host - not found
      -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h
      -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found
      -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.10") 
      -- Configured features:
      -- Pulse-Eight CEC Adapter:                yes
      -- Pulse-Eight CEC Adapter detection:      yes
      -- xrandr support:                         yes
      -- Raspberry Pi support:                   no
      -- TDA995x support:                        no
      -- Exynos support:                         no
      -- DRM support:                            yes
      -- Linux support:                          yes
      -- AOCEC support:                          no
      -- Python support:                         version 2.7.13 (2.7)
      -- lib info: git revision: libcec-4.0.4+1-ba9b538~dirty, compiled on jeudi 16 mai 2019, 13:44:44 (UTC+0000) by root@myodroid on Linux 4.14.111+ (armv7l), features: P8_USB, DRM, P8_detect, randr, Linux
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /root/libcec/build
      and then I have an error with

      Code: Select all

      make -j7
      :

      Code: Select all

      Scanning dependencies of target cec
      [  7%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCEC.cpp.o
      [  7%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECProcessor.cpp.o
      [  7%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECClient.cpp.o
      [  9%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCECC.cpp.o
      [ 12%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterCommunication.cpp.o
      [ 14%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/AdapterFactory.cpp.o
      [ 17%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterDetection.cpp.o
      /root/libcec/src/libcec/adapter/Linux/LinuxCECAdapterCommunication.cpp:46:23: fatal error: linux/cec.h: Aucun fichier ou dossier de ce type
       #include <linux/cec.h>
                             ^
      compilation terminated.
      src/libcec/CMakeFiles/cec.dir/build.make:182 : la recette pour la cible « src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterCommunication.cpp.o » a échouée
      make[2]: *** [src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterCommunication.cpp.o] Erreur 1
      make[2]: *** Attente des tâches non terminées....
      CMakeFiles/Makefile2:252 : la recette pour la cible « src/libcec/CMakeFiles/cec.dir/all » a échouée
      make[1]: *** [src/libcec/CMakeFiles/cec.dir/all] Erreur 2
      Makefile:127 : la recette pour la cible « all » a échouée
      make: *** [all] Erreur 2
      Sorry it is in French, I'm sure you get the idea, but if you need me to translate everything let me know.

      Thanks for your help

      PS: I had to

      Code: Select all

      apt install pkg-config
      because I also ha the error message:

      Code: Select all

      missing: PKG_CONFIG_EXECUTABLE

      User avatar
      AreaScout
      Posts: 1094
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 20 times
      Been thanked: 60 times
      Contact:

      Re: CEC in Kernel 4.14

      Unread post by AreaScout » Thu May 16, 2019 11:24 pm

      Hello

      Whenever a compiling task notifies you that a file is missing search with apt-file which package provides this file, I did a quick search and it told me that linux-libc-dev is needed -> I didn't had to install it separately

      so sudo apt install linux-libc-dev should fix that error

      and

      sudo apt-file search cec.h told me the package name, that was for debian but I guess it should be the same on Ubuntu

      RG

      meaz
      Posts: 37
      Joined: Fri Apr 12, 2019 5:49 pm
      languages_spoken: english
      ODROIDs: XU4
      Has thanked: 0
      Been thanked: 1 time
      Contact:

      Re: CEC in Kernel 4.14

      Unread post by meaz » Sat May 18, 2019 1:16 am

      Hello AreaScout

      Code: Select all

      apt-file search cec.h

      gives me this:

      Code: Select all

      gnuift-doc: /usr/share/doc/gnuift-doc/html/dir_87bc324e7a365d2e9a08a5a82f54bcec.html
      libcec-dev: /usr/include/libcec/cec.h
      libmediainfo-doc: /usr/share/doc/libmediainfo-doc/Doc/dir_04ac3ca04e7df05c28b97e8a54b78cec.html
      libstdc++-6-doc: /usr/share/doc/gcc-6-base/libstdc++/user/dir_e5ba9bcada37e869022a9c0b687a3cec.html
      linux-doc-4.19: /usr/share/doc/linux-doc-4.19/html/media/cec-drivers/pulse8-cec.html
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/drm/dw/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/drm/sun4i/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/omap4/dss/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/usb/pulse8/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/usb/rainshadow/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/video/vivid/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/drm/dw/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/drm/sun4i/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/omap4/dss/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/usb/pulse8/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/usb/rainshadow/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/video/vivid/cec.h
      linux-headers-4.19.0-0.bpo.4-common: /usr/src/linux-headers-4.19.0-0.bpo.4-common/include/media/cec.h
      linux-headers-4.19.0-0.bpo.4-common: /usr/src/linux-headers-4.19.0-0.bpo.4-common/include/uapi/linux/cec.h
      linux-headers-4.19.0-0.bpo.4-common-rt: /usr/src/linux-headers-4.19.0-0.bpo.4-common-rt/include/media/cec.h
      linux-headers-4.19.0-0.bpo.4-common-rt: /usr/src/linux-headers-4.19.0-0.bpo.4-common-rt/include/uapi/linux/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/drm/dw/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/drm/sun4i/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/omap4/dss/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/usb/pulse8/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/usb/rainshadow/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/video/vivid/cec.h
      linux-headers-4.9.0-4-common-grsec: /usr/src/linux-headers-4.9.0-4-common-grsec/include/linux/cec.h
      linux-headers-4.9.0-4-common-grsec: /usr/src/linux-headers-4.9.0-4-common-grsec/include/media/cec.h
      linux-headers-4.9.0-8-common: /usr/src/linux-headers-4.9.0-8-common/include/linux/cec.h
      linux-headers-4.9.0-8-common: /usr/src/linux-headers-4.9.0-8-common/include/media/cec.h
      linux-headers-4.9.0-8-common-rt: /usr/src/linux-headers-4.9.0-8-common-rt/include/linux/cec.h
      linux-headers-4.9.0-8-common-rt: /usr/src/linux-headers-4.9.0-8-common-rt/include/media/cec.h
      linux-headers-4.9.0-9-common: /usr/src/linux-headers-4.9.0-9-common/include/linux/cec.h
      linux-headers-4.9.0-9-common: /usr/src/linux-headers-4.9.0-9-common/include/media/cec.h
      linux-headers-4.9.0-9-common-rt: /usr/src/linux-headers-4.9.0-9-common-rt/include/linux/cec.h
      linux-headers-4.9.0-9-common-rt: /usr/src/linux-headers-4.9.0-9-common-rt/include/media/cec.h
      linux-libc-dev: /usr/include/linux/cec.h
      
      I have installed

      Code: Select all

      linux-libc-dev
      and

      Code: Select all

      libcec-dev
      But I still have the exact same error:

      Code: Select all

      /root/libcec/src/libcec/adapter/Linux/LinuxCECAdapterCommunication.cpp:46:23: fatal error: linux/cec.h: Aucun fichier ou dossier de ce type
       #include <linux/cec.h>
                             ^
      

      User avatar
      AreaScout
      Posts: 1094
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 20 times
      Been thanked: 60 times
      Contact:

      Re: CEC in Kernel 4.14

      Unread post by AreaScout » Sat May 18, 2019 2:49 am

        Hu ? ... delete your build folder, recreate it, cd into it, and issue the cmake command again followed by a make

        RG

        User avatar
        meveric
        Posts: 10528
        Joined: Mon Feb 25, 2013 2:41 pm
        languages_spoken: german, english
        ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
        Has thanked: 17 times
        Been thanked: 149 times
        Contact:

        Re: CEC in Kernel 4.14

        Unread post by meveric » Sat May 18, 2019 5:43 am

        meaz wrote:
        Sat May 18, 2019 1:16 am
        I have installed

        Code: Select all

        linux-libc-dev

        Code: Select all

        apt-get install -t stretch linux-libc-dev
        Check that you have version 4.14 or higher installed.. the changes only exist in Kernel 4.10 or higher but the default linux-libc-dev from Debian is for Kernel 3.16.
        Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
        Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
        If you want to add my repository to your image read my HOWTO integrate my repo into your image.

        meaz
        Posts: 37
        Joined: Fri Apr 12, 2019 5:49 pm
        languages_spoken: english
        ODROIDs: XU4
        Has thanked: 0
        Been thanked: 1 time
        Contact:

        Re: CEC in Kernel 4.14

        Unread post by meaz » Sat May 18, 2019 1:15 pm

        Thanks meveric, that was the problem. Now I am able to make it.

        However, cec still doesn't work. I deleted build, recreated it. Followed the instructions. Rebooted. Cec is still not connecting. I've also followed this https://wiki.odroid.com/odroid-xu4/soft ... rom_source from its very beginning. THe only problem I had was with

        Code: Select all

        sudo apt remove libcec4
        sudo apt install cec-utils
        because apt install cec-utils wants to also install libcec4
        I did it anyway and then

        Code: Select all

        sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4
        So I had also

        Code: Select all

        /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.1
        wich I deleted it.

        Code: Select all

        ls -l /usr/lib/arm-linux-gnueabihf/libcec*
        gives me this:

        Code: Select all

        lrwxrwxrwx 1 root root      15 mai   18 06:09 /usr/lib/arm-linux-gnueabihf/libcec.so.4 -> libcec.so.4.0.4
        -rwxr-xr-x 1 root root 1060056 mai   18 06:10 /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4
        
        I rebooted.

        But CEC still not connects...

        User avatar
        meveric
        Posts: 10528
        Joined: Mon Feb 25, 2013 2:41 pm
        languages_spoken: german, english
        ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
        Has thanked: 17 times
        Been thanked: 149 times
        Contact:

        Re: CEC in Kernel 4.14

        Unread post by meveric » Sat May 18, 2019 4:17 pm

        meaz wrote:
        Sat May 18, 2019 1:15 pm
        Thanks meveric, that was the problem. Now I am able to make it.

        However, cec still doesn't work. I deleted build, recreated it. Followed the instructions. Rebooted. Cec is still not connecting.
        I would have been surprised if that would have worked, as it's the same as in my libcec package, therefore it would be very strange if you do the same as I did and it works, but the packages that I created the same way do not ;)

        After all, it WAS working at the beginning... so the drivers from my repo are fine. I suspect something else changed.
        Maybe HDMI cable is not CEC capable, TV is not working correctly, or something like that... the drivers are fine.. and rebuilding everything just did mess up your image for no real good reason, except for knowing it doesn't make any difference.
        Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
        Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
        If you want to add my repository to your image read my HOWTO integrate my repo into your image.

        User avatar
        AreaScout
        Posts: 1094
        Joined: Sun Jul 07, 2013 3:05 am
        languages_spoken: german, english
        ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
        N1, Go, VU5A, Show2, CloudShell2,
        H2, N2, VU7A, VuShell
        Has thanked: 20 times
        Been thanked: 60 times
        Contact:

        Re: CEC in Kernel 4.14

        Unread post by AreaScout » Sat May 18, 2019 6:11 pm

          Yes, like meveric pointed out already, it's very unlikely now that it's a software or config problem, to compile libcec again was the last panic option from a software point of view, if something doesn't work you have to go to the process as unlikely it is. Contact your local TV manufacturer branch and ask if your TV model is really capable of doing CEC, check cable, and lastly exchange your XU4

          RG

          meaz
          Posts: 37
          Joined: Fri Apr 12, 2019 5:49 pm
          languages_spoken: english
          ODROIDs: XU4
          Has thanked: 0
          Been thanked: 1 time
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by meaz » Sat May 18, 2019 10:36 pm

          Alright thanks to both of you.

          It is for sure not coming from my TV nor from my HDMI cable either, because I have a Raspberry PI 2 with kodi that I use with the same cable and same tv and that works just fine.
          Perhaps it is coming from the XU4, but it is brand new.

          Thanks anyway, I understand there is nothing else to try!

          meaz

          meaz
          Posts: 37
          Joined: Fri Apr 12, 2019 5:49 pm
          languages_spoken: english
          ODROIDs: XU4
          Has thanked: 0
          Been thanked: 1 time
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by meaz » Thu May 30, 2019 5:46 am

          It is me again :)

          I've tried a different image for fun on my odroid XU4, and the CEC worked ! It was this one "ODROID GameStation Turbo with Kodi for XU3/XU4" that I found here: viewtopic.php?f=98&t=7322
          So, I'm almost sure there is something I'm not doing well...

          Therefore, I started fresh. I've followed your guide here Areascout: viewtopic.php?f=98&t=34149
          Then, I tried again to compile libcec, following one of the link you provided: viewtopic.php?f=98&t=32173#p235249.

          Everything seems fine until this part:

          Code: Select all

          cmake -DHAVE_LINUX_API=1 ..
          I get this:

          Code: Select all

          ...
          -- Looking for bcm_host_init in bcm_host
          -- Looking for bcm_host_init in bcm_host - not found
          -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h
          -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found
          -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.12") 
          CMake Deprecation Warning at /usr/share/cmake-3.10/Modules/UseSWIG.cmake:231 (message):
            SWIG_ADD_MODULE is deprecated.  Use SWIG_ADD_LIBRARY instead.
          Call Stack (most recent call first):
            src/libcec/cmake/CheckPlatformSupport.cmake:202 (swig_add_module)
            src/libcec/CMakeLists.txt:136 (include)
          
          
          -- Configured features:
          -- Pulse-Eight CEC Adapter:                yes
          -- Pulse-Eight CEC Adapter detection:      yes
          -- xrandr support:                         yes
          -- Raspberry Pi support:                   no
          -- TDA995x support:                        no
          -- Exynos support:                         no
          -- DRM support:                            yes
          -- Linux support:                          yes
          -- AOCEC support:                          no
          -- Python support:                         version 2.7.15rc1 (2.7.15rc1)
          -- lib info: git revision: libcec-4.0.4+1-ba9b538~dirty, compiled on Wed May 29 20:07:24 UTC 2019 by me@odroid on Linux 4.14.120-160 (armv7l), features: P8_USB, DRM, P8_detect, randr, Linux
          ...
          Would those

          Code: Select all

          bcm_host - not found
          and

          Code: Select all

          comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found 
          be a problem? And if yes, how can I fix that? I wasn't able to find how on the web.

          Same question with

          Code: Select all

          SWIG_ADD_MODULE is deprecated.  Use SWIG_ADD_LIBRARY instead.
          Also, shouldn't

          Code: Select all

          -- Exynos support: no
          give YES?


          Then, I have a question about this command

          Code: Select all

          make -j 7
          Indeed, on this page https://github.com/Pulse-Eight/libcec/b ... E.linux.md it is said to use

          Code: Select all

          make -j4
          Here https://wiki.odroid.com/odroid-xu4/soft ... rom_source it is said to use

          Code: Select all

          make -j 8
          And here viewtopic.php?f=147&t=33860&p=254668&hilit=cec#p254668 it is said to use

          Code: Select all

          make -j 7
          Which one is the right one?


          Another concern: sometime, it is said to use

          Code: Select all

          sudo make install
          sudo ldconfig
          sometime to use

          Code: Select all

          sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4


          Which one is the best?


          At last, I get

          Code: Select all

          ls -l /usr/lib/arm-linux-gnueabihf/libce*
          lrwxrwxrwx 1 root root     15 Feb  7 16:35 /usr/lib/arm-linux-gnueabihf/libcec.so.4 -> libcec.so.4.0.2
          -rw-r--r-- 1 root root 406948 Feb  7 16:35 /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.2
          and i the build folder I get:

          Code: Select all

          ls -l src/libcec/libce*
          lrwxrwxrwx 1 odroid odroid      11 May 29 20:18 src/libcec/libcec.so -> libcec.so.4
          lrwxrwxrwx 1 odroid odroid      15 May 29 20:18 src/libcec/libcec.so.4 -> libcec.so.4.0.4
          -rwxrwxr-x 1 odroid odroid 1065052 May 29 20:18 src/libcec/libcec.so.4.0.4
          Areascut, you wrote on the second post of this message:
          Also to be sure the old library is not used anymore copy the one from your compiled source folder over to the one in the system library folder with

          Code: Select all

          sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.1
          So do I need to simply do this:

          Code: Select all

          sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.2
          ? Why not libcec.so.4.0.4 as I can see in src/libcec/?

          THat is quite a long message, I hope it will be help other newbies too :)

          User avatar
          AreaScout
          Posts: 1094
          Joined: Sun Jul 07, 2013 3:05 am
          languages_spoken: german, english
          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
          N1, Go, VU5A, Show2, CloudShell2,
          H2, N2, VU7A, VuShell
          Has thanked: 20 times
          Been thanked: 60 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by AreaScout » Thu May 30, 2019 7:05 pm

          meaz wrote:
          Thu May 30, 2019 5:46 am
          -- Configured features:
          -- Pulse-Eight CEC Adapter: yes
          -- Pulse-Eight CEC Adapter detection: yes
          -- xrandr support: yes
          -- Raspberry Pi support: no
          -- TDA995x support: no
          -- Exynos support: no
          -- DRM support: yes
          -- Linux support: yes
          -- AOCEC support: no
          -- Python support: version 2.7.15rc1 (2.7.15rc1)
          -- lib info: git revision: libcec-4.0.4+1-ba9b538~dirty, compiled on Wed May 29 20:07:24 UTC 2019 by me@odroid on Linux 4.14.120-160 (armv7l), features: P8_USB, DRM, P8_detect, randr, Linux
          ...[/code]

          Would those

          Code: Select all

          bcm_host - not found
          and

          Code: Select all

          comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found 
          be a problem? And if yes, how can I fix that? I wasn't able to find how on the web.

          Same question with

          Code: Select all

          SWIG_ADD_MODULE is deprecated.  Use SWIG_ADD_LIBRARY instead.
          Also, shouldn't

          Code: Select all

          -- Exynos support: no
          give YES?
          Hi again :) Forget the tmdlHdmiCEC and SWIG_ADD_MODULE is deprecated message, that's just cmake checking things which board and software you are running, also Exynos support has to be no because with the new CEC API after kernel >= 4.10 a new tiny layer on the kernel was introduced which interacts with board specific layers like Exynos or RockChip, so all this is done in kernel now and you have a unified CEC API which should be easier to access with libCEC ;)
          meaz wrote:
          Thu May 30, 2019 5:46 am
          Then, I have a question about this command

          Code: Select all

          make -j 7
          Indeed, on this page https://github.com/Pulse-Eight/libcec/b ... E.linux.md it is said to use

          Code: Select all

          make -j4
          Here https://wiki.odroid.com/odroid-xu4/soft ... rom_source it is said to use

          Code: Select all

          make -j 8
          And here viewtopic.php?f=147&t=33860&p=254668&hilit=cec#p254668 it is said to use

          Code: Select all

          make -j 7
          Which one is the right one?
          That's just a switch on how many cores the compiling threads should be divided, on XU4 I personally use seven -j7 because with all eight cores the board can become extremely busy and I like to go on working with the board on compiling i.e with a second ssh connection
          meaz wrote:
          Thu May 30, 2019 5:46 am
          Another concern: sometime, it is said to use

          Code: Select all

          sudo make install
          sudo ldconfig
          sometime to use

          Code: Select all

          sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4


          Which one is the best?
          In that particular situation I was going to give you the solution without install, because if you compile things for yourself the library would be installed in /usr/local/lib and you will end up with two libraries, the old one still in /usr/lib/arm-linux-gnueabihf/, uninstall libcec4 with sudo apt-get remove libcec4 would uninstall also Kodi because libcec4 is a dependency ;)
          meaz wrote:
          Thu May 30, 2019 5:46 am
          So do I need to simply do this:

          Code: Select all

          sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.2
          ? Why not libcec.so.4.0.4 as I can see in src/libcec/?

          THat is quite a long message, I hope it will be help other newbies too :)
          Yes exactly, just look which version of libcec4 is installed with ls -l /usr/lib/arm-linux-gnueabihf/libce* and copy overwrite your new binary from src/libcec/libcec.so to the target location, libcec.so is a symbolic link and points to libcec.so.4.0.2 on your system so I think a sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so would do the trick also

          RG

          User avatar
          meveric
          Posts: 10528
          Joined: Mon Feb 25, 2013 2:41 pm
          languages_spoken: german, english
          ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
          Has thanked: 17 times
          Been thanked: 149 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by meveric » Thu May 30, 2019 8:43 pm

          meaz wrote:
          Thu May 30, 2019 5:46 am
          It is me again :)

          I've tried a different image for fun on my odroid XU4, and the CEC worked ! It was this one "ODROID GameStation Turbo with Kodi for XU3/XU4" that I found here: viewtopic.php?f=98&t=7322
          So, I'm almost sure there is something I'm not doing well...
          The OGST image uses Kernel 3.10 not 4.14 and therefore has a different CEC driver.
          Also I think the base image still uses Kodi 16 and with that also uses CEC3 not CEC4 so lots of differences with your CEC and Kernel 4.14 issue.
          AreaScout wrote:
          Thu May 30, 2019 7:05 pm
          also Exynos support has to be no because with the new CEC API after kernel >= 4.10 a new tiny layer on the kernel was introduced which interacts with board specific layers like Exynos or RockChip, so all this is done in kernel now and you have a unified CEC API which should be easier to access with libCEC ;)
          Actually that's not true.
          Exynos CAN be yes, in fact it WILL be yes, if you add -DHAVE_EXYNOS_API=1 which is not set by default.
          It's also not an issue to have Exynos and Linux API at the same time, since Exynos searches for /dev/CEC while Linux API uses /dev/cec0 so they don't interfere.
          AreaScout wrote:
          Thu May 30, 2019 7:05 pm
          In that particular situation I was going to give you the solution without install, because if you compile things for yourself the library would be installed in /usr/local/lib and you will end up with two libraries, the old one still in /usr/lib/arm-linux-gnueabihf/, uninstall libcec4 with sudo apt-get remove libcec4 would uninstall also Kodi because libcec4 is a dependency ;)
          Also not true, there is no dependency on libcec4 for Kodi, as CEC is an OPTIONAL component for Kodi, and not even required to compile Kodi.
          Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
          Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
          If you want to add my repository to your image read my HOWTO integrate my repo into your image.

          User avatar
          AreaScout
          Posts: 1094
          Joined: Sun Jul 07, 2013 3:05 am
          languages_spoken: german, english
          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
          N1, Go, VU5A, Show2, CloudShell2,
          H2, N2, VU7A, VuShell
          Has thanked: 20 times
          Been thanked: 60 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by AreaScout » Thu May 30, 2019 9:44 pm

          meveric wrote:
          Thu May 30, 2019 8:43 pm
          Actually that's not true.
          Exynos CAN be yes, in fact it WILL be yes, if you add -DHAVE_EXYNOS_API=1 which is not set by default.
          It's also not an issue to have Exynos and Linux API at the same time, since Exynos searches for /dev/CEC while Linux API uses /dev/cec0 so they don't interfere.
          Well I don't compile old API's in if I don't use it, maybe that's different for you because you provide the package in your repository for both 3.10 and 4.14
          meveric wrote:
          Thu May 30, 2019 8:43 pm
          AreaScout wrote:
          Thu May 30, 2019 7:05 pm
          In that particular situation I was going to give you the solution without install, because if you compile things for yourself the library would be installed in /usr/local/lib and you will end up with two libraries, the old one still in /usr/lib/arm-linux-gnueabihf/, uninstall libcec4 with sudo apt-get remove libcec4 would uninstall also Kodi because libcec4 is a dependency ;)
          Also not true, there is no dependency on libcec4 for Kodi, as CEC is an OPTIONAL component for Kodi, and not even required to compile Kodi.
          Well my GBM version of Kodi DOES have dependency for libcec4, that's why I was telling it

          RG

          meaz
          Posts: 37
          Joined: Fri Apr 12, 2019 5:49 pm
          languages_spoken: english
          ODROIDs: XU4
          Has thanked: 0
          Been thanked: 1 time
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by meaz » Mon Jun 03, 2019 8:27 pm

          Thanks a lot for your answers.

          It is still not working. The issue is probably coming from the build process as I really followed carefully all the steps as explained above.

          Code: Select all

          cmake -DHAVE_LINUX_API=1 ..
          gives me that:

          Code: Select all

          -- The C compiler identification is GNU 7.4.0
          -- The CXX compiler identification is GNU 7.4.0
          -- Check for working C compiler: /usr/bin/cc
          -- Check for working C compiler: /usr/bin/cc -- works
          -- Detecting C compiler ABI info
          -- Detecting C compiler ABI info - done
          -- Detecting C compile features
          -- Detecting C compile features - done
          -- Check for working CXX compiler: /usr/bin/c++
          -- Check for working CXX compiler: /usr/bin/c++ -- works
          -- Detecting CXX compiler ABI info
          -- Detecting CXX compiler ABI info - done
          -- Detecting CXX compile features
          -- Detecting CXX compile features - done
          -- Performing Test SUPPORTS_CXX11
          -- Performing Test SUPPORTS_CXX11 - Success
          -- Looking for pthread.h
          -- Looking for pthread.h - found
          -- Looking for pthread_create
          -- Looking for pthread_create - not found
          -- Looking for pthread_create in pthreads
          -- Looking for pthread_create in pthreads - not found
          -- Looking for pthread_create in pthread
          -- Looking for pthread_create in pthread - found
          -- Found Threads: TRUE  
          -- Looking for initscr in curses
          -- Looking for initscr in curses - found
          -- Looking for dlopen in dl
          -- Looking for dlopen in dl - found
          -- Looking for clock_gettime in rt
          -- Looking for clock_gettime in rt - found
          -- Found PythonLibs: /usr/lib/arm-linux-gnueabihf/libpython2.7.so (found version "2.7.15rc1") 
          -- git found: libcec-4.0.4+1-ba9b538~dirty
          -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
          -- Looking for include file sys/file.h
          -- Looking for include file sys/file.h - found
          -- Looking for flock
          -- Looking for flock - found
          -- Checking for module 'udev'
          --   Found udev, version 237
          -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h
          -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h - found
          -- Looking for XRRGetScreenResources in Xrandr
          -- Looking for XRRGetScreenResources in Xrandr - found
          -- Looking for bcm_host_init in bcm_host
          -- Looking for bcm_host_init in bcm_host - not found
          -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h
          -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found
          -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.12") 
          CMake Deprecation Warning at /usr/share/cmake-3.10/Modules/UseSWIG.cmake:231 (message):
            SWIG_ADD_MODULE is deprecated.  Use SWIG_ADD_LIBRARY instead.
          Call Stack (most recent call first):
            src/libcec/cmake/CheckPlatformSupport.cmake:202 (swig_add_module)
            src/libcec/CMakeLists.txt:136 (include)
          
          
          -- Configured features:
          -- Pulse-Eight CEC Adapter:                yes
          -- Pulse-Eight CEC Adapter detection:      yes
          -- xrandr support:                         yes
          -- Raspberry Pi support:                   no
          -- TDA995x support:                        no
          -- Exynos support:                         no
          -- DRM support:                            yes
          -- Linux support:                          yes
          -- AOCEC support:                          no
          -- Python support:                         version 2.7.15rc1 (2.7.15rc1)
          -- lib info: git revision: libcec-4.0.4+1-ba9b538~dirty, compiled on Mon Jun  3 11:14:23 UTC 2019 by odroid@odroid on Linux 4.14.120-160 (armv7l), features: P8_USB, DRM, P8_detect, randr, Linux
          -- Configuring done
          -- Generating done
          -- Build files have been written to: /home/odroid/libcec/build
          Areascout, you said that should not pay attention to the tmdlHdmiCEC and SWIG_ADD_MODULE is deprecated messages.
          What about those:

          Code: Select all

          -- Looking for pthread_create
          -- Looking for pthread_create - not found
          -- Looking for pthread_create in pthreads
          -- Looking for pthread_create in pthreads - not found
          
          and

          Code: Select all

          -- Looking for bcm_host_init in bcm_host
          -- Looking for bcm_host_init in bcm_host - not found
          Also, here is what I get with

          Code: Select all

          make -j7
          :

          Code: Select all

          Scanning dependencies of target cec
          [  2%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECClient.cpp.o
          [  4%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterDetection.cpp.o
          [  7%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECProcessor.cpp.o
          [  9%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/AdapterFactory.cpp.o
          [ 16%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCECC.cpp.o
          [ 16%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCEC.cpp.o
          [ 16%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterCommunication.cpp.o
          
          [ 19%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterMessage.cpp.o
          [ 21%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterCommands.cpp.o
          [ 23%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp.o
          [ 26%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp.o
          [ 28%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterDetection.cpp.o
          [ 30%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECAudioSystem.cpp.o
          [ 33%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECBusDevice.cpp.o
          [ 35%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECDeviceMap.cpp.o
          [ 38%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECPlaybackDevice.cpp.o
          In file included from /usr/include/c++/7/vector:64:0,
                           from /usr/include/c++/7/queue:61,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_vector.h: In member function ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator<long long unsigned int>]’:
          /usr/include/c++/7/bits/stl_vector.h:948:21: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >’ changed in GCC 7.1
              _M_realloc_insert(end(), __x);
              ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
          In file included from /usr/include/c++/7/vector:69:0,
                           from /usr/include/c++/7/queue:61,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator<long long unsigned int>]’:
          /usr/include/c++/7/bits/vector.tcc:394:7: note: parameter passing for argument of type ‘std::vector<long long unsigned int>::iterator {aka __gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >}’ changed in GCC 7.1
                 vector<_Tp, _Alloc>::
                 ^~~~~~~~~~~~~~~~~~~
          In file included from /usr/include/c++/7/map:60:0,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:39,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_tree.h: In member function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const _Key&) [with _Key = long long unsigned int; _Val = std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>; _KeyOfValue = std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >; _Compare = std::less<long long unsigned int>; _Alloc = std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >]’:
          /usr/include/c++/7/bits/stl_tree.h:2502:19: note: parameter passing for argument of type ‘std::_Rb_tree<long long unsigned int, std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>, std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >, std::less<long long unsigned int>, std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >}’ changed in GCC 7.1
                 _M_erase_aux(__p.first, __p.second);
                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
          In file included from /usr/include/c++/7/deque:63:0,
                           from /usr/include/c++/7/queue:60,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = long long unsigned int*; _ForwardIterator = long long unsigned int*; _Allocator = std::allocator<long long unsigned int>]’:
          /usr/include/c++/7/bits/stl_uninitialized.h:312:69: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
             _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(__last), __result, __alloc);
                                                                               ^
          In file included from /usr/include/c++/7/map:60:0,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:39,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_tree.h: In member function ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = long long unsigned int; _Val = std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>; _KeyOfValue = std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >; _Compare = std::less<long long unsigned int>; _Alloc = std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >]’:
          /usr/include/c++/7/bits/stl_tree.h:2484:5: note: parameter passing for argument of type ‘std::_Rb_tree<long long unsigned int, std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>, std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >, std::less<long long unsigned int>, std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >}’ changed in GCC 7.1
               _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /usr/include/c++/7/bits/stl_tree.h:2484:5: note: parameter passing for argument of type ‘std::_Rb_tree<long long unsigned int, std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>, std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >, std::less<long long unsigned int>, std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >}’ changed in GCC 7.1
          /usr/include/c++/7/bits/stl_tree.h:2491:16: note: parameter passing for argument of type ‘std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >’ changed in GCC 7.1
              _M_erase_aux(__first++);
              ~~~~~~~~~~~~^~~~~~~~~~~
          [ 40%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECRecordingDevice.cpp.o
          In file included from /usr/include/c++/7/deque:63:0,
                           from /usr/include/c++/7/queue:60,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator<long long unsigned int*>; _ForwardIterator = long long unsigned int*; _Tp = long long unsigned int]’:
          /usr/include/c++/7/bits/stl_uninitialized.h:287:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               __uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
               ^~~~~~~~~~~~~~~~~~~~~~
          /usr/include/c++/7/bits/stl_uninitialized.h:287:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
          /usr/include/c++/7/bits/stl_uninitialized.h:289:63: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               { return std::uninitialized_copy(__first, __last, __result); }
                                                                         ^
          In file included from /usr/include/c++/7/map:60:0,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:39,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_tree.h: In member function ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = long long unsigned int; _Val = std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>; _KeyOfValue = std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >; _Compare = std::less<long long unsigned int>; _Alloc = std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >]’:
          /usr/include/c++/7/bits/stl_tree.h:2470:5: note: parameter passing for argument of type ‘std::_Rb_tree<long long unsigned int, std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>, std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >, std::less<long long unsigned int>, std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >}’ changed in GCC 7.1
               _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          In file included from /usr/include/c++/7/deque:63:0,
                           from /usr/include/c++/7/queue:60,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<long long unsigned int*>; _ForwardIterator = long long unsigned int*]’:
          /usr/include/c++/7/bits/stl_uninitialized.h:115:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               uninitialized_copy(_InputIterator __first, _InputIterator __last,
               ^~~~~~~~~~~~~~~~~~
          /usr/include/c++/7/bits/stl_uninitialized.h:115:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
          /usr/include/c++/7/bits/stl_uninitialized.h:134:41: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
            __uninit_copy(__first, __last, __result);
                                                   ^
          /usr/include/c++/7/bits/stl_uninitialized.h: In static member function ‘static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<long long unsigned int*>; _ForwardIterator = long long unsigned int*]’:
          /usr/include/c++/7/bits/stl_uninitialized.h:99:9: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
                   __uninit_copy(_InputIterator __first, _InputIterator __last,
                   ^~~~~~~~~~~~~
          /usr/include/c++/7/bits/stl_uninitialized.h:99:9: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
          /usr/include/c++/7/bits/stl_uninitialized.h:101:53: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
                   { return std::copy(__first, __last, __result); }
                                                               ^
          In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
                           from /usr/include/c++/7/string:40,
                           from /home/odroid/libcec/src/libcec/../../include/cectypes.h:61,
                           from /home/odroid/libcec/src/libcec/env.h:36,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:34:
          /usr/include/c++/7/bits/stl_algobase.h: In function ‘_OI std::copy(_II, _II, _OI) [with _II = std::move_iterator<long long unsigned int*>; _OI = long long unsigned int*]’:
          /usr/include/c++/7/bits/stl_algobase.h:446:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               copy(_II __first, _II __last, _OI __result)
               ^~~~
          /usr/include/c++/7/bits/stl_algobase.h:446:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
          In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                           from /usr/include/c++/7/bits/char_traits.h:39,
                           from /usr/include/c++/7/string:40,
                           from /home/odroid/libcec/src/libcec/../../include/cectypes.h:61,
                           from /home/odroid/libcec/src/libcec/env.h:36,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:34:
          /usr/include/c++/7/bits/stl_iterator.h: In function ‘decltype (std::__miter_base(__it.base())) std::__miter_base(std::move_iterator<_IteratorL>) [with _Iterator = long long unsigned int*]’:
          /usr/include/c++/7/bits/stl_iterator.h:1244:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               __miter_base(move_iterator<_Iterator> __it)
               ^~~~~~~~~~~~
          [ 42%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECTuner.cpp.o
          [ 45%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECTV.cpp.o
          [ 47%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/ANCommandHandler.cpp.o
          [ 50%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/SLCommandHandler.cpp.o
          [ 52%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/CECCommandHandler.cpp.o
          [ 54%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/VLCommandHandler.cpp.o
          [ 57%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/RLCommandHandler.cpp.o
          [ 59%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/PHCommandHandler.cpp.o
          [ 61%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/RHCommandHandler.cpp.o
          [ 64%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/AQCommandHandler.cpp.o
          [ 66%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/adl/adl-edid.cpp.o
          [ 69%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/nvidia/nv-edid.cpp.o
          [ 71%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/drm/drm-edid.cpp.o
          [ 73%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/posix/os-edid.cpp.o
          [ 76%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/posix/serialport.cpp.o
          [ 78%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/X11/randr-edid.cpp.o
          [ 80%] Linking CXX shared library libcec.so
          [ 80%] Built target cec
          [ 83%] Swig source
          Scanning dependencies of target cecc-client
          Scanning dependencies of target cec-client
          [ 85%] Building C object src/cecc-client/CMakeFiles/cecc-client.dir/cecc-client.c.o
          [ 90%] Building CXX object src/cec-client/CMakeFiles/cec-client.dir/curses/CursesControl.cpp.o
          [ 90%] Building CXX object src/cec-client/CMakeFiles/cec-client.dir/cec-client.cpp.o
          [ 92%] Linking C executable cecc-client
          [ 92%] Built target cecc-client
          [ 95%] Linking CXX executable cec-client
          [ 95%] Built target cec-client
          Scanning dependencies of target _cec
          [ 97%] Building CXX object src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.o
          [100%] Linking CXX shared module _cec.so
          [100%] Built target _cec
          
          I am wondering if what I see from 38ù to 42% is a problem...

          Last question: in your post here: viewtopic.php?f=98&t=34149 you're offering some built packages for kodi 18. COuld you provide libcec4? Like this, I may see if the problem is coming from my build process?

          Thanks a lot

          meaz

          User avatar
          AreaScout
          Posts: 1094
          Joined: Sun Jul 07, 2013 3:05 am
          languages_spoken: german, english
          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
          N1, Go, VU5A, Show2, CloudShell2,
          H2, N2, VU7A, VuShell
          Has thanked: 20 times
          Been thanked: 60 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by AreaScout » Tue Jun 04, 2019 10:51 pm

          meaz wrote:
          Mon Jun 03, 2019 8:27 pm
          Thanks a lot for your answers.

          It is still not working. The issue is probably coming from the build process as I really followed carefully all the steps as explained above.

          Code: Select all

          cmake -DHAVE_LINUX_API=1 ..
          gives me that:

          Code: Select all

          -- The C compiler identification is GNU 7.4.0
          -- The CXX compiler identification is GNU 7.4.0
          -- Check for working C compiler: /usr/bin/cc
          -- Check for working C compiler: /usr/bin/cc -- works
          -- Detecting C compiler ABI info
          -- Detecting C compiler ABI info - done
          -- Detecting C compile features
          -- Detecting C compile features - done
          -- Check for working CXX compiler: /usr/bin/c++
          -- Check for working CXX compiler: /usr/bin/c++ -- works
          -- Detecting CXX compiler ABI info
          -- Detecting CXX compiler ABI info - done
          -- Detecting CXX compile features
          -- Detecting CXX compile features - done
          -- Performing Test SUPPORTS_CXX11
          -- Performing Test SUPPORTS_CXX11 - Success
          -- Looking for pthread.h
          -- Looking for pthread.h - found
          -- Looking for pthread_create
          -- Looking for pthread_create - not found
          -- Looking for pthread_create in pthreads
          -- Looking for pthread_create in pthreads - not found
          -- Looking for pthread_create in pthread
          -- Looking for pthread_create in pthread - found
          -- Found Threads: TRUE  
          -- Looking for initscr in curses
          -- Looking for initscr in curses - found
          -- Looking for dlopen in dl
          -- Looking for dlopen in dl - found
          -- Looking for clock_gettime in rt
          -- Looking for clock_gettime in rt - found
          -- Found PythonLibs: /usr/lib/arm-linux-gnueabihf/libpython2.7.so (found version "2.7.15rc1") 
          -- git found: libcec-4.0.4+1-ba9b538~dirty
          -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
          -- Looking for include file sys/file.h
          -- Looking for include file sys/file.h - found
          -- Looking for flock
          -- Looking for flock - found
          -- Checking for module 'udev'
          --   Found udev, version 237
          -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h
          -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h - found
          -- Looking for XRRGetScreenResources in Xrandr
          -- Looking for XRRGetScreenResources in Xrandr - found
          -- Looking for bcm_host_init in bcm_host
          -- Looking for bcm_host_init in bcm_host - not found
          -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h
          -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found
          -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.12") 
          CMake Deprecation Warning at /usr/share/cmake-3.10/Modules/UseSWIG.cmake:231 (message):
            SWIG_ADD_MODULE is deprecated.  Use SWIG_ADD_LIBRARY instead.
          Call Stack (most recent call first):
            src/libcec/cmake/CheckPlatformSupport.cmake:202 (swig_add_module)
            src/libcec/CMakeLists.txt:136 (include)
          
          
          -- Configured features:
          -- Pulse-Eight CEC Adapter:                yes
          -- Pulse-Eight CEC Adapter detection:      yes
          -- xrandr support:                         yes
          -- Raspberry Pi support:                   no
          -- TDA995x support:                        no
          -- Exynos support:                         no
          -- DRM support:                            yes
          -- Linux support:                          yes
          -- AOCEC support:                          no
          -- Python support:                         version 2.7.15rc1 (2.7.15rc1)
          -- lib info: git revision: libcec-4.0.4+1-ba9b538~dirty, compiled on Mon Jun  3 11:14:23 UTC 2019 by odroid@odroid on Linux 4.14.120-160 (armv7l), features: P8_USB, DRM, P8_detect, randr, Linux
          -- Configuring done
          -- Generating done
          -- Build files have been written to: /home/odroid/libcec/build
          Areascout, you said that should not pay attention to the tmdlHdmiCEC and SWIG_ADD_MODULE is deprecated messages.
          What about those:

          Code: Select all

          -- Looking for pthread_create
          -- Looking for pthread_create - not found
          -- Looking for pthread_create in pthreads
          -- Looking for pthread_create in pthreads - not found
          
          and

          Code: Select all

          -- Looking for bcm_host_init in bcm_host
          -- Looking for bcm_host_init in bcm_host - not found
          Also, here is what I get with

          Code: Select all

          make -j7
          :

          Code: Select all

          Scanning dependencies of target cec
          [  2%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECClient.cpp.o
          [  4%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterDetection.cpp.o
          [  7%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECProcessor.cpp.o
          [  9%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/AdapterFactory.cpp.o
          [ 16%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCECC.cpp.o
          [ 16%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCEC.cpp.o
          [ 16%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterCommunication.cpp.o
          
          [ 19%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterMessage.cpp.o
          [ 21%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterCommands.cpp.o
          [ 23%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp.o
          [ 26%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp.o
          [ 28%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Pulse-Eight/USBCECAdapterDetection.cpp.o
          [ 30%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECAudioSystem.cpp.o
          [ 33%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECBusDevice.cpp.o
          [ 35%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECDeviceMap.cpp.o
          [ 38%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECPlaybackDevice.cpp.o
          In file included from /usr/include/c++/7/vector:64:0,
                           from /usr/include/c++/7/queue:61,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_vector.h: In member function ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator<long long unsigned int>]’:
          /usr/include/c++/7/bits/stl_vector.h:948:21: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >’ changed in GCC 7.1
              _M_realloc_insert(end(), __x);
              ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
          In file included from /usr/include/c++/7/vector:69:0,
                           from /usr/include/c++/7/queue:61,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator<long long unsigned int>]’:
          /usr/include/c++/7/bits/vector.tcc:394:7: note: parameter passing for argument of type ‘std::vector<long long unsigned int>::iterator {aka __gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >}’ changed in GCC 7.1
                 vector<_Tp, _Alloc>::
                 ^~~~~~~~~~~~~~~~~~~
          In file included from /usr/include/c++/7/map:60:0,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:39,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_tree.h: In member function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const _Key&) [with _Key = long long unsigned int; _Val = std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>; _KeyOfValue = std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >; _Compare = std::less<long long unsigned int>; _Alloc = std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >]’:
          /usr/include/c++/7/bits/stl_tree.h:2502:19: note: parameter passing for argument of type ‘std::_Rb_tree<long long unsigned int, std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>, std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >, std::less<long long unsigned int>, std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >}’ changed in GCC 7.1
                 _M_erase_aux(__p.first, __p.second);
                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
          In file included from /usr/include/c++/7/deque:63:0,
                           from /usr/include/c++/7/queue:60,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = long long unsigned int*; _ForwardIterator = long long unsigned int*; _Allocator = std::allocator<long long unsigned int>]’:
          /usr/include/c++/7/bits/stl_uninitialized.h:312:69: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
             _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(__last), __result, __alloc);
                                                                               ^
          In file included from /usr/include/c++/7/map:60:0,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:39,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_tree.h: In member function ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = long long unsigned int; _Val = std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>; _KeyOfValue = std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >; _Compare = std::less<long long unsigned int>; _Alloc = std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >]’:
          /usr/include/c++/7/bits/stl_tree.h:2484:5: note: parameter passing for argument of type ‘std::_Rb_tree<long long unsigned int, std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>, std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >, std::less<long long unsigned int>, std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >}’ changed in GCC 7.1
               _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /usr/include/c++/7/bits/stl_tree.h:2484:5: note: parameter passing for argument of type ‘std::_Rb_tree<long long unsigned int, std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>, std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >, std::less<long long unsigned int>, std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >}’ changed in GCC 7.1
          /usr/include/c++/7/bits/stl_tree.h:2491:16: note: parameter passing for argument of type ‘std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >’ changed in GCC 7.1
              _M_erase_aux(__first++);
              ~~~~~~~~~~~~^~~~~~~~~~~
          [ 40%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECRecordingDevice.cpp.o
          In file included from /usr/include/c++/7/deque:63:0,
                           from /usr/include/c++/7/queue:60,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator<long long unsigned int*>; _ForwardIterator = long long unsigned int*; _Tp = long long unsigned int]’:
          /usr/include/c++/7/bits/stl_uninitialized.h:287:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               __uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
               ^~~~~~~~~~~~~~~~~~~~~~
          /usr/include/c++/7/bits/stl_uninitialized.h:287:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
          /usr/include/c++/7/bits/stl_uninitialized.h:289:63: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               { return std::uninitialized_copy(__first, __last, __result); }
                                                                         ^
          In file included from /usr/include/c++/7/map:60:0,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:39,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_tree.h: In member function ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = long long unsigned int; _Val = std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>; _KeyOfValue = std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >; _Compare = std::less<long long unsigned int>; _Alloc = std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >]’:
          /usr/include/c++/7/bits/stl_tree.h:2470:5: note: parameter passing for argument of type ‘std::_Rb_tree<long long unsigned int, std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*>, std::_Select1st<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >, std::less<long long unsigned int>, std::allocator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, CEC::CCECAdapterMessageQueueEntry*> >}’ changed in GCC 7.1
               _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          In file included from /usr/include/c++/7/deque:63:0,
                           from /usr/include/c++/7/queue:60,
                           from /usr/local/include/p8-platform/util/buffer.h:35,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.h:37,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:35:
          /usr/include/c++/7/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<long long unsigned int*>; _ForwardIterator = long long unsigned int*]’:
          /usr/include/c++/7/bits/stl_uninitialized.h:115:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               uninitialized_copy(_InputIterator __first, _InputIterator __last,
               ^~~~~~~~~~~~~~~~~~
          /usr/include/c++/7/bits/stl_uninitialized.h:115:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
          /usr/include/c++/7/bits/stl_uninitialized.h:134:41: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
            __uninit_copy(__first, __last, __result);
                                                   ^
          /usr/include/c++/7/bits/stl_uninitialized.h: In static member function ‘static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<long long unsigned int*>; _ForwardIterator = long long unsigned int*]’:
          /usr/include/c++/7/bits/stl_uninitialized.h:99:9: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
                   __uninit_copy(_InputIterator __first, _InputIterator __last,
                   ^~~~~~~~~~~~~
          /usr/include/c++/7/bits/stl_uninitialized.h:99:9: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
          /usr/include/c++/7/bits/stl_uninitialized.h:101:53: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
                   { return std::copy(__first, __last, __result); }
                                                               ^
          In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
                           from /usr/include/c++/7/string:40,
                           from /home/odroid/libcec/src/libcec/../../include/cectypes.h:61,
                           from /home/odroid/libcec/src/libcec/env.h:36,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:34:
          /usr/include/c++/7/bits/stl_algobase.h: In function ‘_OI std::copy(_II, _II, _OI) [with _II = std::move_iterator<long long unsigned int*>; _OI = long long unsigned int*]’:
          /usr/include/c++/7/bits/stl_algobase.h:446:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               copy(_II __first, _II __last, _OI __result)
               ^~~~
          /usr/include/c++/7/bits/stl_algobase.h:446:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
          In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                           from /usr/include/c++/7/bits/char_traits.h:39,
                           from /usr/include/c++/7/string:40,
                           from /home/odroid/libcec/src/libcec/../../include/cectypes.h:61,
                           from /home/odroid/libcec/src/libcec/env.h:36,
                           from /home/odroid/libcec/src/libcec/adapter/Pulse-Eight/USBCECAdapterMessageQueue.cpp:34:
          /usr/include/c++/7/bits/stl_iterator.h: In function ‘decltype (std::__miter_base(__it.base())) std::__miter_base(std::move_iterator<_IteratorL>) [with _Iterator = long long unsigned int*]’:
          /usr/include/c++/7/bits/stl_iterator.h:1244:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
               __miter_base(move_iterator<_Iterator> __it)
               ^~~~~~~~~~~~
          [ 42%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECTuner.cpp.o
          [ 45%] Building CXX object src/libcec/CMakeFiles/cec.dir/devices/CECTV.cpp.o
          [ 47%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/ANCommandHandler.cpp.o
          [ 50%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/SLCommandHandler.cpp.o
          [ 52%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/CECCommandHandler.cpp.o
          [ 54%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/VLCommandHandler.cpp.o
          [ 57%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/RLCommandHandler.cpp.o
          [ 59%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/PHCommandHandler.cpp.o
          [ 61%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/RHCommandHandler.cpp.o
          [ 64%] Building CXX object src/libcec/CMakeFiles/cec.dir/implementations/AQCommandHandler.cpp.o
          [ 66%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/adl/adl-edid.cpp.o
          [ 69%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/nvidia/nv-edid.cpp.o
          [ 71%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/drm/drm-edid.cpp.o
          [ 73%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/posix/os-edid.cpp.o
          [ 76%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/posix/serialport.cpp.o
          [ 78%] Building CXX object src/libcec/CMakeFiles/cec.dir/platform/X11/randr-edid.cpp.o
          [ 80%] Linking CXX shared library libcec.so
          [ 80%] Built target cec
          [ 83%] Swig source
          Scanning dependencies of target cecc-client
          Scanning dependencies of target cec-client
          [ 85%] Building C object src/cecc-client/CMakeFiles/cecc-client.dir/cecc-client.c.o
          [ 90%] Building CXX object src/cec-client/CMakeFiles/cec-client.dir/curses/CursesControl.cpp.o
          [ 90%] Building CXX object src/cec-client/CMakeFiles/cec-client.dir/cec-client.cpp.o
          [ 92%] Linking C executable cecc-client
          [ 92%] Built target cecc-client
          [ 95%] Linking CXX executable cec-client
          [ 95%] Built target cec-client
          Scanning dependencies of target _cec
          [ 97%] Building CXX object src/libcec/CMakeFiles/_cec.dir/libcecPYTHON_wrap.cxx.o
          [100%] Linking CXX shared module _cec.so
          [100%] Built target _cec
          
          I am wondering if what I see from 38ù to 42% is a problem...

          Last question: in your post here: viewtopic.php?f=98&t=34149 you're offering some built packages for kodi 18. COuld you provide libcec4? Like this, I may see if the problem is coming from my build process?

          Thanks a lot

          meaz
          No everything is fine it seems, pthread_create is just to check which pthread to use libc one or external lib, bcm_host is to check if you are running a raspberry pi and the other one are just compile warnings that parameter passing has changed in gcc 7.1

          I will provide a libcec4 and will let you know when I have uploaded it

          RG

          User avatar
          AreaScout
          Posts: 1094
          Joined: Sun Jul 07, 2013 3:05 am
          languages_spoken: german, english
          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
          N1, Go, VU5A, Show2, CloudShell2,
          H2, N2, VU7A, VuShell
          Has thanked: 20 times
          Been thanked: 60 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by AreaScout » Wed Jun 05, 2019 6:11 pm

          meaz wrote:
          Mon Jun 03, 2019 8:27 pm
          Last question: in your post here: viewtopic.php?f=98&t=34149 you're offering some built packages for kodi 18. COuld you provide libcec4? Like this, I may see if the problem is coming from my build process?

          Thanks a lot

          meaz
          hello meaz

          I have made an libcec4 package based on 4.0.2 for testing, meveric told me he also has a libcec4 package but it's 4.0.4 and it should also work on Ubuntu, I have tested my libcec4 package on a fresh install yesterday and it works

          you can download it with wget https://www.areascout.at/libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb and install with apt install ./libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb --reinstall if another libcec4 package is already installed

          RG and good luck

          meaz
          Posts: 37
          Joined: Fri Apr 12, 2019 5:49 pm
          languages_spoken: english
          ODROIDs: XU4
          Has thanked: 0
          Been thanked: 1 time
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by meaz » Sat Jun 08, 2019 2:21 am

          Thanks a lot. I still have an issue though when I install:

          Code: Select all

          apt install ./libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb --reinstall
          Reading package lists... Done
          Building dependency tree       
          Reading state information... Done
          Note, selecting 'libcec4' instead of './libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb'
          The following packages will be DOWNGRADED:
            libcec4
          0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
          Need to get 0 B/189 kB of archives.
          After this operation, 0 B of additional disk space will be used.
          Do you want to continue? [Y/n] y
          Get:1 /root/packages/libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb libcec4 armhf 4.0.2+dfsg1-2ubuntu1.1 [189 kB]
          (Reading database ... 60686 files and directories currently installed.)
          Preparing to unpack .../libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb ...
          Unpacking libcec4:armhf (4.0.2+dfsg1-2ubuntu1.1) over (4.0.2+dfsg1-2ubuntu1.1) ...
          Setting up libcec4:armhf (4.0.2+dfsg1-2ubuntu1.1) ...
          Processing triggers for libc-bin (2.27-3ubuntu1) ...
          This message

          Code: Select all

          Note, selecting 'libcec4' instead of './libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb'
          seems weird, no?

          ANyway, I've decided to buy a remote control :) that will be easier!

          User avatar
          AreaScout
          Posts: 1094
          Joined: Sun Jul 07, 2013 3:05 am
          languages_spoken: german, english
          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
          N1, Go, VU5A, Show2, CloudShell2,
          H2, N2, VU7A, VuShell
          Has thanked: 20 times
          Been thanked: 60 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by AreaScout » Sat Jun 08, 2019 2:43 am

          meaz wrote:
          Sat Jun 08, 2019 2:21 am
          Thanks a lot. I still have an issue though when I install:

          Code: Select all

          apt install ./libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb --reinstall
          Reading package lists... Done
          Building dependency tree       
          Reading state information... Done
          Note, selecting 'libcec4' instead of './libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb'
          The following packages will be DOWNGRADED:
            libcec4
          0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
          Need to get 0 B/189 kB of archives.
          After this operation, 0 B of additional disk space will be used.
          Do you want to continue? [Y/n] y
          Get:1 /root/packages/libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb libcec4 armhf 4.0.2+dfsg1-2ubuntu1.1 [189 kB]
          (Reading database ... 60686 files and directories currently installed.)
          Preparing to unpack .../libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb ...
          Unpacking libcec4:armhf (4.0.2+dfsg1-2ubuntu1.1) over (4.0.2+dfsg1-2ubuntu1.1) ...
          Setting up libcec4:armhf (4.0.2+dfsg1-2ubuntu1.1) ...
          Processing triggers for libc-bin (2.27-3ubuntu1) ...
          This message

          Code: Select all

          Note, selecting 'libcec4' instead of './libcec4_4.0.2+dfsg1-2ubuntu1.1_armhf.deb'
          seems weird, no?

          ANyway, I've decided to buy a remote control :) that will be easier!
          Does that mean it still doesn't work ? if you do a ls -la /usr/lib/arm-linux-gnueabihf/libcec* the binary should date 04.June 2019, strange all others have it working you can also try meveric's build

          https://oph.mdrjr.net/meveric/pool/back ... _armhf.deb

          I wouldn't use a remote control but instead a mini bluetooth keyboard like this https://www.getgoods.com/products/39979 ... dwod-osMTw

          RG


          RG

          User avatar
          meveric
          Posts: 10528
          Joined: Mon Feb 25, 2013 2:41 pm
          languages_spoken: german, english
          ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
          Has thanked: 17 times
          Been thanked: 149 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by meveric » Sat Jun 08, 2019 3:06 am

          AreaScout wrote:
          Sat Jun 08, 2019 2:43 am
          I wouldn't use a remote control but instead a mini bluetooth keyboard like this https://www.getgoods.com/products/39979 ... dwod-osMTw
          I would go for something like this:
          https://www.amazon.com/ILEBYGO-Backligh ... B0793RZHJG
          doubles as mouse and keyboard :)
          Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
          Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
          If you want to add my repository to your image read my HOWTO integrate my repo into your image.

          User avatar
          AreaScout
          Posts: 1094
          Joined: Sun Jul 07, 2013 3:05 am
          languages_spoken: german, english
          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
          N1, Go, VU5A, Show2, CloudShell2,
          H2, N2, VU7A, VuShell
          Has thanked: 20 times
          Been thanked: 60 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by AreaScout » Sat Jun 08, 2019 1:35 pm

          meveric wrote:
          Sat Jun 08, 2019 3:06 am
          AreaScout wrote:
          Sat Jun 08, 2019 2:43 am
          I wouldn't use a remote control but instead a mini bluetooth keyboard like this https://www.getgoods.com/products/39979 ... dwod-osMTw
          I would go for something like this:
          https://www.amazon.com/ILEBYGO-Backligh ... B0793RZHJG
          doubles as mouse and keyboard :)
          Woho that looks interesting, well the keyboard is a little bit to small but other then that... never saw something like this before :)

          User avatar
          meveric
          Posts: 10528
          Joined: Mon Feb 25, 2013 2:41 pm
          languages_spoken: german, english
          ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
          Has thanked: 17 times
          Been thanked: 149 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by meveric » Sat Jun 08, 2019 3:10 pm

          I got something like that for my dad when I gave them an ODROID with Kodi and such so he can watch shows on it.
          It's working quite well.. There are tons of these out there with different types of buttons and keyboard layouts.
          These users thanked the author meveric for the post:
          AreaScout (Sat Jun 08, 2019 11:37 pm)
          Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
          Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
          If you want to add my repository to your image read my HOWTO integrate my repo into your image.

          User avatar
          AreaScout
          Posts: 1094
          Joined: Sun Jul 07, 2013 3:05 am
          languages_spoken: german, english
          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
          N1, Go, VU5A, Show2, CloudShell2,
          H2, N2, VU7A, VuShell
          Has thanked: 20 times
          Been thanked: 60 times
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by AreaScout » Sat Jun 08, 2019 11:37 pm

          meveric wrote:
          Sat Jun 08, 2019 3:10 pm
          I got something like that for my dad when I gave them an ODROID with Kodi and such so he can watch shows on it.
          It's working quite well.. There are tons of these out there with different types of buttons and keyboard layouts.
          Thanks for the information I didn't know about such a device :)

          Post Reply

          Return to “Linux Kernel 4.14 Debugging Party”

          Who is online

          Users browsing this forum: No registered users and 13 guests