Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake .. -DUSE_ONNX=on ERROR! #395

Open
xyx361100238 opened this issue Aug 9, 2022 · 0 comments
Open

cmake .. -DUSE_ONNX=on ERROR! #395

xyx361100238 opened this issue Aug 9, 2022 · 0 comments
Labels

Comments

@xyx361100238
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant