跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  2. Qt Development
  3. Mobile and Embedded
  4. External libraries on Raspberry Pi 3 B+
Forum Updated to NodeBB v4.3 + New Features

External libraries on Raspberry Pi 3 B+

已排程 已置頂 已鎖定 已移動 Solved Mobile and Embedded
28 貼文 7 Posters 7.5k 瀏覽 2 Watching
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • sneubertS 離線
    sneubertS 離線
    sneubert
    寫於 最後由 編輯
    #21

    this seems to be a compiler missmatch between your cross-compiler an the compiler used to create the library, one thing you can try is to put

    #define _GLIBCXX_USE_CXX11_ABI 0
    

    before include any standard library in your code

    C 1 條回覆 最後回覆
    0
    • sneubertS sneubert

      this seems to be a compiler missmatch between your cross-compiler an the compiler used to create the library, one thing you can try is to put

      #define _GLIBCXX_USE_CXX11_ABI 0
      

      before include any standard library in your code

      C 離線
      C 離線
      Crindu
      寫於 最後由 編輯
      #22

      @sneubert Unfortunately it doesn't work. I noticed that copying the file on the Raspberry and compiling from there, it works! And this is strange because the compiler should be the same as the toolchain

      1 條回覆 最後回覆
      0
      • sneubertS 離線
        sneubertS 離線
        sneubert
        寫於 最後由 編輯
        #23

        what version of gcc are you using for cross compiling

        /home/cristiano/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -v
        

        what version of gcc is on your rpi

        g++ -v 
        
        C 1 條回覆 最後回覆
        2
        • sneubertS sneubert

          what version of gcc are you using for cross compiling

          /home/cristiano/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -v
          

          what version of gcc is on your rpi

          g++ -v 
          
          C 離線
          C 離線
          Crindu
          寫於 最後由 編輯
          #24

          @sneubert
          1:

          Using built-in specs.
          COLLECT_GCC=/home/cristiano/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++
          COLLECT_LTO_WRAPPER=/home/cristiano/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.3/lto-wrapper
          Target: arm-linux-gnueabihf
          Configured with: /home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/.build/src/gcc-linaro-4.8-2014.03/configure --build=x86_64-build_unknown-linux-gnu --host=x86_64-build_unknown-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/install --with-sysroot=/home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/install/arm-linux-gnueabihf/libc --enable-languages=c,c++,fortran --disable-multilib --enable-multiarch --with-arch=armv6 --with-tune=arm1176jz-s --with-fpu=vfp --with-float=hard --with-pkgversion='crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/.build/arm-linux-gnueabihf/build/static --with-mpfr=/home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/.build/arm-linux-gnueabihf/build/static --with-mpc=/home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/.build/arm-linux-gnueabihf/build/static --with-isl=/home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/.build/arm-linux-gnueabihf/build/static --with-cloog=/home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/.build/arm-linux-gnueabihf/build/static --with-libelf=/home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/.build/arm-linux-gnueabihf/build/static --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-plugin --enable-gold --with-local-prefix=/home/zhehe01/work/bzr/pi-build/builds/arm-linux-gnueabihf-raspbian-linux/install/arm-linux-gnueabihf/libc --enable-c99 --enable-long-long --with-float=hard
          Thread model: posix
          gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) 
          
          

          2:

          Using built-in specs.
          COLLECT_GCC=g++
          COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/6/lto-wrapper
          Target: arm-linux-gnueabihf
          Configured with: ../src/configure -v --with-pkgversion='Raspbian 6.3.0-18+rpi1+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
          Thread model: posix
          gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1+deb9u1) 
          

          I think I need to update the cross compiler. Can I simply download the same version of the Raspberry and set it as compiler in the Qt Creator kit?

          1 條回覆 最後回覆
          0
          • sneubertS 離線
            sneubertS 離線
            sneubert
            寫於 最後由 編輯
            #25

            I always use the linaro cross-compiler, latest gcc 7.3.1 should do
            https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/
            But I think you have to rebuild qt with this compiler.

            C 2 條回覆 最後回覆
            3
            • sneubertS sneubert

              I always use the linaro cross-compiler, latest gcc 7.3.1 should do
              https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/
              But I think you have to rebuild qt with this compiler.

              C 離線
              C 離線
              Crindu
              寫於 最後由 編輯
              #26

              @sneubert Ok I'll try to repeat steps 10 and 11 with the latest version of gcc

              1 條回覆 最後回覆
              0
              • sneubertS sneubert

                I always use the linaro cross-compiler, latest gcc 7.3.1 should do
                https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/
                But I think you have to rebuild qt with this compiler.

                C 離線
                C 離線
                Crindu
                寫於 最後由 編輯
                #27

                @sneubert It worked at first try! Thank you so much, you really helped me a lot!!

                H 1 條回覆 最後回覆
                1
                • C Crindu

                  @sneubert It worked at first try! Thank you so much, you really helped me a lot!!

                  H 離線
                  H 離線
                  Huy hust
                  寫於 最後由 編輯
                  #28

                  @Crindu Dear, I am facing with problem that same with your. But i dont know how to update gcc in cross compile, can you help me?

                  1 條回覆 最後回覆
                  0

                  • 登入

                  • Login or register to search.
                  • 第一個貼文
                    最後的貼文
                  0
                  • 版面
                  • 最新
                  • 標籤
                  • 熱門
                  • 使用者
                  • 群組
                  • 搜尋
                  • Get Qt Extensions
                  • Unsolved