Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

live TV for all rk3188 using XBMC and tvheadend

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Wasser used kitkat 3.0.36+. You have to find 4.4.2 config file. Later make menuconfig
    Select tuner
    Make arch=arm cross compile etc
    You can find topic kernel kompile in this forum.
    Excatly first kernel kompile later make modules. Because dont do thid. Mofules give flag error

    Comment


      Originally posted by taki View Post
      I add satip.c

      it gave me another error

      MKBUNDLE bundle.c
      CC bundle.o
      CC tvheadend
      /home/new/tvheadend/build.linux/src/main.o: In function `main':
      /home/new/tvheadend/src/main.c:903: undefined reference to `ENGINE_cleanup'
      /home/new/tvheadend/build.linux/src/input/mpegts/satip/satip_rtsp.o: In function `satip_rtsp_pids_strip':
      /home/new/tvheadend/src/input/mpegts/satip/satip_rtsp.c:225: undefined reference to `rindex'
      collect2: ld returned 1 exit status
      make: *** [/home/new/tvheadend/build.linux/tvheadend] Error 1

      later modfifye

      CC tvheadend
      /home/new/tvheadend/build.linux/src/main.o: In function `main':
      /home/new/tvheadend/src/main.c:903: undefined reference to `ENGINE_cleanup'
      collect2: ld returned 1 exit status
      make: *** [/home/new/tvheadend/build.linux/tvheadend] Error 1
      I think not support open ssl engine cleanup
      You need to change 'rindex' function to 'strrchr' function in satip.c.
      And, 'ENGINE_cleanup' is related with openssl, currently linker did not find correct library.
      In my case, I was build the openssl(1.0.1g) and retry to make tvheadend.

      [tip] configure script of tvheadend looking for openssl via pkg-config, so you need the rebuild openssl with '--prefix' as '.../anndroid-toolchain-14/sysroot/usr'. This build will make the 'libcrypto.pc', 'libssl.pc' and 'openssl.pc' into the '[prefix]/lib/pkgconfig' directory those are using by tvheadend configure.
      Here is my configure command for openssl(1.0.1g) build.
      ============

      $ export PATH=~...../android-toolchain-14/bin:$PATH
      $ export CROSS_COMPILE=arm-linux-androideabi-
      $ export SYSROOT=...../android-toolchain-14/sysroot/usr
      $ export PKG_CONFIG_PATH=$SYSROOT/lib/pkgconfig
      $ CC=${CROSS_COMPILE}gcc ./Configure --prefix=$SYSROOT shared android
      $ make CC=${CROSS_COMPILE}gcc AR="${CROSS_COMPILE}ar r" RANLIB=${CROSS_COMPILE}ranlib
      $ make install

      ============
      BTW, tvheadend build using this new library needed by tvheadend execute. So you need to copy libraries into /system/lib of android device.
      Or you can create *.pc for existing openssl library.

      woomg.
      Last edited by woomg; 19 May 2014, 05:19.

      Comment


        I used openss 101a like this
        run this script ( make-standalone-toolchain.sh )
        #!/bin/bashexport
        ANDROID_NDK=android-ndk-r8e
        export ANDROID_NDK_TOOLCHAIN_ROOT=android-toolchain-14
        $ANDROID_NDK/build/tools/make-standalone-toolchain.sh \
        --system=linux-x86_64 \
        --toolchain=arm-linux-androideabi-4.4.3 \
        --platform=android-14 \
        --install-dir=$ANDROID_NDK_TOOLCHAIN_ROOTremove "
        --system=linux-x86_64" for 32 Bit Linuxbuild openssl for androidgit clone


        cd openssl-android
        ../android-ndk-r8e/ndk-build
        cd ..
        link missing header and copy libs into android toolchain
        ln -s ../../../../../yourkernel/include/linux/dvb android-toolchain-14/sysroot/usr/include/linux/dvb
        ln -s ../../../../openssl-android/include/openssl android-toolchain-14/sysroot/usr/include/openssl
        cp openssl-android/libs/armeabi/libssl.so android-toolchain-14/lib
        cp openssl-android/libs/armeabi/libcrypto.so android-toolchain-14/lib
        I compiled lates git without ENGINE_cleanup. But perfectly worked

        Comment


          Originally posted by taki View Post
          I used openss 101a like this
          run this script ( make-standalone-toolchain.sh )
          #!/bin/bashexport
          ANDROID_NDK=android-ndk-r8e
          export ANDROID_NDK_TOOLCHAIN_ROOT=android-toolchain-14
          $ANDROID_NDK/build/tools/make-standalone-toolchain.sh \
          --system=linux-x86_64 \
          --toolchain=arm-linux-androideabi-4.4.3 \
          --platform=android-14 \
          --install-dir=$ANDROID_NDK_TOOLCHAIN_ROOTremove "
          --system=linux-x86_64" for 32 Bit Linuxbuild openssl for androidgit clone


          cd openssl-android
          ../android-ndk-r8e/ndk-build
          cd ..
          link missing header and copy libs into android toolchain
          ln -s ../../../../../yourkernel/include/linux/dvb android-toolchain-14/sysroot/usr/include/linux/dvb
          ln -s ../../../../openssl-android/include/openssl android-toolchain-14/sysroot/usr/include/openssl
          cp openssl-android/libs/armeabi/libssl.so android-toolchain-14/lib
          cp openssl-android/libs/armeabi/libcrypto.so android-toolchain-14/lib
          I compiled lates git without ENGINE_cleanup. But perfectly worked
          Hi Taki,
          Yes, I knew that but it's not work anymore I think. You can try one thing as follow.
          Copy libssl.so and libcrypto.so to android-toolchain-14/sysroot/usr/lib.
          And extract attached file to android-toolchain-14/sysroot/usr/lib/pkgconfig with modify the prefix path and version number in *.pc files for your environment.
          This is just idea I did not tried.

          woomg
          Attached Files

          Comment


            Here is new patch for today(2014/05/20) git master.
            It will create 'build-tvheadend.sh' file in the directory, you can refer this for your own build.

            * For this build, you need to add 'PLATFORM=linux' and '--enable-epoll' to configure command. It will be affact the build.

            Thanks
            woomg
            Attached Files

            Comment


              first big thanks woomg
              I add pkgconfig my NDK directory (android-toolchain-14/sysroot/user/lib/pkgconfig
              later download latest tvheadend.
              applied your patch that is created build.tvheadend.sh
              od +x build.tvheadend.sh
              ./build.tvheadend.sh
              later make
              It was give me an error that uriparser
              later
              I disabled --disable-uriparser
              later re configure
              root@new-VirtualBox:/home/new/tvheadend# ./build-tvheadend.sh
              Checking support/features
              checking for cc execinfo.h ... fail
              checking for cc -mmmx ... fail
              checking for cc -msse2 ... fail
              checking for cc getloadavg ... fail
              checking for cc atomic64 ... fail
              checking for cc lockowner ... fail
              checking for cc qsort_r ... fail
              checking for cc recvmmsg ... fail
              checking for py module gzip ... ok
              checking for bzip2 ... ok
              checking for pkg openssl ... ok
              checking for cc linux/dvb/version.h ... ok
              checking for pkg zlib ... ok
              checking for cc sys/inotify.h ... ok
              fetching dvb-scan files ... ok
              Compiler:
              Using C compiler: /home/new/android-toolchain-14/bin/arm-linux-androideabi-gcc
              Build for arch: armeabi-v7a
              Binaries:
              Using PYTHON: python
              Options:
              cwc yes
              v4l no
              linuxdvb yes
              satip_client yes
              iptv yes
              tsfile yes
              dvbscan yes
              timeshift yes
              trace yes
              imagecache yes
              avahi no
              zlib yes
              libav no
              inotify yes
              epoll yes
              uriparser no
              ccache no
              bundle yes
              dvbcsa no
              kqueue no
              android yes
              py_gzip yes
              bin_bzip2 yes
              ssl yes
              linuxdvbapi yes
              upnp yes
              inotify_h yes
              mpegts yes
              mpegps no
              mpegts_dvb yes
              Packages:
              openssl 1.0.1g
              zlib 1.2.3
              Installation paths:
              Prefix: /usr/local
              Binaries: ${prefix}/bin
              Libraries: ${prefix}/lib
              Data files: ${prefix}/share
              Man pages: ${datadir}/man
              Final Binary:
              /home/new/tvheadend/build.linux/tvheadend
              Tvheadend Data Directory:
              /usr/local/share/tvheadend
              root@new-VirtualBox:/home/new/tvheadend# make

              give me error Engine cleanup ?


              MKBUNDLE bundle.c
              CC bundle.o
              CC tvheadend
              /home/new/tvheadend/build.linux/src/main.o: In function `main':
              /home/new/tvheadend/src/main.c:903: undefined reference to `ENGINE_cleanup'
              collect2: ld returned 1 exit status
              make: *** [/home/new/tvheadend/build.linux/tvheadend] Error 1

              I opend main.c and erased line ENGINE_cleanup' . later saved
              try to make thats compiled but terminal said
              make warning: clock skew detected your buil may be incompleted

              Comment


                First, check your openssl libraries location. Is 'sysroot/usr/lib'?
                Second, your configure script showed openssl version is 1.0.1g. Is this right? If no, you need to modify the *.pc files in pkgconfig with right path and right version.

                Third, maybe ENGINE_cleanup is not support the version 1.0.1a, in this case you need to build 1.0.1g.

                regards,
                woomg

                Comment


                  openssl version 1.0.1a that true
                  maybe ENGINE_cleanup is not support the version 1.0.1a =may be
                  Where I find 1.0.1g open ssl for android. some openssl source dont compile for android.
                  you said that may be new version openssl 1.0.1g support "engine cleanup"
                  pls ,If you have git link or zip for android 1.0.1g send us.
                  I compiled tvheadend binary with engine cleanup error.
                  later tested on my minix x7. all channel searched and mapped. HD and SD all network device ok.
                  Gotham android xbmx or android XBMC interlace method very bad. no quality pictures on mpeg2ts with android. I send photos for this. Tvheadend perfectly work. and I tested network capabiliyt minix and tvheadend. perfectly send my winows pc. I connected from minix to win7 ( xbmc 12.2 tvh 1.6.2 addon) amazingly fast channel zapping HD and SD. pls Loked this photos. new.zip
                  Last edited by taki; 20 May 2014, 16:37.

                  Comment


                    Original openssl(http://www.openssl.org/source/openssl-1.0.1g.tar.gz) support the android build. I am also using this.

                    Regards,
                    woomg

                    Comment


                      perfectly work latest git of tvheadend on android

                      I donwloaded
                      http://www.openssl.org/source/openssl-1.0.1g.tar.gz
                      /home/user/ tar -xvf openssl-1.0.1g.tar.gz
                      cd
                      /home/user/openssl-1.0.1g

                      $ export PATH=/home/user/android-toolchain-14/bin:$PATH
                      $ export CROSS_COMPILE=arm-linux-androideabi-
                      $ export SYSROOT=/home/user/android-toolchain-14/sysroot/usr
                      $ export PKG_CONFIG_PATH=$SYSROOT/lib/pkgconfig
                      $ CC=${CROSS_COMPILE}gcc ./Configure --prefix=$SYSROOT shared android
                      $ make CC=${CROSS_COMPILE}gcc AR="${CROSS_COMPILE}ar r" RANLIB=${CROSS_COMPILE}ranlib
                      $ make install

                      unfortunately all files intall home/user/openssl-1.0.1g/

                      indeed must be install all files /android-toolchain-14/ but may be I have write wrong path

                      I manualy copy all files NDK directory

                      ln -s ../../../../openssl-1.0.1g/include/openssl android-toolchain-14/sysroot/usr/include/openssl
                      cp openssl-1.0.1g/libssl.so android-toolchain-14/lib
                      cp openssl-1.0.1g/libcrypto.so android-toolchain-14/lib
                      cp openssl-1.0.1g/libssl.so android-toolchain-14/sysroot/usr/lib
                      cp openssl-1.0.1g/libcrypto.so android-toolchain-14/sysroot/usr/lib
                      cp openssl-1.0.1g/libssl.so.1.0.0 android-toolchain-14/lib
                      cp openssl-1.0.1g/libcrypto.so.1.0.0 android-toolchain-14/lib
                      cp openssl-1.0.1g/libssl.so.1.0.0 android-toolchain-14/sysroot/usr/lib
                      cp openssl-1.0.1g/libcrypto.so.1.0.0 android-toolchain-14/sysroot/usr/lib
                      cp openssl-1.0.1g/libssl.pc android-toolchain-14/sysroot/usr/lib/pkgconfig
                      cp openssl-1.0.1g/libcrypto.pc android-toolchain-14/sysroot/usr/lib/pkgconfig
                      cp openssl-1.0.1g/openssl.pc android-toolchain-14/sysroot/usr/lib/pkgconfig

                      later cd tvheadend folder make
                      everthing ok was build any error binary.
                      I copy llibssl.so.1.0.0, libcrypto.so.1.0.0, llibssl.so, libcrypto.so and tvheadend binary copy to dvb folder /data/dvb/
                      later plug and plag because full init.d work on my box .
                      tvheadend dont work I opened terminal write tvheadend -C -c /data/dvb/.hts
                      gave me error beacuse dont find llibssl.so.1.0.0, libcrypto.so.1.0.0

                      u0_a77@android:/ $ su
                      u0_a77@android:/ # ./data/dvb/tvheadend -C -c /data/dvb/.hts
                      soinfo_link_image(linker.cpp:1635): could not load library "libssl.so.1.0.0" needed by "./data/dvb/tvheadend"; caused by load_library(linker.cpp:745): library "libssl.so.1.0.0" not foundCANNOT LINK EXECUTABLE
                      255|u0_a77@android:/ #

                      later copy only llibssl.so.1.0.0, libcrypto.so.1.0.0 to /system/lib/
                      restart again. tvheadend work. most stable

                      note: I configure tvheadend that said me

                      Packages:
                      openssl 1.0.1e
                      zlip 1.2.8

                      indeed pkgconfig folder openssl.pc include 1.0.1g.
                      configure said me 1.0.1e??



                      Last edited by taki; 21 May 2014, 18:20.

                      Comment


                        I am a newbie, but thanks a lot !!!!

                        It seems that you are working hard in order to get HD channels in Minix X7.

                        THANKS A LOT!!!!!

                        Best,

                        Comment


                          Hd channel works on other lan device (based windows). Android xbmc and player not decode mpeg4 x264ts file for RK3188. Tvheadend working full capaple on android. producer want to decode or assist this video transponder streaming format its very easy find solution

                          Comment


                            Hi Taki,

                            Your configure command can not looking for openssl and zlib for tvheadend. I believe 'openssl 1.0.1e' and 'zlib 1.2.8' are libraries for your base system(linux), not for android. Check your *.pc files in sysroot/usr/lib/pkgconfig folder using text editor. All of pc files must have correct prefix and library version.

                            And, maybe $SYSROOT is reserved word? you can try with other variable name like 'PLATFORM'.

                            Comment


                              fist That is my fauld
                              I dont use build-tvheadend.sh thus dont find pkgconfig folder. everthing ok at this time.
                              I try to add ndk ffmpeg That you said me. 443 compiler not support "compiler does not support hardware floating-point"
                              I dont know minix android 4.4.2 use max platform may be support platform-19
                              which ffmpeg and x264 source you use. NDK r8e max platform 14.
                              may be activate libav
                              I must say that my win7 pc connect to tvheadend of minix via wifi. that perfect play HD and SD channel and fast zappinglike build in tuner dvb receiver. de-interlace work perfect video quality. any HD tv error because I opened HD Channel on minix gotham 13 android some time halted and need to restart minix.

                              indeed have dvb driver error bulked message dvb-usb.ko and DCW-otg error. but work perfectly.



                              Lan connection all of device work good. minix is perfectly sreaming of server of tvheadend box. big thanks your patch. I used ubuntu 12 pc for tvheadend but dont good work than android.

                              Comment


                                Hi,

                                Link of the first post: "download this file and extract it http://www.cloudstor.es/file/m1_Njg0Ng/" is lost.

                                Could anyone please give me antoher link to download it ??

                                Regards,
                                Excuse me, I have found this:

                                Last edited by juan3211; 22 May 2014, 21:10.

                                Comment

                                Working...
                                X