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. How to determine the Way(LinuxFB/XCB/..) when build the QT source code
QtWS25 Last Chance

How to determine the Way(LinuxFB/XCB/..) when build the QT source code

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 834 Views
  • 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 Offline
    S Offline
    Simon.Chen.VIP
    wrote on last edited by
    #1

    Hi there,
    I'm trying to build the QT5.9.6 for the embedded linux platform.
    After built, I copy the lib and application file to the embedded linux, but the application could not be executed on the embedded platform.
    Is there any way to check the embedded linux platform display driver method?

    Regards,
    Simon

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

      Hi and welcome to devnet,

      Look at the summary of the configure call. You'll see all the backends that have been enabled.

      As for your device, what error did you get when starting your application ?
      Also, what backend are you interested in ?

      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
      1
      • S Offline
        S Offline
        Simon.Chen.VIP
        wrote on last edited by
        #3

        Hi SGaist,
        Thank you. I'm new to QT.

        I'm trying to build QT, with command below:

        sudo ./configure -release -opensource -confirm-license -silent -nomake examples -nomake tools -no-opengl -no-dbus -no-xcb -qt-zlib -device linux-sam-neon-g++ -device-option CROSS_COMPILE=/home/simon/Workspace/Boards/smarc-imx7d/gcc-linaro-5.3.1/bin/arm-linux-gnueabihf- -sysroot /home/simon/Workspace/Boards/smarc-imx7d/ROOTFS -prefix /opt/Qt5.9.6
        

        It comes the errors:

        Running configuration tests...
        Checking for valid makespec... Note: Also available for Linux: linux-clang linux-icc
        
        ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.
        
        Check config.log for details.
        

        Attached the config.log, How can i do for this?

        Regards,
        Simon[0_1531118637270_config.log](Uploading 100%)

        jsulmJ 1 Reply Last reply
        0
        • S Simon.Chen.VIP

          Hi SGaist,
          Thank you. I'm new to QT.

          I'm trying to build QT, with command below:

          sudo ./configure -release -opensource -confirm-license -silent -nomake examples -nomake tools -no-opengl -no-dbus -no-xcb -qt-zlib -device linux-sam-neon-g++ -device-option CROSS_COMPILE=/home/simon/Workspace/Boards/smarc-imx7d/gcc-linaro-5.3.1/bin/arm-linux-gnueabihf- -sysroot /home/simon/Workspace/Boards/smarc-imx7d/ROOTFS -prefix /opt/Qt5.9.6
          

          It comes the errors:

          Running configuration tests...
          Checking for valid makespec... Note: Also available for Linux: linux-clang linux-icc
          
          ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.
          
          Check config.log for details.
          

          Attached the config.log, How can i do for this?

          Regards,
          Simon[0_1531118637270_config.log](Uploading 100%)

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Simon.Chen.VIP Add -v parameter to your configure call and see what exactly is happening.

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

          S 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Simon.Chen.VIP Add -v parameter to your configure call and see what exactly is happening.

            S Offline
            S Offline
            Simon.Chen.VIP
            wrote on last edited by
            #5

            @jsulm

            Here is the outcome:

            > /home/simon/Workspace/Boards/smarc-imx7d/gcc-linaro-5.3.1/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -mfloat-abi=hard --sysroot=/home/simon/Workspace/Boards/smarc-imx7d/ROOTFS -O2 -w -fPIC  -I/home/simon/Qt/5.9.6/Src/qtbase/config.tests/verifyspec -I. -I/home/simon/Qt/5.9.6/Src/qtbase/mkspecs/devices/linux-sam-neon-g++ -o verifyspec.o /home/simon/Qt/5.9.6/Src/qtbase/config.tests/verifyspec/verifyspec.cpp
            > /home/simon/Workspace/Boards/smarc-imx7d/gcc-linaro-5.3.1/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/simon/Workspace/Boards/smarc-imx7d/ROOTFS -Wl,-O1 -o verifyspec verifyspec.o    
            > /home/simon/Workspace/Boards/smarc-imx7d/gcc-linaro-5.3.1/bin/../lib/gcc/arm-linux-gnueabihf/5.3.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find crt1.o: No such file or directory
            > /home/simon/Workspace/Boards/smarc-imx7d/gcc-linaro-5.3.1/bin/../lib/gcc/arm-linux-gnueabihf/5.3.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory
            > /home/simon/Workspace/Boards/smarc-imx7d/gcc-linaro-5.3.1/bin/../lib/gcc/arm-linux-gnueabihf/5.3.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lm
            > collect2: error: ld returned 1 exit status
            > Makefile:66: recipe for target 'verifyspec' failed
            > make: *** [verifyspec] Error 1
            Note: Also available for Linux: linux-clang linux-icc
            
            ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.
            
            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What compiler was used to build your sysroot ?

              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

              • Login

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