Qt 6.0 build from source on Raspberry Pi 4 "Opengl functionality tests failed"
-
I'm not sure this is the issue - probably the command I ran to get the version only shows the normal package, I don't know how to show the dev package versions. To make sure I went back through all the steps I could find to install dev packages:
sudo apt-get install freeglut3
sudo apt-get install freeglut3-dev
sudo apt-get install binutils-gold
sudo apt-get install libglew-dev
sudo apt-get install mesa-common-dev
sudo apt-get install libglew1.5-dev libglm-dev
sudo apt-get install libgles2-mesa-dev
sudo apt-get install xorg-devA few of these installed packages I didn't have before. After a reboot and rerunning the Qt6 configuration, same issue.
-
One thing that you can do is to install the build dependencies of the Qt 5 OpenGL package.
apt-get build-dep libqt5opengl5
-
It seemed so promising! But the same error at the end.
I'll list out what I did so the next poor lost soul can follow along.
so for me that returned an error: You must put some source URIs in your sources.list.
I went to etc/apt/sources.list and uncommented the bottom three lines.
After retrying, it said two packages were missing, one of which had another dependent package that was missing.sudo apt-get install libgtk-3-dev
sudo apt-get install libegl-mesa0
sudo apt-get install libgbm-devThen I retried your command, and it spent a while building everything. But like I said when I tried the ./configure stuff again I ended with the same message.
-
So maybe it's worth noting the reason I'm building from source is because the online installer executable isn't running on my pi. I'm running the new 64-bit Raspberry Pi OS image, but it's not recognizing the 64-bit executable. Googling that hasn't been much help, it's mostly people that have mismatched the executable and operating system, but as far as I can tell, mine should match. Any insight there? If I get that working life might be a lot easier.
-
@Kelenyche said in Qt 6.0 build from source on Raspberry Pi 4 "Opengl functionality tests failed":
but it's not recognizing the 64-bit executable
Do you mean the online installer from Qt Company web site? That one is for x86_64, not ARM.
-
Holy Geez I solved it!
I decided to just start going through the entire log that it blurts out after running the configure script. One of the first warnings was that I had the default build package (I forgot the name) instead of Ninja, but Qt is made to work with Ninja, so use the default at your own risk. I installed Ninja, and it configured just fine and is building now!
-
Great !
Thanks for providing the solution.
Ninja is one point I did not think about.
-
@Kelenyche said in Qt 6.0 build from source on Raspberry Pi 4 "Opengl functionality tests failed":
Holy Geez I solved it!
I decided to just start going through the entire log that it blurts out after running the configure script. One of the first warnings was that I had the default build package (I forgot the name) instead of Ninja, but Qt is made to work with Ninja, so use the default at your own risk. I installed Ninja, and it configured just fine and is building now!
Hi,
I am just starting with qt and cross compiling. I got the same error with ubuntu 22 and raspberry pi3 64 bit. I followed this tutorial. https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi.
My doubt is,
1: How to install Ninja?
2: How to configure with it?Any help would be greatly appreciated.
-
- Using apt (apt install ninja-build)
- Pass this parameter to CMake: -GNinja
-
@jsulm
Thanks for the immediate reply.
1: ninja-build was already installed.
2: -GNinja argument was passed with the command.I ran the following script
cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DINPUT_opengl=es2 -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DQT_HOST_PATH=$HOME/qt-host -DCMAKE_STAGING_PREFIX=$HOME/qt-raspi -DCMAKE_INSTALL_PREFIX=/usr/local/qt6 -DCMAKE_TOOLCHAIN_FILE=$HOME/toolchain.cmake -DQT_QMAKE_TARGET_MKSPEC=devices/linux-rasp-pi4-aarch64 -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON
-
@hareendran-tl And what is the problem?
You should now be able to build using ninja. -
@jsulm
This is the error i getting.ERROR: The OpenGL functionality tests failed! You might need to modify the OpenGL package search path by setting the OpenGL_DIR CMake variable to the OpenGL library's installation directory.
CMake Error at qtbase/cmake/QtBuildInformation.cmake:181 (message):
Check the configuration messages for an error that has occurred.
Call Stack (most recent call first):
qtbase/cmake/QtBuildInformation.cmake:21 (qt_configure_print_summary)
CMakeLists.txt:111 (qt_print_feature_summary) -
@jsulm Thanks for the reply :-).
CMakeError.log:
Performing C++ SOURCE FILE Test TEST_use_lld_linker failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_c6781 && [1/2] Building CXX object CMakeFiles/cmTC_c6781.dir/src.cxx.o [2/2] Linking CXX executable cmTC_c6781 FAILED: cmTC_c6781 : && /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fuse-ld=lld CMakeFiles/cmTC_c6781.dir/src.cxx.o -o cmTC_c6781 -Wl,-rpath,/home/dane/rpi-sysroot && : collect2: fatal error: cannot find ‘ld’ compilation terminated. ninja: build stopped: subcommand failed. Source file was: int main() { return 0; } Performing C++ SOURCE FILE Test TEST_gdb_index failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_dc754 && [1/2] Building CXX object CMakeFiles/cmTC_dc754.dir/src.cxx.o [2/2] Linking CXX executable cmTC_dc754 FAILED: cmTC_dc754 : && /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--gdb-index CMakeFiles/cmTC_dc754.dir/src.cxx.o -o cmTC_dc754 -Wl,-rpath,/home/dane/rpi-sysroot && : /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: unrecognized option '--gdb-index' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: use the --help option for usage information collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: int main() { return 0; } Performing C++ SOURCE FILE Test HAVE_reduce_relocations failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_8a0a1 && [1/2] Building CXX object CMakeFiles/cmTC_8a0a1.dir/src.cxx.o FAILED: CMakeFiles/cmTC_8a0a1.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_reduce_relocations -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_8a0a1.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:2:4: error: #error Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129). 2 | # error Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129). | ^~~~~ ninja: build stopped: subcommand failed. Source file was: #if !(defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__) || defined(__amd64)) || defined(__sun) # error Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129). #endif int main(void) { /* BEGIN TEST: */ /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_alloca_malloc_h failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_eb7a0 && [1/2] Building CXX object CMakeFiles/cmTC_eb7a0.dir/src.cxx.o FAILED: CMakeFiles/cmTC_eb7a0.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_alloca_malloc_h -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_eb7a0.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:6:1: error: ‘alloca’ was not declared in this scope; did you mean ‘valloc’? 6 | alloca(1); | ^~~~~~ | valloc ninja: build stopped: subcommand failed. Source file was: #include <malloc.h> int main(void) { /* BEGIN TEST: */ alloca(1); /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_intelcet failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_7bb00 && [1/2] Building CXX object CMakeFiles/cmTC_7bb00.dir/src.cxx.o FAILED: CMakeFiles/cmTC_7bb00.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_intelcet -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_7bb00.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:5:4: error: #error Intel CET not available 5 | # error Intel CET not available | ^~~~~ ninja: build stopped: subcommand failed. Source file was: int main(void) { /* BEGIN TEST: */ #if !defined(__CET__) # error Intel CET not available #endif /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_pollts failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_bd0bb && [1/2] Building CXX object CMakeFiles/cmTC_bd0bb.dir/src.cxx.o FAILED: CMakeFiles/cmTC_bd0bb.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_pollts -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_bd0bb.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:11:1: error: ‘pollts’ was not declared in this scope; did you mean ‘poll’? 11 | pollts(&pfd, 1, &ts, &sig); | ^~~~~~ | poll ninja: build stopped: subcommand failed. Source file was: #include <poll.h> #include <signal.h> #include <time.h> int main(void) { /* BEGIN TEST: */ struct pollfd pfd; struct timespec ts; sigset_t sig; pollts(&pfd, 1, &ts, &sig); /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_cpp_winrt failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_032af && [1/2] Building CXX object CMakeFiles/cmTC_032af.dir/src.cxx.o FAILED: CMakeFiles/cmTC_032af.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_cpp_winrt -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_032af.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:2:13: fatal error: winrt/base.h: No such file or directory 2 | # include <winrt/base.h> | ^~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: // Including winrt/base.h causes an error in some configurations (Windows 10 SDK + c++20) # include <winrt/base.h> int main(void) { return 0; } Performing C++ SOURCE FILE Test HAVE_xlocalescanprint failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_1795b && [1/2] Building CXX object CMakeFiles/cmTC_1795b.dir/src.cxx.o FAILED: CMakeFiles/cmTC_1795b.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_xlocalescanprint -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_1795b.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:10:10: error: #include expects "FILENAME" or <FILENAME> 10 | #include QDSP_P_H | ^~~~~~~~ /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:18:1: error: ‘locale_t’ was not declared in this scope 18 | locale_t invalidLocale = NULL; | ^~~~~~~~ /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:21:17: error: ‘argv’ was not declared in this scope 21 | qDoubleSnprintf(argv[0], 1, invalidLocale, "invalid format", a); | ^~~~ /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:21:29: error: ‘invalidLocale’ was not declared in this scope 21 | qDoubleSnprintf(argv[0], 1, invalidLocale, "invalid format", a); | ^~~~~~~~~~~~~ /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:21:1: error: ‘qDoubleSnprintf’ was not declared in this scope 21 | qDoubleSnprintf(argv[0], 1, invalidLocale, "invalid format", a); | ^~~~~~~~~~~~~~~ /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:22:62: error: ‘argc’ was not declared in this scope 22 | qDoubleSscanf(argv[0], invalidLocale, "invalid format", &a, &argc); | ^~~~ /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:22:1: error: ‘qDoubleSscanf’ was not declared in this scope 22 | qDoubleSscanf(argv[0], invalidLocale, "invalid format", &a, &argc); | ^~~~~~~~~~~~~ ninja: build stopped: subcommand failed. Source file was: #define QT_BEGIN_NAMESPACE #define QT_END_NAMESPACE #ifdef _MSVC_VER #define Q_CC_MSVC _MSVC_VER #endif #define QT_NO_DOUBLECONVERSION #include QDSP_P_H int main(void) { /* BEGIN TEST: */ #ifdef _MSVC_VER _locale_t invalidLocale = NULL; #else locale_t invalidLocale = NULL; #endif double a = 3.4; qDoubleSnprintf(argv[0], 1, invalidLocale, "invalid format", a); qDoubleSscanf(argv[0], invalidLocale, "invalid format", &a, &argc); /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_openssl failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_a6f61 && [1/2] Building CXX object CMakeFiles/cmTC_a6f61.dir/src.cxx.o [2/2] Linking CXX executable cmTC_a6f61 FAILED: cmTC_a6f61 : && /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_a6f61.dir/src.cxx.o -o cmTC_a6f61 -Wl,-rpath,/home/dane/rpi-sysroot /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libssl.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libcrypto.so && : /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_sym@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `__libc_dlclose@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `__libc_allocate_rtsig_private@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `__libc_dlsym@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `__libc_thread_freeres@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `__libc_current_sigrtmax_private@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `__libc_current_sigrtmin_private@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `_dl_make_stack_executable@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `__libc_longjmp@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_addr@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libpthread.so.0: undefined reference to `__libc_pthread_init@GLIBC_PRIVATE' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: #include <openssl/ssl.h> #include <openssl/opensslv.h> #if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10101000L # error OpenSSL >= 1.1.1 is required #endif #if !defined(OPENSSL_NO_EC) && !defined(SSL_CTRL_SET_CURVES) # error OpenSSL was reported as >= 1.1.1 but is missing required features, possibly it is libressl which is unsupported #endif int main(void) { /* BEGIN TEST: */ SSL_free(SSL_new(0)); /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_ifr_index failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_75823 && [1/2] Building CXX object CMakeFiles/cmTC_75823.dir/src.cxx.o FAILED: CMakeFiles/cmTC_75823.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_ifr_index -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_75823.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:7:5: error: ‘struct ifreq’ has no member named ‘ifr_index’ 7 | req.ifr_index = 0; | ^~~~~~~~~ ninja: build stopped: subcommand failed. Source file was: #include <net/if.h> int main(void) { /* BEGIN TEST: */ struct ifreq req; req.ifr_index = 0; /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_sctp failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_54867 && [1/2] Building CXX object CMakeFiles/cmTC_54867.dir/src.cxx.o FAILED: CMakeFiles/cmTC_54867.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_sctp -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_54867.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:4:10: fatal error: netinet/sctp.h: No such file or directory 4 | #include <netinet/sctp.h> | ^~~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/sctp.h> int main(void) { /* BEGIN TEST: */ sctp_initmsg sctpInitMsg; socklen_t sctpInitMsgSize = sizeof(sctpInitMsg); (void) socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP); (void) getsockopt(-1, SOL_SCTP, SCTP_INITMSG, &sctpInitMsg, &sctpInitMsgSize); /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_networklistmanager failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_3f97b && [1/2] Building CXX object CMakeFiles/cmTC_3f97b.dir/src.cxx.o FAILED: CMakeFiles/cmTC_3f97b.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_networklistmanager -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_3f97b.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:1:11: fatal error: netlistmgr.h: No such file or directory 1 | #include <netlistmgr.h> | ^~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include <netlistmgr.h> #include <wrl/client.h> int main(void) { /* BEGIN TEST: */ using namespace Microsoft::WRL; ComPtr<INetworkListManager> networkListManager; ComPtr<IConnectionPoint> connectionPoint; ComPtr<IConnectionPointContainer> connectionPointContainer; networkListManager.As(&connectionPointContainer); connectionPointContainer->FindConnectionPoint(IID_INetworkConnectionEvents, &connectionPoint); /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_EGL failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_35bbb && [1/2] Building CXX object CMakeFiles/cmTC_35bbb.dir/src.cxx.o [2/2] Linking CXX executable cmTC_35bbb FAILED: cmTC_35bbb : && /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_35bbb.dir/src.cxx.o -o cmTC_35bbb -Wl,-rpath,/home/dane/rpi-sysroot /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libEGL.so && : /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_addr@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_sym@GLIBC_PRIVATE' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: #include <EGL/egl.h> int main(int, char **) { EGLint x = 0; EGLDisplay dpy = 0; EGLContext ctx = 0; eglDestroyContext(dpy, ctx); } Performing C++ SOURCE FILE Test HAVE_GLESv2 failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_f0126 && [1/2] Building CXX object CMakeFiles/cmTC_f0126.dir/src.cxx.o [2/2] Linking CXX executable cmTC_f0126 FAILED: cmTC_f0126 : && /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_f0126.dir/src.cxx.o -o cmTC_f0126 -Wl,-rpath,/home/dane/rpi-sysroot /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libGLESv2.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libEGL.so && : /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_addr@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_sym@GLIBC_PRIVATE' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: #ifdef __APPLE__ # include <OpenGLES/ES2/gl.h> #else # define GL_GLEXT_PROTOTYPES # include <GLES2/gl2.h> #endif int main(int, char **) { glUniform1f(1, GLfloat(1.0)); glClear(GL_COLOR_BUFFER_BIT); } Determining if the function XOpenDisplay exists in the /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libX11.so;/home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libXext.so failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_42d6b && [1/2] Building C object CMakeFiles/cmTC_42d6b.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_42d6b FAILED: cmTC_42d6b : && /usr/bin/aarch64-linux-gnu-gcc-10 --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -DCHECK_FUNCTION_EXISTS=XOpenDisplay -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_42d6b.dir/CheckFunctionExists.c.o -o cmTC_42d6b -Wl,-rpath,/home/dane/rpi-sysroot /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libX11.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libXext.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libGLESv2.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libEGL.so && : /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_addr@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_sym@GLIBC_PRIVATE' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Determining if the function dnet_ntoa exists in the dnet failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_da8a9 && [1/2] Building C object CMakeFiles/cmTC_da8a9.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_da8a9 FAILED: cmTC_da8a9 : && /usr/bin/aarch64-linux-gnu-gcc-10 --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -DCHECK_FUNCTION_EXISTS=dnet_ntoa -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_da8a9.dir/CheckFunctionExists.c.o -o cmTC_da8a9 -Wl,-rpath,/home/dane/rpi-sysroot -ldnet /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libGLESv2.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libEGL.so && : /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: cannot find -ldnet: No such file or directory collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Determining if the function dnet_ntoa exists in the dnet_stub failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_095dd && [1/2] Building C object CMakeFiles/cmTC_095dd.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_095dd FAILED: cmTC_095dd : && /usr/bin/aarch64-linux-gnu-gcc-10 --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -DCHECK_FUNCTION_EXISTS=dnet_ntoa -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_095dd.dir/CheckFunctionExists.c.o -o cmTC_095dd -Wl,-rpath,/home/dane/rpi-sysroot -ldnet_stub /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libGLESv2.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libEGL.so && : /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: cannot find -ldnet_stub: No such file or directory collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Performing C++ SOURCE FILE Test HAVE_integrityfb failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_8ad53 && [1/2] Building CXX object CMakeFiles/cmTC_8ad53.dir/src.cxx.o FAILED: CMakeFiles/cmTC_8ad53.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_integrityfb -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_8ad53.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:1:11: fatal error: device/fbdriver.h: No such file or directory 1 | #include <device/fbdriver.h> | ^~~~~~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include <device/fbdriver.h> int main(void) { /* BEGIN TEST: */ FBDriver *driver = 0; /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_xcb_syslibs failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_225e8 && [1/2] Building CXX object CMakeFiles/cmTC_225e8.dir/src.cxx.o [2/2] Linking CXX executable cmTC_225e8 FAILED: cmTC_225e8 : && /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_225e8.dir/src.cxx.o -o cmTC_225e8 -Wl,-rpath,/home/dane/rpi-sysroot /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-icccm.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-image.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-keysyms.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-randr.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-render.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-render-util.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-shape.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-shm.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-sync.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-xfixes.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-xkb.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-render.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb-shape.so /home/dane/rpi-sysroot/usr/lib/aarch64-linux-gnu/libxcb.so && : /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_addr@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_PRIVATE' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: /home/dane/rpi-sysroot/lib/aarch64-linux-gnu/libdl.so.2: undefined reference to `_dl_sym@GLIBC_PRIVATE' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Source file was: // xkb.h is using a variable called 'explicit', which is a reserved keyword in C++ #define explicit dont_use_cxx_explicit #include <xcb/xcb.h> #include <xcb/xcb_image.h> #include <xcb/xcb_keysyms.h> #include <xcb/randr.h> #include <xcb/render.h> #include <xcb/shape.h> #include <xcb/shm.h> #include <xcb/sync.h> #include <xcb/xfixes.h> #include <xcb/xcb_icccm.h> #include <xcb/xcb_renderutil.h> #include <xcb/xkb.h> #undef explicit int main(void) { /* BEGIN TEST: */ int primaryScreen = 0; xcb_connection_t *c = xcb_connect("", &primaryScreen); /* RENDER */ xcb_generic_error_t *error = nullptr; xcb_render_query_pict_formats_cookie_t formatsCookie = xcb_render_query_pict_formats(c); xcb_render_query_pict_formats_reply_t *formatsReply = xcb_render_query_pict_formats_reply(c, formatsCookie, &error); /* RENDERUTIL: xcb_renderutil.h include won't compile unless version >= 0.3.9 */ xcb_render_util_find_standard_format(nullptr, XCB_PICT_STANDARD_ARGB_32); /* XKB: This takes more arguments in xcb-xkb < 1.11 */ xcb_xkb_get_kbd_by_name_replies_key_names_value_list_sizeof(nullptr, 0, 0, 0, 0, 0, 0, 0, 0); /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_libinput_hires_wheel_support failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_f078d && [1/2] Building CXX object CMakeFiles/cmTC_f078d.dir/src.cxx.o FAILED: CMakeFiles/cmTC_f078d.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_libinput_hires_wheel_support -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_f078d.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:5:28: error: ‘LIBINPUT_EVENT_POINTER_SCROLL_WHEEL’ was not declared in this scope; did you mean ‘LIBINPUT_EVENT_POINTER_MOTION’? 5 | libinput_event_type type = LIBINPUT_EVENT_POINTER_SCROLL_WHEEL; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | LIBINPUT_EVENT_POINTER_MOTION /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:6:1: error: ‘libinput_event_pointer_get_scroll_value_v120’ was not declared in this scope; did you mean ‘libinput_event_pointer_get_axis_value’? 6 | libinput_event_pointer_get_scroll_value_v120(nullptr, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | libinput_event_pointer_get_axis_value ninja: build stopped: subcommand failed. Source file was: #include <libinput.h> int main(void) { /* BEGIN TEST: */ libinput_event_type type = LIBINPUT_EVENT_POINTER_SCROLL_WHEEL; libinput_event_pointer_get_scroll_value_v120(nullptr, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL); /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_directwrite failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_ea5c3 && [1/2] Building CXX object CMakeFiles/cmTC_ea5c3.dir/src.cxx.o FAILED: CMakeFiles/cmTC_ea5c3.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_directwrite -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_ea5c3.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:1:11: fatal error: dwrite_2.h: No such file or directory 1 | #include <dwrite_2.h> | ^~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include <dwrite_2.h> int main(int, char **) { IUnknown *factory = nullptr; DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory2), &factory); return 0; } Performing C++ SOURCE FILE Test HAVE_directwrite3 failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_b36f4 && [1/2] Building CXX object CMakeFiles/cmTC_b36f4.dir/src.cxx.o FAILED: CMakeFiles/cmTC_b36f4.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_directwrite3 -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_b36f4.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:1:11: fatal error: dwrite_3.h: No such file or directory 1 | #include <dwrite_3.h> | ^~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include <dwrite_3.h> int main(int, char **) { IUnknown *factory = nullptr; DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory3), &factory); return 0; }
-
Performing C++ SOURCE FILE Test HAVE_d2d1 failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_2a429 && [1/2] Building CXX object CMakeFiles/cmTC_2a429.dir/src.cxx.o FAILED: CMakeFiles/cmTC_2a429.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_d2d1 -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_2a429.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:1:11: fatal error: d2d1.h: No such file or directory 1 | #include <d2d1.h> | ^~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include <d2d1.h> int main(int, char **) { void *factory = nullptr; D2D1_FACTORY_OPTIONS options; ZeroMemory(&options, sizeof(D2D1_FACTORY_OPTIONS)); D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, GUID{}, &options, &factory); return 0; } Performing C++ SOURCE FILE Test HAVE_d2d1_1 failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_ac16e && [1/2] Building CXX object CMakeFiles/cmTC_ac16e.dir/src.cxx.o FAILED: CMakeFiles/cmTC_ac16e.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_d2d1_1 -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_ac16e.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:1:11: fatal error: d2d1_1.h: No such file or directory 1 | #include <d2d1_1.h> | ^~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include <d2d1_1.h> int main(int, char **) { ID2D1Factory1 *d2dFactory; D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &d2dFactory); return 0; } Performing C++ SOURCE FILE Test HAVE_pointer_32bit failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_c3a1e && [1/2] Building CXX object CMakeFiles/cmTC_c3a1e.dir/src.cxx.o FAILED: CMakeFiles/cmTC_c3a1e.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_pointer_32bit -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_c3a1e.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main(int, char**)’: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:8:30: error: static assertion failed: fail 8 | static_assert(sizeof(void *) == 4, "fail"); | ~~~~~~~~~~~~~~~^~~~ ninja: build stopped: subcommand failed. Source file was: int main(int argc, char **argv) { (void)argc; (void)argv; /* BEGIN TEST: */ static_assert(sizeof(void *) == 4, "fail"); /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_arm_thumb failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_c0713 && [1/2] Building CXX object CMakeFiles/cmTC_c0713.dir/src.cxx.o FAILED: CMakeFiles/cmTC_c0713.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_arm_thumb -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_c0713.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:16:6: error: #error "fail" 16 | # error "fail" | ^~~~~ ninja: build stopped: subcommand failed. Source file was: int main(int argc, char **argv) { (void)argc; (void)argv; /* BEGIN TEST: */ #if defined(thumb2) || defined(__thumb2__) # define THUMB_OK #elif (defined(__thumb) || defined(__thumb__)) && __TARGET_ARCH_THUMB-0 == 4 # define THUMB_OK #elif defined(__ARM_ARCH_ISA_THUMB) && __ARM_ARCH_ISA_THUMB == 2 // clang 3.5 and later will set this if the core supports the Thumb-2 ISA. # define THUMB_OK #else # error "fail" #endif /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_uacpp failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_1d5b8 && [1/2] Building CXX object CMakeFiles/cmTC_1d5b8.dir/src.cxx.o FAILED: CMakeFiles/cmTC_1d5b8.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_uacpp -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_1d5b8.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:3:10: fatal error: uaplatformlayer.h: No such file or directory 3 | #include <uaplatformlayer.h> | ^~~~~~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include <stdio.h> #include <uaplatformlayer.h> #include <uastring.h> #include <uasession.h> using namespace UaClientSdk; int main(int /*argc*/, char ** /*argv*/) { UaPlatformLayer::init(); UaSession *session = new UaSession; UaPlatformLayer::cleanup(); return 0; } Performing C++ SOURCE FILE Test HAVE_ntddmodm failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_20936 && [1/2] Building CXX object CMakeFiles/cmTC_20936.dir/src.cxx.o FAILED: CMakeFiles/cmTC_20936.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_ntddmodm -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_20936.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: windows.h: No such file or directory 2 | #include <windows.h> | ^~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Source file was: #include <windows.h> #include <ntddmodm.h> int main(int argc, char **argv) { (void)argc; (void)argv; /* BEGIN TEST: */ GUID guid = GUID_DEVINTERFACE_MODEM; /* END TEST: */ return 0; } Performing C++ SOURCE FILE Test HAVE_winversion failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_24ddd && [1/2] Building CXX object CMakeFiles/cmTC_24ddd.dir/src.cxx.o FAILED: CMakeFiles/cmTC_24ddd.dir/src.cxx.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/dane/rpi-sysroot -DHAVE_winversion -I/home/dane/rpi-sysroot/usr/include -fPIE -std=gnu++17 -o CMakeFiles/cmTC_24ddd.dir/src.cxx.o -c /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp/src.cxx:3:2: error: #error unsupported Visual Studio version 3 | #error unsupported Visual Studio version | ^~~~~ ninja: build stopped: subcommand failed. Source file was: #if !defined(__clang__) && _MSC_FULL_VER < 191426428 #error unsupported Visual Studio version #endif int main(void){ return 0; }
I have been struggling with this for a few days now :-D.
I noted at "Performing C++ SOURCE FILE Test HAVE_GLESv2 failed with the following output" that there were errors like "undefined reference to `_dl_addr@GLIBC_PRIVATE'". I inspected libc.so.6 with nm and saw that these were indeed missing, so I downloaded a cross-compiler from the ARM website and tried that one, however that one fails with the following:Detecting CXX compiler ABI info failed to compile with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_25829 && [1/2] Building CXX object CMakeFiles/cmTC_25829.dir/CMakeCXXCompilerABI.cpp.o Using built-in specs. COLLECT_GCC=/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-g++ Target: aarch64-none-linux-gnu Configured with: /tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/src/gcc/configure --target=aarch64-none-linux-gnu --prefix= --with-sysroot=/aarch64-none-linux-gnu/libc --with-build-sysroot=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc --with-bugurl=https://bugs.linaro.org/ --enable-gnu-indirect-function --enable-shared --disable-libssp --disable-libmudflap --enable-checking=release --enable-languages=c,c++,fortran --with-gmp=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --with-mpfr=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --with-mpc=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --with-isl=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --enable-fix-cortex-a53-843419 --with-pkgversion='GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)' Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) COLLECT_GCC_OPTIONS='-I' '/home/dane/rpi-sysroot/usr/include' '-v' '-o' 'CMakeFiles/cmTC_25829.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/aarch64-none-linux-gnu/10.2.1/cc1plus -quiet -v -I /home/dane/rpi-sysroot/usr/include -iprefix /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/ -isysroot /home/dane/rpi-sysroot -D_GNU_SOURCE /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mlittle-endian -mabi=lp64 -auxbase-strip CMakeFiles/cmTC_25829.dir/CMakeCXXCompilerABI.cpp.o -version -o /tmp/ccsEESOh.s GNU C++14 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) version 10.2.1 20201103 (aarch64-none-linux-gnu) compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 4.3.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.15-1-g835ea3a-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring duplicate directory "/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/../../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/include/c++/10.2.1" ignoring duplicate directory "/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/../../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/include/c++/10.2.1/aarch64-none-linux-gnu" ignoring duplicate directory "/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/../../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/include/c++/10.2.1/backward" ignoring duplicate directory "/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/../../lib/gcc/aarch64-none-linux-gnu/10.2.1/include" ignoring nonexistent directory "/home/dane/rpi-sysroot/usr/local/include" ignoring duplicate directory "/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/../../lib/gcc/aarch64-none-linux-gnu/10.2.1/include-fixed" ignoring duplicate directory "/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/../../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/include" ignoring duplicate directory "/home/dane/rpi-sysroot/usr/include" as it is a non-system directory that duplicates a system directory #include "..." search starts here: #include <...> search starts here: /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/include/c++/10.2.1 /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/include/c++/10.2.1/aarch64-none-linux-gnu /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/include/c++/10.2.1/backward /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/include /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/include-fixed /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/include /home/dane/rpi-sysroot/usr/include End of search list. GNU C++14 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) version 10.2.1 20201103 (aarch64-none-linux-gnu) compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-39), GMP version 4.3.2, MPFR version 3.1.6, MPC version 1.0.3, isl version isl-0.15-1-g835ea3a-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 936eda7bb9362af3c69a17a4200d3282 COLLECT_GCC_OPTIONS='-I' '/home/dane/rpi-sysroot/usr/include' '-v' '-o' 'CMakeFiles/cmTC_25829.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/as -v -I /home/dane/rpi-sysroot/usr/include -EL -mabi=lp64 -o CMakeFiles/cmTC_25829.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccsEESOh.s GNU assembler version 2.35.1 (aarch64-none-linux-gnu) using BFD version (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 2.35.1.20201028 COMPILER_PATH=/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/aarch64-none-linux-gnu/10.2.1/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ LIBRARY_PATH=/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/lib/../lib64/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/lib/:/home/dane/rpi-sysroot/lib/:/home/dane/rpi-sysroot/usr/lib/ COLLECT_GCC_OPTIONS='-I' '/home/dane/rpi-sysroot/usr/include' '-v' '-o' 'CMakeFiles/cmTC_25829.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' [2/2] Linking CXX executable cmTC_25829 FAILED: cmTC_25829 : && /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-g++ --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -v CMakeFiles/cmTC_25829.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_25829 -Wl,-rpath,/home/dane/rpi-sysroot && : Using built-in specs. COLLECT_GCC=/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-g++ COLLECT_LTO_WRAPPER=/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/aarch64-none-linux-gnu/10.2.1/lto-wrapper Target: aarch64-none-linux-gnu Configured with: /tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/src/gcc/configure --target=aarch64-none-linux-gnu --prefix= --with-sysroot=/aarch64-none-linux-gnu/libc --with-build-sysroot=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc --with-bugurl=https://bugs.linaro.org/ --enable-gnu-indirect-function --enable-shared --disable-libssp --disable-libmudflap --enable-checking=release --enable-languages=c,c++,fortran --with-gmp=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --with-mpfr=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --with-mpc=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --with-isl=/tmp/dgboter/bbs/build04--cen7x86_64/buildbot/cen7x86_64--aarch64-none-linux-gnu/build/build-aarch64-none-linux-gnu/host-tools --enable-fix-cortex-a53-843419 --with-pkgversion='GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)' Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) COMPILER_PATH=/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/aarch64-none-linux-gnu/10.2.1/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ LIBRARY_PATH=/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/lib/../lib64/:/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/lib/:/home/dane/rpi-sysroot/lib/:/home/dane/rpi-sysroot/usr/lib/ COLLECT_GCC_OPTIONS='-I' '/home/dane/rpi-sysroot/usr/include' '-v' '-o' 'cmTC_25829' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/aarch64-none-linux-gnu/10.2.1/collect2 -plugin /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/aarch64-none-linux-gnu/10.2.1/liblto_plugin.so -plugin-opt=/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../libexec/gcc/aarch64-none-linux-gnu/10.2.1/lto-wrapper -plugin-opt=-fresolution=/tmp/ccBCQsrx.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/home/dane/rpi-sysroot --eh-frame-hdr -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -o cmTC_25829 crt1.o crti.o /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/crtbegin.o -L/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1 -L/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc -L/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/lib/../lib64 -L/home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/lib -L/home/dane/rpi-sysroot/lib -L/home/dane/rpi-sysroot/usr/lib -O1 --hash-style=gnu --as-needed CMakeFiles/cmTC_25829.dir/CMakeCXXCompilerABI.cpp.o -rpath /home/dane/rpi-sysroot -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/crtend.o crtn.o /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: cannot find crti.o: No such file or directory /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: cannot find -lm collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Determining if the CXX compiler works failed with the following output: Change Dir: /home/dane/qt-raspi-build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_970d2 && [1/2] Building CXX object CMakeFiles/cmTC_970d2.dir/testCXXCompiler.cxx.o [2/2] Linking CXX executable cmTC_970d2 FAILED: cmTC_970d2 : && /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-g++ --sysroot=/home/dane/rpi-sysroot -I/home/dane/rpi-sysroot/usr/include -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/cmTC_970d2.dir/testCXXCompiler.cxx.o -o cmTC_970d2 -Wl,-rpath,/home/dane/rpi-sysroot && : /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: cannot find crti.o: No such file or directory /home/dane/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/../lib/gcc/aarch64-none-linux-gnu/10.2.1/../../../../aarch64-none-linux-gnu/bin/ld: cannot find -lm collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
I tried copying the libc.so.6 from the downloaded compiler over the ubuntu-package one, which then resulting in errors regarding pthread.
-
https://forum.qt.io/topic/139683/qt6-raspberry-pi-cross-compliation-error/10
This looks similar.