I’m trying to use OpenMP in a Qt CMake and gcc8.3.0 for Raspberry Pi based application.
I did mange to do it for the previous version of supported Qt Qmake application building.
The OpenMP code is part of a static library (.a) library build using MSBuild using toolchain 8.3.0 and using OMP_PLACES=cores; OMP_STACKSIZE=100000000 Preprocessor Macros.
It is build with no errors.
The new CMake Qt build generates errors such as “undefined reference to `omp_set_num_threads”, which may indicate no reference to the OMP library.
What should be set up in project setup to enable the OpenMP support (like preprocessor macros or flags in previous QMake project setting: CXXFLAG -openmp LDLFLAGS -fopenmp)?
Thank you,
Nahum Budin.