관리 메뉴

The Power of One

ubuntu java google protocol buffer install & example 본문

Programming/GPB

ubuntu java google protocol buffer install & example

한효정 2012.05.02 18:27


GPB download: http://code.google.com/p/protobuf/downloads/list


sudo apt-get install g++

tar xvfz protobuf-2.4.1.tar.gz

./configure

make

sudo make install


protoc use: 

protoc -I=$SRC_DIR --java_out=$DST_DIR $SRC_DIR/addressbook.proto


sudo apt-get install maven2

cd protobuf-2.4.1/java

mvn install

mvn package


add project :

protobuf-2.4.1/java/target/protobuf-java-2.4.1.jar


example: 

https://developers.google.com/protocol-buffers/docs/javatutorial



신고

'Programming > GPB' 카테고리의 다른 글

ubuntu java google protocol buffer install & example  (0) 2012.05.02
0 Comments
댓글쓰기 폼