Ubuntu - Right protobuf paths for ./configure command

懵懂的女人 提交于 2019-12-24 01:57:18

问题


I am following Google official documentation for GAE (Google app engine) installation. Look at this part (relative to gae php extension): https://github.com/GoogleCloudPlatform/appengine-php-extension

./configure --enable-gae --with-protobuf_inc=<include_path> --with-protobuf_lib=<lib_path>

The documentation says:

Set <include_path> and <lib_path> to where you have installed the protobuf headers and libraries in the previous step.

I always get an error in the terminal when I run the ./configure command, because I don't know which are the right protobuf paths.

P.s.
When installing Protobuf I followed this documentation:
https://github.com/google/protobuf/blob/master/src/README.md

My /home/Experiments folder contains 3 folders:
php-src, appengine-php-extension, protobuf.
The protobuf folder is where I have "git cloned" protobuf to install it.


回答1:


If you follow the instructions under Building in the linked repository for the App Engine PHP Runtime, you'll find that in step 2, you choose an output directory when generating C++ source and header files for remote_api.proto and urlfetch_service.proto. That folder would be the correct one to supply via cmd args.



来源:https://stackoverflow.com/questions/35390935/ubuntu-right-protobuf-paths-for-configure-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!