luarocks install *错误之Error: No results matching query were found. && gcc编译

1 需要保证luarocks调用的是~/torch/install/bin/下的luarocks,且用sudo执行。

2添加-I(i不可以) 参数表示链接外部的头文件

gcc -g -o libstarcraft.so -fpic -shared starcraft.c -I /home/ww/torch/install/include/TH

猜你喜欢

转载自blog.csdn.net/starry_skyWW/article/details/76571356