[OSM-dev] osmium (osmjs) compile problem
Martijn van Exel
m at rtijn.org
Wed Nov 16 04:35:13 GMT 2011
I could not leave this alone. Bumping to dev.
As mentioned, I did build the v8 from the svn trunk. I modified the
osmjs makefile to include the reference to the homebrew v8 library:
CXXFLAGS += -I../include -I/osm/software/v8/include
(last CXXFLAGS line of the Makefile)
and
make clean
make
g++ -g -Wall -Wextra -Wredundant-decls -Wdisabled-optimization
-pedantic -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DOSMIUM_WITH_GEOS -I/usr/include -DOSMIUM_WITH_SHPLIB
-DOSMIUM_WITH_JAVASCRIPT -I../include -I/osm/software/v8/include -o
osmjs osmjs.cpp -L/usr/local/lib -lexpat -lpthread -L/usr/lib -lgeos
-lz -lprotobuf-lite -losmpbf -lv8 -licuuc -lshp
In file included from ../include/osmium.hpp:40,
from osmjs.cpp:6:
/osm/software/v8/include/v8.h:2490: warning: unused parameter ‘name’
/osm/software/v8/include/v8.h:3848: warning: unused parameter ‘o’
/osm/software/v8/include/v8.h:3849: warning: unused parameter ‘o’
/osm/software/v8/include/v8.h:3850: warning: unused parameter ‘o’
/osm/software/v8/include/v8.h:3851: warning: unused parameter ‘o’
/osm/software/v8/include/v8.h:3852: warning: unused parameter ‘o’
/osm/software/v8/include/v8.h:3853: warning: unused parameter ‘o’
/osm/software/v8/include/v8.h:3854: warning: unused parameter ‘o’
/usr/bin/ld: cannot find -lv8
collect2: ld returned 1 exit status
make: *** [osmjs] Error 1
mvexel at lima:/osm/software/osmium/osmjs$
Boo! Please tell me this is just me being stupid.
Martijn
On Fri, Nov 4, 2011 at 11:10 AM, Martijn van Exel <m at rtijn.org> wrote:
> I ended up upgrading to 11.10 - I wanted to switch to postgres 9
> anyway.. But thanks for the help, appreciate it.
> Martijn
>
> On Tue, Nov 1, 2011 at 4:07 PM, Frederik Ramm <frederik at remote.org> wrote:
>> On Tue, 1 Nov 2011 11:23:01 -0600
>> Martijn van Exel <m at rtijn.org> wrote:
>>
>>> Frederik,
>>>
>>> On Mon, Oct 17, 2011 at 1:24 AM, Frederik Ramm <frederik at remote.org>
>>> wrote:
>>> > Hi,
>>> >
>>> > On 10/17/2011 04:12 AM, Martijn van Exel wrote:
>>> >>
>>> >> I'm compiling osmium on Ubuntu 10.04.3 LTS. The first problem
>>> >> occurs when I try to compile the OSM PBF library. It does not work
>>> >> via the debuild route, which gives me:
>>> >>
>>> >> fileformat.pb.h:16:2: error: #error This file was generated by an
>>> >> older version of protoc which is
>>> >> fileformat.pb.h:17:2: error: #error incompatible with your Protocol
>>> >> Buffer headers. Please
>>> >> fileformat.pb.h:18:2: error: #error regenerate this file with a
>>> >> newer version of protoc.
>>> >>
>>> >> I can make / make install and that seems to go OK.
>>> >
>>> > I solved this by backporting a more recent version of protobuf.
>>> > Debian packages for lucid are here:
>>> > http://www.remote.org/frederik/tmp/protobuf-23-lucid.zip
>>> >
>>> >> On to Osmium where I run into trouble trying to compile osmjs:
>>> >
>>> > Sadly this seems to be more complicated; lucid's standard V8 is too
>>> > old and backporting a newer version requires a ton of dependencies.
>>> > I compiled v8 from source and modified the -L and -I flags in the
>>> > osmjs Makefile to point to my local version.
>>>
>>> I did manage to build v8 from source:
>>>
>>> svn checkout http://v8.googlecode.com/svn/trunk/ v8
>>> cd v8
>>> make dependencies
>>> make native
>>>
>>> What exactly did you change in your Makefile to get osmjs to compile?
>>
>> I ended up running this (v8 was installed in /usr/local/lib but the
>> incldues in /home/fred etc. )
>>
>> g++ -O2 -Wall -Wextra -Wredundant-decls
>> -Wdisabled-optimization -pedantic -D_LARGEFILE_SOURCE
>> -D_FILE_OFFSET_BITS=64 -DOSMIUM_WITH_GEOS -I/usr/include
>> -DOSMIUM_WITH_SHPLIB -DOSMIUM_WITH_JAVASCRIPT -I../include
>> -I /home/fred/src/v8/include -o osmjs osmjs.cpp -L/usr/local/lib
>> -lexpat -lpthread_nonshared -L/usr/lib -lgeos -lz -lprotobuf-lite
>> -losmpbf -lv8 -licuuc -lshp
>>
>> Bye
>> Frederik
>>
>
>
>
> --
> martijn van exel
> geospatial omnivore
> 1109 1st ave #2
> salt lake city, ut 84103
> 801-550-5815
> http://oegeo.wordpress.com
>
--
martijn van exel
geospatial omnivore
1109 1st ave #2
salt lake city, ut 84103
801-550-5815
http://oegeo.wordpress.com
More information about the dev
mailing list