+ -
当前位置:首页 → 问答吧 → 求助:makefile错误 : commands commence before first target. Stop

求助:makefile错误 : commands commence before first target. Stop

时间:2010-12-07

来源:互联网

安装了CUDA,用GPU做并行计算,对SDK中的例子进行编译的时候出错:
代码:
lutao@lutao-laptop:~/NVIDIA_GPU_Computing_SDK/C/src/smokeParticles$ make
In file included from GpuArray.h:19,
                 from ParticleSystem.h:18,
                 from particleDemo.cpp:45:
/usr/local/cuda/include/cuda_runtime.h:145: warning: unused parameter ‘flags’
In file included from GpuArray.h:19,
                 from ParticleSystem.h:18,
                 from ParticleSystem.cpp:29:
/usr/local/cuda/include/cuda_runtime.h:145: warning: unused parameter ‘flags’
/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
make: *** [../../bin/linux/release/smokeParticles] 错误 1

麻烦各位看看这是缺少什么库文件,还是什么问题?
对一些简单的例子,编译运行完全没有问题。

作者: lluuoo-8855   发布时间: 2010-12-07

/usr/bin/ld: cannot find -lGLU

作者: delectate   发布时间: 2010-12-07

是啊,在网上搜,都找不到这个问题!

作者: lluuoo-8855   发布时间: 2010-12-07