OMP Support in Qt CMake and gcc8.3.0 for Raspberry Pi

Sysprogs forums Forums VisualGDB OMP Support in Qt CMake and gcc8.3.0 for Raspberry Pi

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26693
    nahumb
    Participant

    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.

    #26697
    support
    Keymaster

    Hi,

    Please try following this tutorial for diagnosing library-related problems. For CMake projects, you can find the library-related settings under VS project properties for specific targets (e.g. for your main executable).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.