Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.7 Coss-Compile with Raspberry Pi 3
Forum Updated to NodeBB v4.3 + New Features

Qt 5.7 Coss-Compile with Raspberry Pi 3

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
25 Posts 4 Posters 8.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ascnp
    wrote on 5 Oct 2016, 08:33 last edited by A Former User 10 Jun 2016, 10:25
    #1

    I have apt-get install gstreamer1.0* and install tslib1.4 on Raspberry Pi 3.
    BUT when I configure Qt-opensource-everywhere, it shows
    checking for tslib... no.
    The tslib functionality test failed!
    and also
    checking for gstreamer... no.
    The gstreamer 1.0 functionality test failed!

    what should I do?

    J 1 Reply Last reply 5 Oct 2016, 12:01
    0
    • A ascnp
      5 Oct 2016, 08:33

      I have apt-get install gstreamer1.0* and install tslib1.4 on Raspberry Pi 3.
      BUT when I configure Qt-opensource-everywhere, it shows
      checking for tslib... no.
      The tslib functionality test failed!
      and also
      checking for gstreamer... no.
      The gstreamer 1.0 functionality test failed!

      what should I do?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 5 Oct 2016, 12:01 last edited by
      #2

      @ascnp You should install the dev packages for gstreamer1.0* and tslib1.4, they contain the header files.
      Also, do you really cross-compile or do you compile on Raspberry?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 2 Replies Last reply 6 Oct 2016, 02:50
      2
      • J jsulm
        5 Oct 2016, 12:01

        @ascnp You should install the dev packages for gstreamer1.0* and tslib1.4, they contain the header files.
        Also, do you really cross-compile or do you compile on Raspberry?

        A Offline
        A Offline
        ascnp
        wrote on 6 Oct 2016, 02:50 last edited by ascnp 10 Jun 2016, 03:43
        #3

        @jsulm
        I have installed gstreamer 1.0-dev and tslib1.4. But Qt can't find them. I install tslib in /usr/local/tslib and apt-get install gstreamer1.0-dev. I guess it is because I install in the wrong path. But I don't know where should I install.
        I am really cross-compile. That means I build Qt on my x86 computer and install on x86, but some shared lib is on raspberry. I finish my code on x86 and build on x86 but remote debug or release on raspberry.

        1 Reply Last reply
        0
        • J jsulm
          5 Oct 2016, 12:01

          @ascnp You should install the dev packages for gstreamer1.0* and tslib1.4, they contain the header files.
          Also, do you really cross-compile or do you compile on Raspberry?

          A Offline
          A Offline
          ascnp
          wrote on 6 Oct 2016, 03:34 last edited by
          #4

          @jsulm
          The installed gstreamer-dev is as follow.(On Raspberry Pi)

          gstreamer1.0-clutter-3.0 (3.0.18-1)。
          gstreamer1.0-clutter (2.0.18-1)。
          gstreamer1.0-dvswitch (0.1.1-1)。
          gstreamer1.0-espeak (0.4.0-1)。
          gstreamer1.0-fluendo-mp3 (0.10.32.debian-1)。
          gstreamer1.0-nice (0.1.13-0ubuntu2)。
          gstreamer1.0-pocketsphinx (0.8.0+real5prealpha-1ubuntu2)。
          gstreamer1.0-alsa (1.8.2-1ubuntu0.1)。
          gstreamer1.0-doc (1.8.2-1~ubuntu1)。
          gstreamer1.0-plugins-base (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-base-apps (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-base-dbg (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-base-doc (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-good (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-good-dbg (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-good-doc (1.8.2-1ubuntu0.1)。
          gstreamer1.0-pulseaudio (1.8.2-1ubuntu0.1)。
          gstreamer1.0-tools (1.8.2-1~ubuntu1)。
          gstreamer1.0-x (1.8.2-1ubuntu0.1)。
          gstreamer1.0-hybris (1.8.2-1ubuntu0.1)。
          gstreamer1.0-libav (1.8.2-1~ubuntu1)。
          gstreamer1.0-libav-dbg (1.8.2-1~ubuntu1)。
          gstreamer1.0-packagekit (0.8.17-4ubuntu6~gcc5.4ubuntu1.1)。
          gstreamer1.0-plugins-bad (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-bad-dbg (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-bad-doc (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-bad-faad (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-bad-videoparsers (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-ugly (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-ugly-amr (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-ugly-dbg (1.8.2-1ubuntu0.1)。
          gstreamer1.0-plugins-ugly-doc (1.8.2-1ubuntu0.1)。
          gstreamer1.0-vaapi (1.8.2-1~ubuntu2)。
          gstreamer1.0-vaapi-doc (1.8.2-1~ubuntu2)。

          J K 2 Replies Last reply 6 Oct 2016, 04:35
          0
          • A ascnp
            6 Oct 2016, 03:34

            @jsulm
            The installed gstreamer-dev is as follow.(On Raspberry Pi)

            gstreamer1.0-clutter-3.0 (3.0.18-1)。
            gstreamer1.0-clutter (2.0.18-1)。
            gstreamer1.0-dvswitch (0.1.1-1)。
            gstreamer1.0-espeak (0.4.0-1)。
            gstreamer1.0-fluendo-mp3 (0.10.32.debian-1)。
            gstreamer1.0-nice (0.1.13-0ubuntu2)。
            gstreamer1.0-pocketsphinx (0.8.0+real5prealpha-1ubuntu2)。
            gstreamer1.0-alsa (1.8.2-1ubuntu0.1)。
            gstreamer1.0-doc (1.8.2-1~ubuntu1)。
            gstreamer1.0-plugins-base (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-base-apps (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-base-dbg (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-base-doc (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-good (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-good-dbg (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-good-doc (1.8.2-1ubuntu0.1)。
            gstreamer1.0-pulseaudio (1.8.2-1ubuntu0.1)。
            gstreamer1.0-tools (1.8.2-1~ubuntu1)。
            gstreamer1.0-x (1.8.2-1ubuntu0.1)。
            gstreamer1.0-hybris (1.8.2-1ubuntu0.1)。
            gstreamer1.0-libav (1.8.2-1~ubuntu1)。
            gstreamer1.0-libav-dbg (1.8.2-1~ubuntu1)。
            gstreamer1.0-packagekit (0.8.17-4ubuntu6~gcc5.4ubuntu1.1)。
            gstreamer1.0-plugins-bad (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-bad-dbg (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-bad-doc (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-bad-faad (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-bad-videoparsers (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-ugly (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-ugly-amr (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-ugly-dbg (1.8.2-1ubuntu0.1)。
            gstreamer1.0-plugins-ugly-doc (1.8.2-1ubuntu0.1)。
            gstreamer1.0-vaapi (1.8.2-1~ubuntu2)。
            gstreamer1.0-vaapi-doc (1.8.2-1~ubuntu2)。

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 6 Oct 2016, 04:35 last edited by
            #5

            @ascnp That I don't understand (it actually doesn't make sense):
            "That means I build Qt on my x86 computer and install on x86, but some shared lib is on raspberry."
            Raspberry is not x86, it is ARM. So, how exactly do you build for Raspberry? To cross compile you need a sysroot (basically the filesystem of your target device). This sysroot must contain all needed libraries and header files. I guess you installed the *dev packages on your x86 system? If so this will not help at all. You need to install them on your Raspberry SDCard (you can do it on Raspberry directly) then put this SDCard into your PC mount it and use it as sysroot.
            You can find information here http://wiki.qt.io/Qt_RaspberryPi

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            A 1 Reply Last reply 6 Oct 2016, 04:43
            1
            • J jsulm
              6 Oct 2016, 04:35

              @ascnp That I don't understand (it actually doesn't make sense):
              "That means I build Qt on my x86 computer and install on x86, but some shared lib is on raspberry."
              Raspberry is not x86, it is ARM. So, how exactly do you build for Raspberry? To cross compile you need a sysroot (basically the filesystem of your target device). This sysroot must contain all needed libraries and header files. I guess you installed the *dev packages on your x86 system? If so this will not help at all. You need to install them on your Raspberry SDCard (you can do it on Raspberry directly) then put this SDCard into your PC mount it and use it as sysroot.
              You can find information here http://wiki.qt.io/Qt_RaspberryPi

              A Offline
              A Offline
              ascnp
              wrote on 6 Oct 2016, 04:43 last edited by
              #6

              @jsulm
              I know that. I am exactly doing that. First, I install tslib1.4 and gstreamer1.0 on raspberry. And then mount the raspberry SD card on my x86 system. I also get a cross-compile tools. All I list gstreamer1.0-dev is install on my Raspberry. But when I configure qt, it can't find them.

              J 1 Reply Last reply 6 Oct 2016, 04:50
              0
              • A ascnp
                6 Oct 2016, 04:43

                @jsulm
                I know that. I am exactly doing that. First, I install tslib1.4 and gstreamer1.0 on raspberry. And then mount the raspberry SD card on my x86 system. I also get a cross-compile tools. All I list gstreamer1.0-dev is install on my Raspberry. But when I configure qt, it can't find them.

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 6 Oct 2016, 04:50 last edited by
                #7

                @ascnp Why did you install the dev packages in /usr/local? I'm not sure whether configure looks there by default. You can try to pass these directories to configure, or even better install the packages in their default locations.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                A 1 Reply Last reply 6 Oct 2016, 04:53
                0
                • J jsulm
                  6 Oct 2016, 04:50

                  @ascnp Why did you install the dev packages in /usr/local? I'm not sure whether configure looks there by default. You can try to pass these directories to configure, or even better install the packages in their default locations.

                  A Offline
                  A Offline
                  ascnp
                  wrote on 6 Oct 2016, 04:53 last edited by
                  #8

                  @jsulm
                  you mean /usr/lib? Actually, I am not quite sure where should I install tslib. I have tried to copy all tslib file to /usr/lib, but it didn't work. But my gstreamer1.0 is install by apt-get. Qt also can't find gstreamer. That don't make sense.

                  1 Reply Last reply
                  0
                  • A ascnp
                    6 Oct 2016, 03:34

                    @jsulm
                    The installed gstreamer-dev is as follow.(On Raspberry Pi)

                    gstreamer1.0-clutter-3.0 (3.0.18-1)。
                    gstreamer1.0-clutter (2.0.18-1)。
                    gstreamer1.0-dvswitch (0.1.1-1)。
                    gstreamer1.0-espeak (0.4.0-1)。
                    gstreamer1.0-fluendo-mp3 (0.10.32.debian-1)。
                    gstreamer1.0-nice (0.1.13-0ubuntu2)。
                    gstreamer1.0-pocketsphinx (0.8.0+real5prealpha-1ubuntu2)。
                    gstreamer1.0-alsa (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-doc (1.8.2-1~ubuntu1)。
                    gstreamer1.0-plugins-base (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-base-apps (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-base-dbg (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-base-doc (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-good (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-good-dbg (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-good-doc (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-pulseaudio (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-tools (1.8.2-1~ubuntu1)。
                    gstreamer1.0-x (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-hybris (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-libav (1.8.2-1~ubuntu1)。
                    gstreamer1.0-libav-dbg (1.8.2-1~ubuntu1)。
                    gstreamer1.0-packagekit (0.8.17-4ubuntu6~gcc5.4ubuntu1.1)。
                    gstreamer1.0-plugins-bad (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-bad-dbg (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-bad-doc (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-bad-faad (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-bad-videoparsers (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-ugly (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-ugly-amr (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-ugly-dbg (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-plugins-ugly-doc (1.8.2-1ubuntu0.1)。
                    gstreamer1.0-vaapi (1.8.2-1~ubuntu2)。
                    gstreamer1.0-vaapi-doc (1.8.2-1~ubuntu2)。

                    K Offline
                    K Offline
                    kshegunov
                    Moderators
                    wrote on 6 Oct 2016, 04:59 last edited by kshegunov 10 Jun 2016, 05:03
                    #9

                    @ascnp said in QT5.7 Coss-Compile with Raspberry Pi 3:

                    gstreamer1.0-nice (0.1.13-0ubuntu2)
                    gstreamer1.0-pocketsphinx (0.8.0+real5prealpha-1ubuntu2)
                    gstreamer1.0-alsa (1.8.2-1ubuntu0.1)
                    ...

                    I have no experience with rpi, but why do you have ubuntu packages installed on a debian? It looks wrong.
                    For example: https://packages.debian.org/jessie/gstreamer1.0-alsa
                    There isn't any ubuntu mentioned there.

                    @jsulm said in QT5.7 Coss-Compile with Raspberry Pi 3:

                    I'm not sure whether configure looks there by default.

                    It does, at least for /usr/local/lib and /usr/local/include.

                    Read and abide by the Qt Code of Conduct

                    A 1 Reply Last reply 6 Oct 2016, 05:15
                    1
                    • p3c0P Offline
                      p3c0P Offline
                      p3c0
                      Moderators
                      wrote on 6 Oct 2016, 05:10 last edited by
                      #10

                      @ascnp When nothing works try running configure script with -v(verbose) option. It will exactly show what it requires and what is missing and also exact file locations.

                      157

                      A 1 Reply Last reply 6 Oct 2016, 05:24
                      0
                      • K kshegunov
                        6 Oct 2016, 04:59

                        @ascnp said in QT5.7 Coss-Compile with Raspberry Pi 3:

                        gstreamer1.0-nice (0.1.13-0ubuntu2)
                        gstreamer1.0-pocketsphinx (0.8.0+real5prealpha-1ubuntu2)
                        gstreamer1.0-alsa (1.8.2-1ubuntu0.1)
                        ...

                        I have no experience with rpi, but why do you have ubuntu packages installed on a debian? It looks wrong.
                        For example: https://packages.debian.org/jessie/gstreamer1.0-alsa
                        There isn't any ubuntu mentioned there.

                        @jsulm said in QT5.7 Coss-Compile with Raspberry Pi 3:

                        I'm not sure whether configure looks there by default.

                        It does, at least for /usr/local/lib and /usr/local/include.

                        A Offline
                        A Offline
                        ascnp
                        wrote on 6 Oct 2016, 05:15 last edited by
                        #11

                        @kshegunov
                        I have ubuntu mate on Raspberry. So it automatically install ubuntu version dev. Actually it is almost the same as jessie.

                        J 1 Reply Last reply 6 Oct 2016, 05:19
                        0
                        • A ascnp
                          6 Oct 2016, 05:15

                          @kshegunov
                          I have ubuntu mate on Raspberry. So it automatically install ubuntu version dev. Actually it is almost the same as jessie.

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 6 Oct 2016, 05:19 last edited by
                          #12

                          @ascnp Can you post the output of configure (at least where it says it cannot find)? You should see what exactly didn't work: header file not found, libs not found, ...

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • p3c0P p3c0
                            6 Oct 2016, 05:10

                            @ascnp When nothing works try running configure script with -v(verbose) option. It will exactly show what it requires and what is missing and also exact file locations.

                            A Offline
                            A Offline
                            ascnp
                            wrote on 6 Oct 2016, 05:24 last edited by
                            #13

                            @p3c0
                            I add -v and it shows

                            the tslib:
                            checking for tslib...
                            /home/lxy/Downloads/qt5.7安装/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/opt/rasp-pi-rootfs-qt5.7 -O2 -Wall -W -fPIC -I. -I/opt/rasp-pi-rootfs-qt5.7/usr/local/tslib -I../../../mkspecs/devices/linux-rasp-pi-g++ -o tslib.o tslib.cpp
                            tslib.cpp:40:19: fatal error: tslib.h: No such file or directory
                            compilation terminated.
                            Makefile:195: recipe for target 'tslib.o' failed
                            make: *** [tslib.o] Error 1
                            tslib disabled.
                            The tslib functionality test failed!

                            and gstreamer1.0:
                            checking for GStreamer 1.0...
                            Project ERROR: gstreamer-audio-1.0 development package not found
                            GStreamer 1.0 disabled.
                            The GStreamer 1.0 functionality test failed!

                            It looks like that I don't install tslib in the correct path. But I don't know where should I install.
                            I will check if I really install gsreamer-audio-1.0

                            1 Reply Last reply
                            0
                            • p3c0P Offline
                              p3c0P Offline
                              p3c0
                              Moderators
                              wrote on 6 Oct 2016, 05:28 last edited by
                              #14

                              @ascnp Looks like tslib.h is missing in one of the included paths probably /opt/rasp-pi-rootfs-qt5.7/usr/local/tslib

                              157

                              A 1 Reply Last reply 6 Oct 2016, 05:39
                              0
                              • p3c0P p3c0
                                6 Oct 2016, 05:28

                                @ascnp Looks like tslib.h is missing in one of the included paths probably /opt/rasp-pi-rootfs-qt5.7/usr/local/tslib

                                A Offline
                                A Offline
                                ascnp
                                wrote on 6 Oct 2016, 05:39 last edited by
                                #15

                                @p3c0

                                $ ls -R
                                .:
                                bin etc include lib

                                ./bin:
                                ts_calibrate ts_harvest ts_print ts_print_raw ts_test

                                ./etc:
                                ts.conf

                                ./include:
                                tslib.h

                                ./lib:
                                libts-0.0.so.0 libts-0.0.so.0.1.1 libts.la libts.so pkgconfig ts

                                ./lib/pkgconfig:
                                tslib-0.0.pc

                                ./lib/ts:
                                arctic2.la corgi.la h3600.la linear_h2200.la mk712.la ucb1x00.la
                                arctic2.so corgi.so h3600.so linear_h2200.so mk712.so ucb1x00.so
                                collie.la dejitter.la input.la linear.la pthres.la variance.la
                                collie.so dejitter.so input.so linear.so pthres.so variance.so

                                As is shown above, tslib.h is in /usr/local/tslib/include.

                                And I find that I did not have gstreamer1.0-audio. And apt-get can't get gstreamer1.0-audio.

                                J 1 Reply Last reply 6 Oct 2016, 05:49
                                0
                                • A ascnp
                                  6 Oct 2016, 05:39

                                  @p3c0

                                  $ ls -R
                                  .:
                                  bin etc include lib

                                  ./bin:
                                  ts_calibrate ts_harvest ts_print ts_print_raw ts_test

                                  ./etc:
                                  ts.conf

                                  ./include:
                                  tslib.h

                                  ./lib:
                                  libts-0.0.so.0 libts-0.0.so.0.1.1 libts.la libts.so pkgconfig ts

                                  ./lib/pkgconfig:
                                  tslib-0.0.pc

                                  ./lib/ts:
                                  arctic2.la corgi.la h3600.la linear_h2200.la mk712.la ucb1x00.la
                                  arctic2.so corgi.so h3600.so linear_h2200.so mk712.so ucb1x00.so
                                  collie.la dejitter.la input.la linear.la pthres.la variance.la
                                  collie.so dejitter.so input.so linear.so pthres.so variance.so

                                  As is shown above, tslib.h is in /usr/local/tslib/include.

                                  And I find that I did not have gstreamer1.0-audio. And apt-get can't get gstreamer1.0-audio.

                                  J Offline
                                  J Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on 6 Oct 2016, 05:49 last edited by
                                  #16

                                  @ascnp It should be -I/opt/rasp-pi-rootfs-qt5.7/usr/local/tslib/include
                                  And as this error tells:

                                  Project ERROR: gstreamer-audio-1.0 development package not found
                                  

                                  you need gstreamer-audio-1.0 development package

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  A 1 Reply Last reply 6 Oct 2016, 05:54
                                  1
                                  • J jsulm
                                    6 Oct 2016, 05:49

                                    @ascnp It should be -I/opt/rasp-pi-rootfs-qt5.7/usr/local/tslib/include
                                    And as this error tells:

                                    Project ERROR: gstreamer-audio-1.0 development package not found
                                    

                                    you need gstreamer-audio-1.0 development package

                                    A Offline
                                    A Offline
                                    ascnp
                                    wrote on 6 Oct 2016, 05:54 last edited by
                                    #17

                                    @jsulm
                                    yes, it is in /opt/rasp-pi-rootfs-qt5.7/usr/local/tslib/include. Because I run ls -R on raspberry, so it seems in the wrong path. But when I mount SD card on x86 system, it will be in the path as you say.

                                    I am trying to install gstreamer1.0-audio. But apt-get can't find it.

                                    K J p3c0P 3 Replies Last reply 6 Oct 2016, 05:57
                                    0
                                    • A ascnp
                                      6 Oct 2016, 05:54

                                      @jsulm
                                      yes, it is in /opt/rasp-pi-rootfs-qt5.7/usr/local/tslib/include. Because I run ls -R on raspberry, so it seems in the wrong path. But when I mount SD card on x86 system, it will be in the path as you say.

                                      I am trying to install gstreamer1.0-audio. But apt-get can't find it.

                                      K Offline
                                      K Offline
                                      kshegunov
                                      Moderators
                                      wrote on 6 Oct 2016, 05:57 last edited by kshegunov 10 Jun 2016, 06:00
                                      #18

                                      @ascnp said in QT5.7 Coss-Compile with Raspberry Pi 3:

                                      yes, it is in /opt/rasp-pi-rootfs-qt5.7/usr/local/tslib/include.

                                      How did it end up there? /usr/local/tslib isn't a standard search location for includes.
                                      Edit: Don't mind me, it doesn't really matter as it's passed as an additional include path.

                                      PS
                                      I don't know how correct you are by saying your distro is almost the same as jessie, as jessie doesn't provide libts at all. It appears to be deprecated or something.

                                      Read and abide by the Qt Code of Conduct

                                      A 1 Reply Last reply 6 Oct 2016, 06:16
                                      0
                                      • A ascnp
                                        6 Oct 2016, 05:54

                                        @jsulm
                                        yes, it is in /opt/rasp-pi-rootfs-qt5.7/usr/local/tslib/include. Because I run ls -R on raspberry, so it seems in the wrong path. But when I mount SD card on x86 system, it will be in the path as you say.

                                        I am trying to install gstreamer1.0-audio. But apt-get can't find it.

                                        J Offline
                                        J Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on 6 Oct 2016, 05:59 last edited by
                                        #19

                                        @ascnp No, what I mean is: you need to pass -I/opt/rasp-pi-rootfs-qt5.7/usr/local/tslib/include instead of -I/opt/rasp-pi-rootfs-qt5.7/usr/local/tslib to configure. Or move the header file one directory up (to /opt/rasp-pi-rootfs-qt5.7/usr/local/tslib).

                                        /home/lxy/Downloads/qt5.7安装/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/opt/rasp-pi-rootfs-qt5.7 -O2 -Wall -W -fPIC -I. -I/opt/rasp-pi-rootfs-qt5.7/usr/local/tslib -I../../../mkspecs/devices/linux-rasp-pi-g++ -o tslib.o tslib.cpp
                                        

                                        Regarding gsreamer-audio-1.0: I don't know what the correct name is. Just list all gstreamer packages and see whether you can find one with audio (maybe gsreamer-alsa-1.0?).

                                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        1
                                        • A ascnp
                                          6 Oct 2016, 05:54

                                          @jsulm
                                          yes, it is in /opt/rasp-pi-rootfs-qt5.7/usr/local/tslib/include. Because I run ls -R on raspberry, so it seems in the wrong path. But when I mount SD card on x86 system, it will be in the path as you say.

                                          I am trying to install gstreamer1.0-audio. But apt-get can't find it.

                                          p3c0P Offline
                                          p3c0P Offline
                                          p3c0
                                          Moderators
                                          wrote on 6 Oct 2016, 06:03 last edited by
                                          #20

                                          @ascnp said in QT5.7 Coss-Compile with Raspberry Pi 3:

                                          @jsulm
                                          yes, it is in /opt/rasp-pi-rootfs-qt5.7/usr/local/tslib/include. Because I run ls -R on raspberry, so it seems in the wrong path. But when I mount SD card on x86 system, it will be in the path as you say.

                                          I am trying to install gstreamer1.0-audio. But apt-get can't find it.

                                          Try installing libgstreamer-plugins-base1.0-dev

                                          157

                                          1 Reply Last reply
                                          0

                                          1/25

                                          5 Oct 2016, 08:33

                                          • Login

                                          • Login or register to search.
                                          1 out of 25
                                          • First post
                                            1/25
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved