Pro File Configuration of Qt on Jetson orin

I am writing a cross platform program based on Qt and cuda on the Jetson orin, but it seems that the configuration parameters of Windows and Jetson in the Qt pro file are different. Can you help me modify the content that can work normally on Jetson according to the content of my pro file! Thank you.
Cuda.tar.gz (4.1 KB)

Hi,

Jeston is a Linux system.
So you should be able to use the configuration for Linux directly.

Thanks.

I compile under jetson orin and report an error:

:-1: error: test_cuda.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_Z6kernelPi' which may bind externally can not be used when making a shared object; recompile with -fPIC

I modified the pro file and added the - fPIC parameter, but it still reports an error:

:-1: error: [Makefile:818: test_cuda.o] Error 1

The contents of the Mackfile reporting the error are as follows

/usr/local/cuda-11.4/bin/nvcc -D_DEBUG --use_fast_math -I"/usr/local/cuda-11.4/include" -I"/usr/local/cuda-11.4/samples/common/inc" -l-lcuda -l-lcudart --machine 64 -arch=sm_72 -fPIC -c -o test_cuda.o ../../QtLearningCode/Cuda/test.cu

I suspect there is a problem with the nvcc parameters, but I don’t know what the specific problem is


I have found a solution to " :-1: error: test_cuda.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_Z6kernelPi’ which may bind externally can not be used when making a shared object; recompile with -fPIC", which is to add the - Xcompiler - fPIC parameter

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.