Problem with: libGLEW.a File format not recognized

Hello, I am new in CUDA programming. I am trying to run samples with Nsight Eclipse Edition in cross developöments sync mode ( explained here http://devblogs.nvidia.com/parallelforall/remote-application-development-nvidia-nsight-eclipse-edition/) to use Jetson TK1.

I did the all library changes as descripted in the link however I confronted with a problem in build stage. Eclipse gives error “libGLEW.a error adding symbols: File format not recognized”.

More detailed output :

"/usr/local/cuda-6.5/samples/common/lib/linux/x86_64/libGLEW.a: error adding symbols: File format not recognized
make: Leaving directory `/home/ubuntu/NVIDIA_CUDA-6.5_Samples/deneme12/Debug’
collect2: error: ld returned 1 exit status
make: *** [test] Error 1

Shell Completed (exit code = 2)
"

Thank you in advance for all your help.

Bugra

Hi Bugra, try to use the armv7l version instead of x86_64. That worked for my TX1

Other Objects:
/usr/local/cuda-7.0/samples/common/lib/linux/armv7l/libGLEW.a

Library search path:
/usr/local/cuda-7.0/samples/common/lib/linux/armv7l

Do a clean after updating the settings.

Note, I also had to add the X11 library, but that is another story.
Best regards
Erik

Hi,

Try this:

In NVCC Linker->Libraries:

1. Add ‘/usr/local/cuda-6.5/targets/x86_64-linux/lib’ to Libraries search path
2. Select ‘Shared’ @ CUDA Runtime Library

Thanks.