简体   繁体   中英

C++ - google protobuf

I have downloaded and installed this framework :

http://code.google.com/p/protobuf/

I am using openSuse as operating system. 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.

Have anyone used this? Do you know where are this located?

It depends on configure script --prefix option which defaults to /usr/local. To see all available options which can be passed to configure try ./configure --help (from inside the directory).

The include directory should be: /usr/local/include/google/protobuf ...

The libraries should be /usr/local/lib/

However, this is on Linux Mint, 64 bit ...

Search for libprotobuf* on the usual library locations ( /lib , /usr/lib , /usr/local/lib , /lib64 , etc...) for the library...

You can see the complete listing of the protocol buffer development package in rpm find . The files you are looking for are in:

  • include dir: /usr/include/google/protobuf , and
  • library /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 )?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM