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. qt5.5 cross-compilation gstreamer error

qt5.5 cross-compilation gstreamer error

Scheduled Pinned Locked Moved Solved Mobile and Embedded
21 Posts 3 Posters 10.8k Views 1 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Is it the system's libpcre ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • U Offline
      U Offline
      unnamed
      wrote on last edited by
      #3

      with -system-pcre added to configure i get this:
      PCRE auto-detection... ()
      /Users/un/opt/rpi-tools/arm-linux-gnueabihf-osx/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-rasp-pi-g++ -o pcre.o pcre.cpp
      /Users/un/opt/rpi-tools/arm-linux-gnueabihf-osx/bin/arm-linux-gnueabihf-g++ -Wl,-rpath-link,/mnt/rasp-pi-rootfs/opt/vc/lib -Wl,-rpath-link,/mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/mnt/rasp-pi-rootfs/lib/arm-linux-gnueabihf -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -Wl,-O1 -o pcre pcre.o --sysroot=/mnt/rasp-pi-rootfs -lpthread -lpcre16
      /Users/un/opt/rpi-tools/arm-linux-gnueabihf-osx/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lpcre16
      collect2: error: ld returned 1 exit status
      make: *** [pcre] Error 1
      PCRE disabled.
      PCRE support cannot be enabled due to functionality tests!

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Do you have the development packages installed on your target ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • U Offline
          U Offline
          unnamed
          wrote on last edited by unnamed
          #5

          when using -system-pcre and sudo ln -s libpcre.so libpcre16.so i'am back to gstreamer error
          ##########################################################################
          /Users/un/opt/rpi-tools/arm-linux-gnueabihf-osx/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld: /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libglib-2.0.a(libglib_2_0_la-gregex.o): undefined reference to symbol 'pcre_study'
          /Users/un/opt/rpi-tools/arm-linux-gnueabihf-osx/bin/../lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld: note: 'pcre_study' is defined in DSO /mnt/rasp-pi-rootfs/lib/arm-linux-gnueabihf/libpcre.so.3 so try adding it to the linker command line
          /mnt/rasp-pi-rootfs/lib/arm-linux-gnueabihf/libpcre.so.3: could not read symbols: Invalid operation
          collect2: error: ld returned 1 exit status
          make: *** [gstreamer] Error 1
          GStreamer 1.0 disabled.
          GStreamer support cannot be enabled due to functionality tests!
          ##########################################################################

          1 Reply Last reply
          0
          • U Offline
            U Offline
            unnamed
            wrote on last edited by
            #6
            This post is deleted!
            1 Reply Last reply
            0
            • U Offline
              U Offline
              unnamed
              wrote on last edited by
              #7

              got it working, i have added -lpcre to pkg-config file o glib :)

              D 1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Since you added that symlink, it means that you don't have the pcre dev package installed

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • U Offline
                  U Offline
                  unnamed
                  wrote on last edited by unnamed
                  #9

                  hm you are right but where from do i get libpcre16 ?
                  after symlinking that lib i can configure but when i do "make" i get error connected with libpcre16 i think
                  ##########################################################################
                  ractstate.o .obj/moc_qstate.o .obj/moc_qfinalstate.o .obj/moc_qhistorystate.o .obj/moc_qabstracttransition.o .obj/moc_qsignaltransition.o .obj/moc_qeventtransition.o -lpthread -lz -lpcre16 -lm -ldl -lrt
                  .obj/qthread_unix.o: In function QThreadPrivate::createEventDispatcher(QThreadData*)': qthread_unix.cpp:(.text+0x280): undefined reference to QEventDispatcherGlib::versionSupported()'
                  qthread_unix.cpp:(.text+0x29c): undefined reference to QEventDispatcherGlib::QEventDispatcherGlib(QObject*)' .obj/qregularexpression.o: In function pcre16SafeExec(real_pcre16 const*, pcre16_extra const*, unsigned short const*, int, int, int, int*, int)':
                  qregularexpression.cpp:(.text+0x264): undefined reference to pcre16_exec' qregularexpression.cpp:(.text+0x2cc): undefined reference to pcre16_jit_stack_alloc'
                  qregularexpression.cpp:(.text+0x334): undefined reference to pcre16_exec' .obj/qregularexpression.o: In function QRegularExpressionPrivate::~QRegularExpressionPrivate()':
                  qregularexpression.cpp:(.text+0x574): undefined reference to pcre16_free_study' qregularexpression.cpp:(.text+0x610): undefined reference to pcre16_free'
                  .obj/qregularexpression.o: In function QRegularExpressionPrivate::cleanCompiledPattern()': qregularexpression.cpp:(.text+0x6cc): undefined reference to pcre16_free_study'
                  qregularexpression.cpp:(.text+0x6f8): undefined reference to pcre16_free' .obj/qregularexpression.o: In function QRegularExpressionPrivate::getPatternInfo()':
                  qregularexpression.cpp:(.text+0x718): undefined reference to pcre16_fullinfo' qregularexpression.cpp:(.text+0x72c): undefined reference to pcre16_fullinfo'
                  qregularexpression.cpp:(.text+0x780): undefined reference to pcre16_fullinfo' qregularexpression.cpp:(.text+0x7a4): undefined reference to pcre16_config'
                  .obj/qregularexpression.o: In function QRegularExpressionPrivate::compilePattern()': qregularexpression.cpp:(.text+0xa00): undefined reference to pcre16_free_study'
                  qregularexpression.cpp:(.text+0xa80): undefined reference to pcre16_compile2' qregularexpression.cpp:(.text+0xae4): undefined reference to pcre16_free'
                  .obj/qregularexpression.o: In function QRegularExpressionPrivate::optimizePattern(QRegularExpressionPrivate::OptimizePatternOption)': qregularexpression.cpp:(.text+0xb70): undefined reference to pcre16_study'
                  qregularexpression.cpp:(.text+0xc78): undefined reference to pcre16_assign_jit_stack' .obj/qregularexpression.o: In function QRegularExpressionPrivate::captureIndexForName(QString const&) const':
                  qregularexpression.cpp:(.text+0xd48): undefined reference to pcre16_get_stringnumber' .obj/qregularexpression.o: In function QRegularExpressionMatch::capturedRef(QString const&) const':
                  qregularexpression.cpp:(.text+0x17a4): undefined reference to pcre16_get_stringnumber' .obj/qregularexpression.o: In function QRegularExpressionMatch::captured(QString const&) const':
                  qregularexpression.cpp:(.text+0x1904): undefined reference to pcre16_get_stringnumber' .obj/qregularexpression.o: In function QRegularExpressionMatch::capturedStart(QString const&) const':
                  qregularexpression.cpp:(.text+0x19c8): undefined reference to pcre16_get_stringnumber' .obj/qregularexpression.o: In function QRegularExpressionMatch::capturedLength(QString const&) const':
                  qregularexpression.cpp:(.text+0x1a6c): undefined reference to pcre16_get_stringnumber' .obj/qregularexpression.o:qregularexpression.cpp:(.text+0x1b10): more undefined references to pcre16_get_stringnumber' follow
                  .obj/qregularexpression.o: In function QRegularExpression::namedCaptureGroups() const': qregularexpression.cpp:(.text+0x4090): undefined reference to pcre16_fullinfo'
                  qregularexpression.cpp:(.text+0x40a8): undefined reference to pcre16_fullinfo' qregularexpression.cpp:(.text+0x40c0): undefined reference to pcre16_fullinfo'
                  .obj/qregularexpression.o: In function QThreadStorage<QPcreJitStackPointer*>::deleteData(void*)': qregularexpression.cpp:(.text._ZN14QThreadStorageIP20QPcreJitStackPointerE10deleteDataEPv[_ZN14QThreadStorageIP20QPcreJitStackPointerE10deleteDataEPv]+0x18): undefined reference to pcre16_jit_stack_free'
                  .obj/qcoreapplication.o: In function QCoreApplicationPrivate::createEventDispatcher()': qcoreapplication.cpp:(.text+0x9c): undefined reference to QEventDispatcherGlib::versionSupported()'
                  qcoreapplication.cpp:(.text+0xb8): undefined reference to `QEventDispatcherGlib::QEventDispatcherGlib(QObject*)'
                  collect2: error: ld returned 1 exit status
                  make[3]: *** [../../lib/libQt5Core.so.5.5.1] Error 1
                  make[2]: *** [sub-corelib-make_first] Error 2
                  make[1]: *** [sub-src-make_first] Error 2
                  make: *** [module-qtbase-make_first] Error 2
                  ##########################################################################

                  where from can i get libpcre16 ? i'am search using apt-cache search, and thats what i get:
                  apt-cache search libpcre
                  clisp-module-pcre - clisp module that adds libpcre support
                  libpcre++-dev - C++ wrapper class for pcre (development)
                  libpcre++0 - C++ wrapper class for pcre (runtime)
                  libpcre-ocaml - OCaml bindings for PCRE (runtime)
                  libpcre-ocaml-dev - OCaml bindings for PCRE (Perl Compatible Regular Expression)
                  libpcre3 - Perl 5 Compatible Regular Expression Library - runtime files <- installed
                  libpcre3-dbg - Perl 5 Compatible Regular Expression Library - debug symbols
                  libpcre3-dev - Perl 5 Compatible Regular Expression Library - development files <- installed
                  libpcrecpp0 - Perl 5 Compatible Regular Expression Library - C++ runtime files
                  pcregrep - grep utility that uses perl 5 compatible regexes.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Silly question but did you install these on your host or target ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • U Offline
                      U Offline
                      unnamed
                      wrote on last edited by
                      #11

                      on my target :)

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        Did you re-do the configuration after installing the missing dependencies ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • U Offline
                          U Offline
                          unnamed
                          wrote on last edited by
                          #13

                          yes, many times.
                          every time i change something in my setup i do
                          make clean
                          new ./configure command to try with different options
                          make

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            make clean is not enough, you need to start from a clean state.

                            I recommend out of source builds so when something goes wrong you can just nuke the folder and you don't pollute the sources.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • U Offline
                              U Offline
                              unnamed
                              wrote on last edited by unnamed
                              #15

                              ok, i'am going to try today, so i need to remove whole Src folder, redownload and rerun whole process ?

                              //edit
                              same thing happened. i have completly removed Src folder, and redownloaded it with qt "maintaince tool"
                              i'am stuck at:
                              ###############################################################################################
                              eventtransition.o -lpthread -lz -lpcre16 -lm -ldl -lrt
                              .obj/qregularexpression.o: In function pcre16SafeExec(real_pcre16 const*, pcre16_extra const*, unsigned short const*, int, int, int, int*, int)': qregularexpression.cpp:(.text+0x264): undefined reference to pcre16_exec'
                              qregularexpression.cpp:(.text+0x2cc): undefined reference to pcre16_jit_stack_alloc' qregularexpression.cpp:(.text+0x334): undefined reference to pcre16_exec'
                              .obj/qregularexpression.o: In function QRegularExpressionPrivate::~QRegularExpressionPrivate()': qregularexpression.cpp:(.text+0x574): undefined reference to pcre16_free_study'
                              qregularexpression.cpp:(.text+0x610): undefined reference to pcre16_free' .obj/qregularexpression.o: In function QRegularExpressionPrivate::cleanCompiledPattern()':
                              qregularexpression.cpp:(.text+0x6cc): undefined reference to pcre16_free_study' qregularexpression.cpp:(.text+0x6f8): undefined reference to pcre16_free'
                              .obj/qregularexpression.o: In function QRegularExpressionPrivate::getPatternInfo()': qregularexpression.cpp:(.text+0x718): undefined reference to pcre16_fullinfo'
                              qregularexpression.cpp:(.text+0x72c): undefined reference to pcre16_fullinfo' qregularexpression.cpp:(.text+0x780): undefined reference to pcre16_fullinfo'
                              qregularexpression.cpp:(.text+0x7a4): undefined reference to pcre16_config' .obj/qregularexpression.o: In function QRegularExpressionPrivate::compilePattern()':
                              qregularexpression.cpp:(.text+0xa00): undefined reference to pcre16_free_study' qregularexpression.cpp:(.text+0xa80): undefined reference to pcre16_compile2'
                              qregularexpression.cpp:(.text+0xae4): undefined reference to pcre16_free' .obj/qregularexpression.o: In function QRegularExpressionPrivate::optimizePattern(QRegularExpressionPrivate::OptimizePatternOption)':
                              qregularexpression.cpp:(.text+0xb70): undefined reference to pcre16_study' qregularexpression.cpp:(.text+0xc78): undefined reference to pcre16_assign_jit_stack'
                              .obj/qregularexpression.o: In function QRegularExpressionPrivate::captureIndexForName(QString const&) const': qregularexpression.cpp:(.text+0xd48): undefined reference to pcre16_get_stringnumber'
                              .obj/qregularexpression.o: In function QRegularExpressionMatch::capturedRef(QString const&) const': qregularexpression.cpp:(.text+0x17a4): undefined reference to pcre16_get_stringnumber'
                              .obj/qregularexpression.o: In function QRegularExpressionMatch::captured(QString const&) const': qregularexpression.cpp:(.text+0x1904): undefined reference to pcre16_get_stringnumber'
                              .obj/qregularexpression.o: In function QRegularExpressionMatch::capturedStart(QString const&) const': qregularexpression.cpp:(.text+0x19c8): undefined reference to pcre16_get_stringnumber'
                              .obj/qregularexpression.o: In function QRegularExpressionMatch::capturedLength(QString const&) const': qregularexpression.cpp:(.text+0x1a6c): undefined reference to pcre16_get_stringnumber'
                              .obj/qregularexpression.o:qregularexpression.cpp:(.text+0x1b10): more undefined references to pcre16_get_stringnumber' follow .obj/qregularexpression.o: In function QRegularExpression::namedCaptureGroups() const':
                              qregularexpression.cpp:(.text+0x4090): undefined reference to pcre16_fullinfo' qregularexpression.cpp:(.text+0x40a8): undefined reference to pcre16_fullinfo'
                              qregularexpression.cpp:(.text+0x40c0): undefined reference to pcre16_fullinfo' .obj/qregularexpression.o: In function QThreadStorage<QPcreJitStackPointer*>::deleteData(void*)':
                              qregularexpression.cpp:(.text._ZN14QThreadStorageIP20QPcreJitStackPointerE10deleteDataEPv[_ZN14QThreadStorageIP20QPcreJitStackPointerE10deleteDataEPv]+0x18): undefined reference to `pcre16_jit_stack_free'
                              collect2: error: ld returned 1 exit status
                              make[3]: *** [../../lib/libQt5Core.so.5.5.1] Error 1
                              make[2]: *** [sub-corelib-make_first] Error 2
                              make[1]: *** [sub-src-make_first] Error 2
                              make: *** [module-qtbase-make_first] Error 2
                              ###############################################################################################

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                What distribution are you running on your Pi ?

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0
                                • U Offline
                                  U Offline
                                  unnamed
                                  wrote on last edited by
                                  #17

                                  newest jessie

                                  hmm i searched my mac for pcre libs as i think that something confuses qt and i found one occurence of libpcre16 located in /brew2/local/Cellar/pcre
                                  its dependency for something installed via homebrew
                                  is it possible that its source of my failures ? :)

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #18

                                    That possibly can interfere. Note that I'm more used to cross-compilation from Linux host. It make things way easier.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • U Offline
                                      U Offline
                                      unnamed
                                      wrote on last edited by
                                      #19

                                      after 2 weeks got it working... tried on my macbook air with almost clean el capitan :)
                                      to many libs, projects, work stuff on my mac pro and i can't find the problem, maybe something connected to homebrew (something like apt-get in linux) installations.

                                      for anyone who stumble upon this thread that should be a good lesson -> clean system = simple compilation :)

                                      thanks for help SGaist :)

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #20

                                        Good !

                                        You're welcome !

                                        Then please, mark the thread as solved using the "Topic Tool" button so other forum users may know a solution has been found :)

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        0
                                        • U unnamed

                                          got it working, i have added -lpcre to pkg-config file o glib :)

                                          D Offline
                                          D Offline
                                          DarCom
                                          wrote on last edited by
                                          #21

                                          @unnamed
                                          Hi.
                                          I encountered same problem, would you please tell what did you do to solve the problem?
                                          By the way, what do you mean by " i have added -lpcre to pkg-config file o glib :)"?
                                          Thanks in advance.

                                          1 Reply Last reply
                                          0

                                          • Login

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