marian-nmt / marian

Fast Neural Machine Translation in C++
https://marian-nmt.github.io
Other
1.21k stars 227 forks source link

cmake .. -DUSE_ONNX=on ERROR! #395

Open xyx361100238 opened 2 years ago

xyx361100238 commented 2 years ago

Bug description

according to https://marian-nmt.github.io/quickstart/ 1、cmake .. -DCOMPILE_CPU=on -DUSE_SENTENCEPIECE=on -DCOMPILE_SERVER=on -DUSE_ONNX=on tips: …… -- Configuring done -- Generating done -- Build files have been written to: /home/youxixie/008-Marian-Onnx/marian/build

2、make -j4 tips: onnx-ml.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory

3、if set -DUSE_ONNX=off, It can make done [ 58%] Built target spm_export_vocab [ 93%] Built target marian [ 94%] Built target marian_conv [ 95%] Built target marian_decoder [ 96%] Built target marian_scorer [ 97%] Built target marian_train [ 98%] Built target marian_server [100%] Built target marian_vocab

I found <google/protobuf/port_def.inc> in /home/mypath/anaconda3/include So, How can i add include path into cmake config?

waiting for your reply,thanks!