eragonruan / text-detection-ctpn

text detection mainly based on ctpn model in tensorflow, id card detect, connectionist text proposal network
MIT License
3.43k stars 1.33k forks source link

got into trouble when setup for GPU #109

Open SiyuWang15 opened 6 years ago

SiyuWang15 commented 6 years ago

I failed when running

cd lib/utils
chmod +x make.sh
./make.sh

and the error is: g++ -pthread -shared -B /home/siyu/anaconda3/compiler_compat -L/home/siyu/anaconda3/lib -Wl,-rpath=/home/siyu/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.6/nms_kernel.o build/temp.linux-x86_64-3.6/gpu_nms.o -L/usr/local/cuda/lib64 -L/home/siyu/anaconda3/lib -R/usr/local/cuda/lib64 -lcudart -lpython3.6m -o /home/siyu/text-detection-ctpn/lib/utils/utils/gpu_nms.cpython-36m-x86_64-linux-gnu.so g++: error: unrecognized command line option ‘-R’ error: command 'g++' failed with exit status 1

I wonder whether anyone have similar problems?

neouyghur commented 6 years ago

@Ykimy I solved the problem with a temporary solution. Comment last three lines in make.sh temporarily. Run the command which returns the error by replacing the "-R" with "-Wl,-rpath=". Then, you can run comment lines manually, which are just additional operations for cleaning temporary files.