Following https://wiki.openstreetmap.org/wiki/Osmium/Quick_Start on Ubuntu 10.04 LTS with libprotobuf-dev installed gives lots of "/usr/bin/ld: cannot find -lprotobuf-lite" errors.
OSM-binary can be compiled using the non-Debian/Ubuntu instructions (e.g. make instead of debuild), but make osmium/examples still fails looking for -lprotobuf-lite
Changing LDFLAGS on line 26 of Makefile to /usr/lib doesn't seem to help
user@ireem:~$ ls /usr/lib/libprotobuf*
/usr/lib/libprotobuf-c.a /usr/lib/libprotobuf-lite.so.5
/usr/lib/libprotobuf-c.so /usr/lib/libprotobuf-lite.so.5.0.0
/usr/lib/libprotobuf-c.so.0 /usr/lib/libprotobuf.so
/usr/lib/libprotobuf-c.so.0.0.0 /usr/lib/libprotobuf.so.5
/usr/lib/libprotobuf.la /usr/lib/libprotobuf.so.5.0.0
user@ireem:~/osm/osmium/libosmpbf/osmium/examples$ make clean
rm -f *.o core osmium_sizeof osmium_debug osmium_stats osmium_find_bbox osmium_time osmium_progress osmium_convert osmium_toogr osmium_toshape nodedensity
user@ireem:~/osm/osmium/libosmpbf/osmium/examples$ make
g++ -g -Wall -Wextra -Wredundant-decls -Wdisabled-optimization -pedantic -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../include -DOSMIUM_WITH_OUTPUT_OSM_XML -I/usr/include/libxml2 -o osmium_sizeof osmium_sizeof.cpp -L/usr/lib -lexpat -lpthread -lz -lprotobuf-lite -losmpbf -lxml2
/usr/bin/ld: cannot find -lprotobuf-lite
collect2: ld returned 1 exit status
make: *** [osmium_sizeof] Error 1
asked 11 Sep '11, 13:33

OJW
151●8●8●15
accept rate: 0%
Note that this seems to be a bug in the Ubuntu libprotobuf-dev package as it should contain that link but doesn't - this should really be reported to the maintainer of that package.
TomH: OK, https://bugs.launchpad.net/ubuntu/+source/protobuf-c/+bug/847065