View Single Post
Posts: 75 | Thanked: 4 times | Joined on Apr 2006
#172
I'm going on a trip next week, and I want to have as many POIs for the place I'm going (Kaua'i) as possible. I have a bunch of addresses for bank branches for my bank, grocery stores, kmart, costco, as well as campsites, etc. So I needed a quick way to generate POIs directly from street addresses. I created this patch against 1.4.4:
http://www2.hawaii.edu/~mandrew/maem...-against-1.4.4

It's basically just a copy of the download route function but makes the origin and destination the same and downloads the "route" to a temporary route (so as not to disturb the actual route), extracts the first non-zero lat/long and loads the poi_dialog so the user can name it, assign a poi category to it and create a description (which is pre-filled-in with the address).

It compiles and works fine on the old version of scratchbox I have installed, but I can't get an arm version to compile. I installed the newest scratchbox (1.0.7) and the i386 version compiles fine, but when I switch to the arm target, it complains about XML::Parser not being found (which IS installed).

here's what happens when I run ./configure:

Code:
...
checking for intltool >= 0.23... 0.33 found
checking for perl... /scratchbox/tools/bin/perl
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
[sbox-770: ~/build/maemo-mapper-1.4.4-770] > /scratchbox/tools/bin/perl
use XML::Parser;  
Can't load '/usr/lib/perl5/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: /usr/lib/perl5/auto/XML/Parser/Expat/Expat.so: cannot open shared object file: No such file or directory at /scratchbox/tools/lib/perl5/5.8.4/i686-linux-thread-multi/DynaLoader.pm line 230.
 at /usr/lib/perl5/XML/Parser.pm line 14
Compilation failed in require at /usr/lib/perl5/XML/Parser.pm line 14.
BEGIN failed--compilation aborted at /usr/lib/perl5/XML/Parser.pm line 18.
Compilation failed in require at - line 1.
BEGIN failed--compilation aborted at - line 1.
[sbox-770: ~/build/maemo-mapper-1.4.4-770] > file /usr/lib/perl5/auto/XML/Parser/Expat/Expat.so
/usr/lib/perl5/auto/XML/Parser/Expat/Expat.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), stripped
anybody have any hints? I've only ever used scratchbox for maemo mapper and I've never tried to compile it for an arm target before this.