Statically link CUDA file in QT creator
-
I am trying to externally link a CUDA code in QT creator. I first compile my CUDA code by: nvcc.exe -lib -o matMul.lib -c matMul.cu
and then in QT -> Add Library -> External Library -> Static and as include file I choose my matMul.lib
a few lines are added to .pro file, but then I get this error:
:-1: error: No rule to make target 'C:/Users/mhsgoud/Documents/test9/../../Desktop/main/CUDA/libmatMuld.a', needed by 'debug/test9.exe'. Stop.Any help is appreciated. Best. M
-
Hi,
From the looks of it, you are trying to use CUDA with a MinGW build of Qt. From the CUDA documentation, they seem support Visual Studio officially.