MichalBusta / E2E-MLT

E2E-MLT - an Unconstrained End-to-End Method for Multi-Language Scene Text
MIT License
292 stars 84 forks source link

Cannot compile nms: */E2E-MLT-master/nms #59

Open liutianling opened 4 years ago

liutianling commented 4 years ago

when i run the demo.py, then the errors as follows: g++: error: unrecognized command line option ‘-fno-plt’ Makefile:10: recipe for target 'adaptor.so' failed make: *** [adaptor.so] Error 1

Anyone can tell me how to fix it?Thanks!

MichalBusta commented 4 years ago

You should use same compiler version used to build your python runtime.

may help: in python run: import sys print(sys.version)

you should see the compiler version ... and then check $(CXX) used in https://github.com/MichalBusta/E2E-MLT/blob/c147bfbf7fa66c97419d2d38333cbb0f33e91492/nms/Makefile#L1

I hope it helps.

mohammedayub44 commented 3 years ago

I ran into this while working with EAST as well. This solution worked for me

https://github.com/argman/EAST/issues/156#issuecomment-404166990

You might have to remove some flags from python3-config --cflags output as suggested in above link, depending on the type of machine your on.