Jetson tx2 - Cross Compile Error

Hi, I have a CPU Host which want to do cross compile into my Jetson, by following this link : https://devblogs.nvidia.com/parallelforall/cuda-jetson-nvidia-nsight-eclipse-edition/

Everything seems to work fine, but when I build my project, there are some error about ‘—unresolved-symbols=ignore-in-shared-libs’

here is my build console :

Building target: boxfilter-arm
Invoking: NVCC Linker
/usr/local/cuda-8.0/bin/nvcc --cudart static -L"/usr/local/cuda-8.0/samples/common/lib/linux/aarch64" -lGL -lGLU -lglut  -Xlinker —unresolved-symbols=ignore-in-shared-libs --relocatable-device-code=false -gencode arch=compute_60,code=compute_60 -gencode arch=compute_60,code=sm_60 -m64 -ccbin aarch64-linux-gnu-g++ -link -o  "boxfilter-arm"  ./src/boxFilter.o ./src/boxFilter_cpu.o ./src/boxFilter_kernel.o  /usr/local/cuda-8.0/samples/common/lib/linux/x86_64/libGLEW.a 
/usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld: cannot find —unresolved-symbols=ignore-in-shared-libs: No such file or directory
collect2: error: ld returned 1 exit status
makefile:59: recipe for target 'boxfilter-arm' failed
make: *** [boxfilter-arm] Error 1

Is there any solution for this? Thank You.

Hi,

Please check the options of Xlinker is:

--unresolved-symbols=ignore-in-shared-libs

Thanks.

So it should be

--unresolved-symbols=ignore-in-shared-libs

with a space between two dash. While in the tutorial, its using two dash without space. So when I copied it, it compiled error. Would be good, if you could change it, to help future reader. Thank You

Sure. We will feedback to the corresponding team.
Thanks.