Qt6 on Beaglebone black compiler issues
-
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?
-
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?
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.
-
A aha_1980 has marked this topic as solved on