linux – Trying to cross compile from x86 to arm64 using qt: “Undefined reference to `QFontEngine::glyphCache”

I am trying to use an ARM64 toolchain on qt to crosscompile a project to ARM64, I can run the cmake properly, but then I try to run “make”, it returns the following error:

[ 62%] Linking CXX executable /home/m/Desktop/trabalho/ARM-53/lenovo-diagnostics/Build/Debian_x64/Release/LenovoDiagnostics
/usr/bin/ld: /lib/x86_64-linux-gnu/libQt5OpenGL.so.5: undefined reference to `QFontEngine::glyphCache(void const*, QFontEngine::GlyphFormat, QTransform const&, QColor const&) const@Qt_5_PRIVATE_API'
collect2: error: ld returned 1 exit status
make[2]: *** [views/lsc_lite/CMakeFiles/LenovoDiagnostics.dir/build.make:2776: /home/m/Desktop/trabalho/ARM-53/lenovo-diagnostics/Build/Debian_x64/Release/LenovoDiagnostics] Error 1
make[1]: *** [CMakeFiles/Makefile2:6809: views/lsc_lite/CMakeFiles/LenovoDiagnostics.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Can anyone give me a hint or a glue to where to go?

Read more here: Source link