[英]C++ - google protobuf
I have downloaded and installed this framework : 我已经下载并安装了这个框架:
http://code.google.com/p/protobuf/ http://code.google.com/p/protobuf/
I am using openSuse as operating system. 我正在使用openSuse作为操作系统。 I want to creat a soft link to the following libraries :
我想创建一个到以下库的软链接:
ln -s <PROTOCOL_BUFFERS_INCLUDE> include_pb
ln -s <PROTOCOL_BUFFERS_LIB> lib_pb
So basically I want the location of protobuf include folder and protobuf libraries. 所以基本上我希望protobuf的位置包括文件夹和protobuf库。
Have anyone used this? 有人用过吗? Do you know where are this located?
你知道这是哪里吗?
It depends on configure
script --prefix
option which defaults to /usr/local. 它取决于默认为/ usr / local的
configure
脚本--prefix
选项。 To see all available options which can be passed to configure
try ./configure --help
(from inside the directory). 要查看可以传递来
configure
所有可用选项,请尝试./configure --help
(从目录内部)。
The include directory should be: /usr/local/include/google/protobuf
... 包含目录应为:
/usr/local/include/google/protobuf
...
The libraries should be /usr/local/lib/
这些库应该是
/usr/local/lib/
However, this is on Linux Mint, 64 bit ... 但是,这是在Linux Mint上的64位...
Search for libprotobuf*
on the usual library locations ( /lib
, /usr/lib
, /usr/local/lib
, /lib64
, etc...) for the library... 在通常的库位置(
/lib
, /usr/lib
, /usr/local/lib
, /lib64
等...)搜索libprotobuf*
。
You can see the complete listing of the protocol buffer development package in rpm find . 您可以在rpm find中看到协议缓冲区开发包的完整列表。 The files you are looking for are in:
您要查找的文件位于:
/usr/include/google/protobuf
, and /usr/include/google/protobuf
,以及 /usr/lib64/libprotobuf.so
/usr/lib64/libprotobuf.so
I am not sure to the end of your endeavor. 我不确定您的努力是否结束。 But if you just want to develop with it, then how about giving automake and autoconf a chance to sort it out for you ( tutorial )?
但是,如果您只是想使用它进行开发,那么给automake和autoconf一个为您解决问题的机会( 教程 )如何呢?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.