Hello,
I am trying to build Qt from its source in our Jetson Orin Nano. Twice failed at cmake -build at the following line:
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-changes-meaning’ may have been intended to silence earlier diagnostics
[829/1011] CXX obj/third_party/pdfium/core/fxcodec/fxcodec/cjpx_decoder.o
FAILED: obj/third_party/pdfium/core/fxcodec/fxcodec/cjpx_decoder.o
Then I did some search and noticed couple of options. One of them was to upgrade the GCC to 8 or later. Second option is the following
“The simplest solution is to remove the -Wno-changes-meaning flag from your build configuration (e.g., in your Makefile, CMake configuration, or build script). Since your compiler doesn’t recognize it, it won’t be able to suppress the warning anyway.”
I believe I am on GCC version 11. So I am ready on the GCC version newer than 8. I did not know how to proceed with second option in above. Please note I am not expert in C++ programming. Any help is much appreciated.
Mustafa
================
The gcc -v reveals the following in our Jetson Orin Nano:
jetson@ubuntu:~/git/qt6$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion=‘Ubuntu 11.4.0-1ubuntu1~22.04.2’ --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2)