Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Errors while configuring Qt5.5 for Beaglebone black

    Mobile and Embedded
    1
    1
    340
    Loading More Posts
    • 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.
    • S
      saurabh162 last edited by

      Hello Developers

      Following your instructions on Internet I was trying to cross build Qt 5.5.1 on my ubuntu host machine and Beaglebone black as target.

      As a summary I took following steps:

      mount /dev/sdx1 /mnt/bbbhf

      wget https://releases.linaro.org/14.11/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.tar.xz

      mkdir /opt/arm-toolchain

      tar -C /opt/arm-toolchain -xvJf gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.tar.xz

      cd cross-compile-tools

      #./fixQualifiedLibraryPaths /mnt/bbbhf/ /opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++

      cd qt-everywhere-opensource-src-5.5.1

      cp -r qtbase/mkspecs/devices/linux-beagleboard-g++ qtbase/mkspecs/devices/linux-bbbhf-g++

      vi qtbase/mkspecs/devices/linux-bbbhf-g++/qmake.conf

      And then I changed:

      COMPILER_FLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp

      to

      COMPILER_FLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard

      #./configure -opensource -confirm-license -no-pch -prefix /opt/qt551-bbbhf -release -force-debug-info -device linux-bbbhf-g++ -make libs -nomake tests -nomake examples -device-option CROSS_COMPILE=/opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/bbbhf -v -qt-zlib

      After running configure command i got lot of errors as given in the end of mail, can you please tell me what can be possible reason for it.

      Additionally please inform me if you need any information from me.

      Thank you very much

      /Error after running configure command******************/

      Determining architecture... ()
      /opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard --sysroot=/mnt/bbbhf -g -Wall -W -fPIC -I. -I../../mkspecs/devices/linux-bbbhf-g++ -o arch.o arch.cpp
      /opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -o arch arch.o -lrt -lpthread -ldl --sysroot=/mnt/bbbhf
      /mnt/bbbhf/usr/lib/arm-linux-gnueabihf/libdl.so: undefined reference to _dl_catch_error@GLIBC_PRIVATE' /mnt/bbbhf/usr/lib/arm-linux-gnueabihf/libdl.so: undefined reference to _dl_signal_error@GLIBC_PRIVATE'
      /mnt/bbbhf/usr/lib/arm-linux-gnueabihf/librt.so: undefined reference to `__close_nocancel@GLIBC_PRIVATE'
      collect2: error: ld returned 1 exit status
      Makefile:105: recipe for target 'arch' failed
      make: *** [arch] Error 1
      Unable to determine architecture!

      Could not determine the target architecture!
      Turn on verbose messaging (-v) to see the final report.
      Determining architecture... ()
      g++ -c -pipe -g -Wall -W -fPIC -I. -I../../mkspecs/linux-g++ -o arch.o arch.cpp
      g++ -o arch arch.o
      Found architecture in binary
      CFG_HOST_ARCH="x86_64"
      CFG_HOST_CPUFEATURES=" mmx sse sse2"
      System architecture: 'unknown'
      Host architecture: 'x86_64'
      C++11 auto-detection... ()
      /opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard --sysroot=/mnt/bbbhf -O2 -g -std=c++0x -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bbbhf-g++ -o c++11.o c++11.cpp
      /opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -o c++11 c++11.o -lrt -lpthread -ldl --sysroot=/mnt/bbbhf
      /mnt/bbbhf/usr/lib/arm-linux-gnueabihf/libdl.so: undefined reference to _dl_catch_error@GLIBC_PRIVATE' /mnt/bbbhf/usr/lib/arm-linux-gnueabihf/libdl.so: undefined reference to _dl_signal_error@GLIBC_PRIVATE'
      /mnt/bbbhf/usr/lib/arm-linux-gnueabihf/librt.so: undefined reference to `__close_nocancel@GLIBC_PRIVATE'
      collect2: error: ld returned 1 exit status
      Makefile:106: recipe for target 'c++11' failed
      make: *** [c++11] Error 1
      C++11 disabled.
      sse2 auto-detection... ()
      /opt/arm-toolchain/gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard --sysroot=/mnt/bbbhf -msse2 -g -Wall -W -fPIC -I. -I../../../mkspecs/devices/linux-bbbhf-g++ -o sse2.o sse2.cpp
      arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
      Makefile:197: recipe for target 'sse2.o' failed
      make: *** [sse2.o] Error 1
      sse2 disabled.
      ipc_sysv auto-detection... ()

      1 Reply Last reply Reply Quote 0
      • First post
        Last post