Cross-compiling with cmake for embedded systems QNX

@glaringlee
Thank you so much for replying and trying to help! I really appreciate this!
This is also what I found in another repo on github while searching the web for similar errors.
So I have changed the CMakelists.txt file as follows:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14 -stdlib=libstdc++ ${TORCH_CXX_FLAGS}")

But now I’m getting the following compiler errors:

I have also opened an issue on github describing everything and with all the files from a repo I created.

I’ve tried this by moving the libtorch folder to the QNX Target Environment as stated here (QNX Docs):

/home/marcel/qnx700/target/qnx7/x86_64/lib/libtorch/

And changed the line in the CMakelists.txt as follows:
list(APPEND CMAKE_PREFIX_PATH "${QNX_TARGET}/x86_64/lib/libtorch")

But this change did not lead to a succesful build and I’m getting the same compiler errors as shown above.
Compiler Errors