The osmpbf (1.3.3-1) build for Debian failed on the mipsel architecture. The Debian package uses parallel builds which caused the following failure: ``` protoc --proto_path=. --cpp_out=. fileformat.proto protoc --proto_path=. --cpp_out=. osmformat.proto cp *.pb.h ../include/osmpbf/ cp *.pb.h ../include/osmpbf/ g++ -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wno-long-long -fPIC -c -o osmformat.pb.o osmformat.pb.cc cp: cannot create regular file '../include/osmpbf/fileformat.pb.h': File exists ``` This change fixes the race condition by copying the header files separately, instead of copying both header files twice. With this patch applied, the builds succeeded on all architectures where OpenJDK 7 is available. Origin: http://anonscm.debian.org/gitweb/?p=pkg-grass/osmpbf.git;a=commitdiff;h=adcf891b95609e375130438dc431e96017bbbbf8 |
||
|---|---|---|
| debian | ||
| include/osmpbf | ||
| resources | ||
| src | ||
| src.java/crosby/binary | ||
| tools | ||
| .gitignore | ||
| CMakeLists.txt | ||
| COPYING.osmpbf | ||
| README | ||
| ReleaseNotes.txt | ||
| build.sh | ||
| build.xml | ||
| magic | ||
| pom.xml | ||
README
OSMPBF
======
Osmpbf is a Java/C library to read and write OpenStreetMap PBF files.
PBF (Protocol buffer Binary Format) is a binary file format for OpenStreetMap
data that uses Google Protocol Buffers as low-level storage.
For more information see http://wiki.openstreetmap.org/wiki/PBF_Format .
Java Version
============
To build the osmpbf.jar file run:
ant
For a Java usage example, see src.java/crosby/binary/test/ReadFileExample.java
C Version
=========
To compile:
make -C src
To install:
make -C src install
There is a tool named osmpbf-outline that shows a debug output of the contents
of a PBF file. To compile it:
make -C tools
Using the C Library
===================
To include in your program use:
#include <osmpbf/osmpbf.h>
and link with:
-pthread -lz -lprotobuf-lite -losmpbf
Debian/Ubuntu Packages
======================
To build the Debian/Ubuntu packages:
debuild -I -us -uc
To install the Debian/Ubuntu packages:
sudo dpkg --install ../libosmpbf-dev_*.deb
sudo dpkg --install ../libosmpbf-java_*.deb
sudo dpkg --install ../osmpbf-bin_*.deb
To clean up after:
debclean