DennisOSRM/Project-OSRM — Issue #72: scons failing to find protobuf on debian squeeze
Author: risicle
Created: 2012-01-02 23:58:20+00:00
State: open

Running debian squeeze with all the relevant protobuf packages installed (and -dev packages (and compiler)) and scons is failing with

$ scons
scons: Reading SConscript files ...
Using default C++ Compiler: g++
Checking for C header file omp.h... (cached) yes
Checking for C++ library bz2... (cached) yes
Checking for C++ library libzip... (cached) yes
Checking for C++ library protobuf... no
Google Protobuffer library not found. Exiting

I was able to compile OSRMs previous to the addition of

if not conf.CheckLibWithHeader('protobuf', 'google/protobuf/descriptor.h', 'CXX'):
print "Google Protobuffer library not found. Exiting"
Exit(-1)

(in commit e9cfe94dfddc8adf8052c75f0edc2e92ffef09cc) on this machine just fine. /usr/include/google/protobuf/descriptor.h exists so I'm not sure quite what it's complaining about.

Since I understand absolutely nothing about scons I was wondering if this was something dumb before I start tearing things apart in an attempt to figure out what's going wrong.