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. Qt6 on Beaglebone black compiler issues

Qt6 on Beaglebone black compiler issues

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 427 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.
  • T Offline
    T Offline
    timroberts
    wrote on last edited by
    #1

    Hello,

    I've cross compiled Qt6 for a Beaglebone black. I think I've been successful in doing this. I can create a kit set up for the Beaglebone black which is more than I was able to do previously.

    However, I'm running into an issue with a simple ui window project.

    Cmake is failing with the following error:

    Running /usr/bin/cmake -S /home/debian/test -B /home/debian/build-test-BBB-Debug in /home/debian/build-test-BBB-Debug.
    -- The CXX compiler identification is unknown
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - failed
    -- Check for working CXX compiler: /home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
    -- Check for working CXX compiler: /home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ - broken
    CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message):
      The C++ compiler
    
        "/home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++"
    
      is not able to compile a simple test program.
    
      It fails with the following output:
    
        Change Dir: /home/debian/build-test-BBB-Debug/CMakeFiles/CMakeScratch/TryCompile-8s6irG
        
        Run Build Command(s):/usr/bin/ninja cmTC_fd1ce && [1/2] Building CXX object CMakeFiles/cmTC_fd1ce.dir/testCXXCompiler.cxx.o
        FAILED: CMakeFiles/cmTC_fd1ce.dir/testCXXCompiler.cxx.o 
        /home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++   -DQT_QML_DEBUG -o CMakeFiles/cmTC_fd1ce.dir/testCXXCompiler.cxx.o -c /home/debian/build-test-BBB-Debug/CMakeFiles/CMakeScratch/TryCompile-8s6irG/testCXXCompiler.cxx
        arm-linux-gnueabihf-g++: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
        compilation terminated.
        ninja: build stopped: subcommand failed.
        
        
    
      
    
      CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
      CMakeLists.txt:3 (project)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/debian/build-test-BBB-Debug/CMakeFiles/CMakeOutput.log".
    See also "/home/debian/build-test-BBB-Debug/CMakeFiles/CMakeError.log".
    CMake process exited with exit code 1.
    

    I'm so close to getting this to work, any assistance that can be offered is appreciated!

    The odd thing is that my compiler for the kit is not set to use "/home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++", I've set the kit compiler to use "/usr/bin/arm-linux-gnueabihf-g++.

    Why is Cmake looking in the wrong spot? How can I change where Cmake is looking?

    T 1 Reply Last reply
    0
    • T timroberts

      Hello,

      I've cross compiled Qt6 for a Beaglebone black. I think I've been successful in doing this. I can create a kit set up for the Beaglebone black which is more than I was able to do previously.

      However, I'm running into an issue with a simple ui window project.

      Cmake is failing with the following error:

      Running /usr/bin/cmake -S /home/debian/test -B /home/debian/build-test-BBB-Debug in /home/debian/build-test-BBB-Debug.
      -- The CXX compiler identification is unknown
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - failed
      -- Check for working CXX compiler: /home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
      -- Check for working CXX compiler: /home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ - broken
      CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message):
        The C++ compiler
      
          "/home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++"
      
        is not able to compile a simple test program.
      
        It fails with the following output:
      
          Change Dir: /home/debian/build-test-BBB-Debug/CMakeFiles/CMakeScratch/TryCompile-8s6irG
          
          Run Build Command(s):/usr/bin/ninja cmTC_fd1ce && [1/2] Building CXX object CMakeFiles/cmTC_fd1ce.dir/testCXXCompiler.cxx.o
          FAILED: CMakeFiles/cmTC_fd1ce.dir/testCXXCompiler.cxx.o 
          /home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++   -DQT_QML_DEBUG -o CMakeFiles/cmTC_fd1ce.dir/testCXXCompiler.cxx.o -c /home/debian/build-test-BBB-Debug/CMakeFiles/CMakeScratch/TryCompile-8s6irG/testCXXCompiler.cxx
          arm-linux-gnueabihf-g++: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
          compilation terminated.
          ninja: build stopped: subcommand failed.
          
          
      
        
      
        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:3 (project)
      
      
      -- Configuring incomplete, errors occurred!
      See also "/home/debian/build-test-BBB-Debug/CMakeFiles/CMakeOutput.log".
      See also "/home/debian/build-test-BBB-Debug/CMakeFiles/CMakeError.log".
      CMake process exited with exit code 1.
      

      I'm so close to getting this to work, any assistance that can be offered is appreciated!

      The odd thing is that my compiler for the kit is not set to use "/home/debian/opt/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++", I've set the kit compiler to use "/usr/bin/arm-linux-gnueabihf-g++.

      Why is Cmake looking in the wrong spot? How can I change where Cmake is looking?

      T Offline
      T Offline
      timroberts
      wrote on last edited by
      #2

      I figured out what I was doing wrong here. I needed to specify that the project should be made with qmake NOT Cmake. Once I figured that out, I was able to successfully build an application.

      1 Reply Last reply
      0
      • aha_1980A aha_1980 has marked this topic as solved on

      • Login

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