AnsweredAssumed Answered

Cross-compilation, generating windows binaries on a linux Box failed for OpenCL

Question asked by scharupa on Oct 27, 2015
Latest reply on Oct 28, 2015 by nibal

I need small help on  Cross compilation. I am trying to generate windows binaries on a Linux Box using Ming64 compiler, and everything was fine with setup.

The issue is, I getting following error when I try to compile a OpenCL application, it’s not able to find even though libraries copied to linux box.


Could you please me with it? Attaching OpenCL application


#x86_64-w64-mingw32-g++ -m64 -O3 main.cpp bhsparse.cpp bhsparse_opencl.cpp basiccl.cpp -L/usr/lib -lOpenCL -o spgemm -w

/usr/bin/x86_64-w64-mingw32-ld: cannot find -lOpenCL

collect2: error: ld returned 1 exit status

make: *** [all] Error 1