Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Qt5.12.3][Compilation Error] No, I didn't forgot to setup the environment.
Forum Updated to NodeBB v4.3 + New Features

[Qt5.12.3][Compilation Error] No, I didn't forgot to setup the environment.

Scheduled Pinned Locked Moved Solved Installation and Deployment
9 Posts 3 Posters 776 Views 3 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.
  • C Offline
    C Offline
    closx
    wrote on last edited by closx
    #1

    Hello everyone,
    I am trying to cross-build Qt for my board 'Humming Board 2' by SolidRun. Since there are no a single guide for building 5.12.3 for Humming Board, I am facing 100 errors a day.
    I am following this guide for Qt5.3. Most of the links are broken and configuration of course does not work for 5.12.3.
    I have used a different image than described in the guide and stuff, but when I am trying to configure the 'qtbase' with the configuration settings;

    ./configure -v -opensource -confirm-license -no-pch -no-xcb -no-opengl -opengl es2 -make libs -no-icu \
    -device linux-imx6-g++ -device-option CROSS_COMPILE=~/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
    -sysroot /mnt/hummingboard-rootfs -no-gcc-sysroot -prefix /usr/local/qt5-hum \
    -device-option DISTRO_OPTS=hard-float
    

    It Says,

    Project ERROR: Cannot run target compiler '/home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++'. Output:
    ===================
    ===================
    Maybe you forgot to setup the environment?
    

    I tried 3 different cross-compilers;

    gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf
    gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux
    gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux
    

    Guys, I just want to compile Qt JUST ONCE WITHOUT A PROBLEM in my life :D
    Any thoughts?
    Thanks!

    bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
    tag me (like @closx) if you are answering to me, so I can notice :D

    Pablo J. RoginaP 1 Reply Last reply
    0
    • C closx

      Hello everyone,
      I am trying to cross-build Qt for my board 'Humming Board 2' by SolidRun. Since there are no a single guide for building 5.12.3 for Humming Board, I am facing 100 errors a day.
      I am following this guide for Qt5.3. Most of the links are broken and configuration of course does not work for 5.12.3.
      I have used a different image than described in the guide and stuff, but when I am trying to configure the 'qtbase' with the configuration settings;

      ./configure -v -opensource -confirm-license -no-pch -no-xcb -no-opengl -opengl es2 -make libs -no-icu \
      -device linux-imx6-g++ -device-option CROSS_COMPILE=~/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
      -sysroot /mnt/hummingboard-rootfs -no-gcc-sysroot -prefix /usr/local/qt5-hum \
      -device-option DISTRO_OPTS=hard-float
      

      It Says,

      Project ERROR: Cannot run target compiler '/home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++'. Output:
      ===================
      ===================
      Maybe you forgot to setup the environment?
      

      I tried 3 different cross-compilers;

      gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf
      gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux
      gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux
      

      Guys, I just want to compile Qt JUST ONCE WITHOUT A PROBLEM in my life :D
      Any thoughts?
      Thanks!

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by Pablo J. Rogina
      #2

      @closx

      1. what happens if you run from command line?
      /home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
      
      1. What's your Host OS? is it 32 or 64 bits?

      gcc-linaro-7.4.1-2019.02-i686

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      C 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @closx

        1. what happens if you run from command line?
        /home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
        
        1. What's your Host OS? is it 32 or 64 bits?

        gcc-linaro-7.4.1-2019.02-i686

        C Offline
        C Offline
        closx
        wrote on last edited by
        #3

        @Pablo-J.-Rogina said in [Qt5.12.3][Compilation Error] No, I didn't forgot to setup the environment.:

        /home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++

        It gives 'no input' fatal error

        closx@closx-pc:~/hummingboard$ /home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
        arm-linux-gnueabihf-g++: fatal error: no input files
        compilation terminated.
        

        and my host system is 64 bit ubuntu (32 bit libs are already installed)

        closx@closx-pc:~/hummingboard$ uname -a
        Linux closx-pc 4.15.0-54-generic #58~16.04.1-Ubuntu SMP Mon Jun 24 13:21:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
        

        bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
        tag me (like @closx) if you are answering to me, so I can notice :D

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

          Hi,

          What info do you get if you add the -v option ?

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

          C 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            What info do you get if you add the -v option ?

            C Offline
            C Offline
            closx
            wrote on last edited by
            #5

            @SGaist allright, I will share all three outputs of all three compilers I use.

            gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf

            Using built-in specs.
            COLLECT_GCC=/home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
            COLLECT_LTO_WRAPPER=/home/closx/hummingboard/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/7.4.1/lto-wrapper
            Target: arm-linux-gnueabihf
            Configured with: '/home/tcwg-buildslave/workspace/tcwg-make-release_0/snapshots/gcc.git~linaro-7.4-2019.02/configure' SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-shared --without-included-gettext --enable-nls --with-system-zlib --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu
            Thread model: posix
            gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02) 
            

            gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux

            Using built-in specs.
            COLLECT_GCC=./arm-linux-gnueabi-g++
            COLLECT_LTO_WRAPPER=/home/closx/hummingboard/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux/bin/../libexec/gcc/arm-linux-gnueabi/4.7.1/lto-wrapper
            Target: arm-linux-gnueabi
            Configured with: /cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/src/gcc-linaro-4.7-2012.04/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabi --prefix=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/install --with-sysroot=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/install/arm-linux-gnueabi/libc --enable-languages=c,c++,fortran --disable-multilib --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=softfp --with-pkgversion='crosstool-NG linaro-1.13.1-2012.04-20120426 - Linaro GCC 2012.04' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-mpfr=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-mpc=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-ppl=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-cloog=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-libelf=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static --with-host-libstdcxx='-L/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/.build/arm-linux-gnueabi/build/static/lib -lpwl' --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-gold --with-local-prefix=/cbuild/slaves/oort14/crosstool-ng/builds/arm-linux-gnueabi-linux/install/arm-linux-gnueabi/libc --enable-c99 --enable-long-long --with-mode=thumb --enable-gnu-unique-object
            Thread model: posix
            gcc version 4.7.1 20120402 (prerelease) (crosstool-NG linaro-1.13.1-2012.04-20120426 - Linaro GCC 2012.04) 
            

            gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux

            Using built-in specs.
            COLLECT_GCC=./arm-linux-gnueabihf-g++
            COLLECT_LTO_WRAPPER=/home/closx/hummingboard/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/../libexec/gcc/arm-linux-gnueabihf/4.8.2/lto-wrapper
            Target: arm-linux-gnueabihf
            Configured with: /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/gcc-linaro-4.8-2013.10/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install --with-sysroot=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-languages=c,c++,fortran --enable-multilib --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard --with-pkgversion='crosstool-NG linaro-1.13.1-4.8-2013.10 - Linaro GCC 2013.10' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpfr=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpc=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-isl=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-cloog=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-libelf=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-gold --with-local-prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-c99 --enable-long-long --with-mode=thumb
            Thread model: posix
            gcc version 4.8.2 20131014 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2013.10 - Linaro GCC 2013.10)
            

            bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
            tag me (like @closx) if you are answering to me, so I can notice :D

            1 Reply Last reply
            0
            • C Offline
              C Offline
              closx
              wrote on last edited by
              #6

              Everyone, I have decided to build a Yocto with meta-qt5 layer. If I can be successful, I will open a topic describes how to do that (since there is not any valid topic like that in any forum).
              Wish me luck! For now, I will set this to be "Solved".

              bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
              tag me (like @closx) if you are answering to me, so I can notice :D

              Pablo J. RoginaP 1 Reply Last reply
              3
              • C closx

                Everyone, I have decided to build a Yocto with meta-qt5 layer. If I can be successful, I will open a topic describes how to do that (since there is not any valid topic like that in any forum).
                Wish me luck! For now, I will set this to be "Solved".

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                @closx good luck! (and thanks for your positive attitude in trying to share your experience)

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

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

                  I was thinking about the configure options not the compilers :-)

                  Anyway, good luck in your new direction !

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

                  C 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    I was thinking about the configure options not the compilers :-)

                    Anyway, good luck in your new direction !

                    C Offline
                    C Offline
                    closx
                    wrote on last edited by closx
                    #9

                    @SGaist Yep, issue was about the configurations :D
                    Thank you, SGaist! I could boot a Yocto image with meta-qt5 layer!
                    Now only thing is creation of a toolchain :D

                    bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
                    tag me (like @closx) if you are answering to me, so I can notice :D

                    1 Reply Last reply
                    1

                    • Login

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