|
|
Subject: Re: [OSM-dev] mapnik on Debian/Ubuntu - msg#00078
List: gis.openstreetmap.devel
On Mon, Dec 11, 2006 at 12:58:45AM +0100, Jens.Kammann@xxxxxx wrote:
> Hi,
>
> I followed
> http://wiki.openstreetmap.org/index.php/Slippy_Map
>
> to install mapnik.
>
> However,
>
> >python scons/scons.py install
>
> fails with:
>
> >scons: Reading SConscript files ...
> >Checking for main() in C library ltdl... yes
> >Checking for main() in C library png... yes
> >Checking for main() in C library tiff... yes
> >Checking for main() in C library z... yes
> >Checking for main() in C library jpeg... yes
> >Checking for main() in C library pq... no
> >Checking for main() in C library proj... yes
> >Checking for main() in C++ library boost_thread... no
> >Checking for main() in C++ library boost_thread-gcc-mt... no
> >Could not find header or shared library for boost thread, exiting!
>
> I tried to understand the "SConstruct" file, but couldn't figure out
> which file is missing.
>
> Anyone using this package on Debian or Ubuntu?
It's not possible to install mapnik on debian sarge, as the libboost
libraries are too old. However, this problem is probably not that:
either you are missing the boost_thread dev library, or you are having
the same problem that I am, which is that gcc3.3 doesn't seem to build
with -pthread support by default (while later versions do?)
I modified line 73 of scons/scons-local-0.96.1/SCons/Tool/c++.py:
env['CXXFLAGS'] = SCons.Util.CLVar('$CCFLAGS')
- env['CXXCOM'] = '$CXX $CXXFLAGS $CPPFLAGS $_CPPDEFFLAGS
$_CPPINCFLAGS -c -o $TARGET $SOURCES'
+ env['CXXCOM'] = '$CXX $CXXFLAGS $CPPFLAGS $_CPPDEFFLAGS
$_CPPINCFLAGS -pthread -c -o $TARGET $SOURCES'
env['SHCXX'] = '$CXX'
This allowed my build to succeed.
I don't know what this means with regard to your problem, but I was
having a similar problem and was able to solve it this way.
Regards,
--
Christopher Schmidt
MetaCarta
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: [OSM-dev] mapnik on Debian/Ubuntu
On Monday 11 December 2006 00:58, Jens.Kammann@xxxxxx wrote:
> Hi,
>
> I followed
> http://wiki.openstreetmap.org/index.php/Slippy_Map
>
> to install mapnik.
>
> However,
>
> >python scons/scons.py install
>
> fails with:
> >scons: Reading SConscript files ...
> >Checking for main() in C library ltdl... yes
> >Checking for main() in C library png... yes
> >Checking for main() in C library tiff... yes
> >Checking for main() in C library z... yes
> >Checking for main() in C library jpeg... yes
> >Checking for main() in C library pq... no
> >Checking for main() in C library proj... yes
> >Checking for main() in C++ library boost_thread... no
> >Checking for main() in C++ library boost_thread-gcc-mt... no
> >Could not find header or shared library for boost thread, exiting!
>
> I tried to understand the "SConstruct" file, but couldn't figure out
> which file is missing.
>
> Anyone using this package on Debian or Ubuntu?
on debian etch i saw there is a package named:
libboost-thread-dev
maybe installing this helps.
--
Jörg (Germany, Munich)
http://www.ostertag.name/
TeamSpeak2: ts2.ostertag.name, user: tweety, Channel: "GPS Drive"
irc://irc.oftc.net/#osm
Tel.: +49 89 420950304
Next Message by Date:
click to view message preview
[OSM-dev] tiles@home, proposed patches
against the current SVN version (1778)
Addressing the following problems:
tilesGen.pl
===========
ReadConf
- removing any CR or LF from input line
corrects the *nix EOL problem
- changed search expression / -> /^
keyword is now only valid if it starts on first column
- replaces @ by %40 in OsmUsername
ProcessRequestsFromServer
- corrected string comparison is "ne" not "!="
upload.pl
=========
ReadConfigFile
- same problems as in tilesGen.pl
Index: tilesGen.pl
===================================================================
--- tilesGen.pl (revision 1778)
+++ tilesGen.pl (working copy)
@@ -108,7 +108,7 @@
my ($ValidFlag,$Version,$X,$Y,$Z,$ModuleName) = split(/\|/, $Request);
# First field is always "OK" if the server has actually sent a request
- if($ValidFlag != "OK"){
+ if($ValidFlag ne "OK"){
print "Server didn't really give a good answer\n";
return;
}
@@ -140,25 +140,26 @@
my $OsmOK = 0;
while(my $Line = <$fp>){
- next if($Line =~ /^\s*#/); # Comments
+ $Line =~ s/\r//g;
+ $Line =~ s/\n//g;
- if ($Line =~ /WorkingDirectory=(.*)/) { $WorkingDirectory=$1; $OsmOK++; }
- if ($Line =~ /Inkscape=(.*)/) { $Inkscape=$1; $OsmOK++; }
- if ($Line =~ /XmlStarlet=(.*)/) { $XmlStarlet=$1; $OsmOK++; }
- if ($Line =~ /Niceness=(.*)/) { $Niceness=$1; $OsmOK++; }
+ if ($Line =~ /^WorkingDirectory=(.*)/) { $WorkingDirectory=$1; $OsmOK++; }
+ if ($Line =~ /^Inkscape=(.*)/) { $Inkscape=$1; $OsmOK++; }
+ if ($Line =~ /^XmlStarlet=(.*)/) { $XmlStarlet=$1; $OsmOK++; }
+ if ($Line =~ /^Niceness=(.*)/) { $Niceness=$1; $OsmOK++; }
- if ($Line =~ /UploadURL=(.*)/) { $UploadURL=$1; $OsmOK++; }
- if ($Line =~ /UploadUsername=(.*)/) { $UploadUsername=$1; $OsmOK++; }
- if ($Line =~ /UploadPassword=(.*)/) { $UploadPassword=$1; $OsmOK++; }
+ if ($Line =~ /^UploadURL=(.*)/) { $UploadURL=$1; $OsmOK++; }
+ if ($Line =~ /^UploadUsername=(.*)/) { $UploadUsername=$1; $OsmOK++; }
+ if ($Line =~ /^UploadPassword=(.*)/) { $UploadPassword=$1; $OsmOK++; }
- if ($Line =~ /OsmUsername=(.*)/) { $OsmUsername=$1; $OsmOK++; } #
TODO convert @ to %40
- if ($Line =~ /OsmPassword=(.*)/) { $OsmPassword=$1; $OsmOK++; }
+ if ($Line =~ /^OsmUsername=(.*)/) { $OsmUsername=$1; $OsmOK++; }
+ if ($Line =~ /^OsmPassword=(.*)/) { $OsmPassword=$1; $OsmOK++; }
- if ($Line =~ /BorderN=(.*)/) { $BorderN=$1; $OsmOK++; }
- if ($Line =~ /BorderS=(.*)/) { $BorderS=$1; $OsmOK++; }
- if ($Line =~ /BorderE=(.*)/) { $BorderE=$1; $OsmOK++; }
- if ($Line =~ /BorderW=(.*)/) { $BorderW=$1; $OsmOK++; }
- if ($Line =~ /MaxZoom=(.*)/) { $MaxZoom=$1; $OsmOK++; }
+ if ($Line =~ /^BorderN=(.*)/) { $BorderN=$1; $OsmOK++; }
+ if ($Line =~ /^BorderS=(.*)/) { $BorderS=$1; $OsmOK++; }
+ if ($Line =~ /^BorderE=(.*)/) { $BorderE=$1; $OsmOK++; }
+ if ($Line =~ /^BorderW=(.*)/) { $BorderW=$1; $OsmOK++; }
+ if ($Line =~ /^MaxZoom=(.*)/) { $MaxZoom=$1; $OsmOK++; }
}
close $fp;
@@ -166,6 +167,7 @@
if($OsmOK != 14){
die("Check your .conf file - some entries not found");
}
+ $OsmUsername =~ s/@/%40/g;
}
#-----------------------------------------------------------------------------
Index: upload.pl
===================================================================
--- upload.pl (revision 1778)
+++ upload.pl (working copy)
@@ -150,7 +150,9 @@
open(my $fp, "<", shift()) || die("Can't open config file\n");
foreach my $Line(<$fp>){
$Line =~ s/\s*#.*$//; # Strip out comments
- if($Line =~ /(\w+)=(.*)/){
+ $Line =~ s/\n//g; # removes LF
+ $Line =~ s/\r//g; # removes CR
+ if($Line =~ /^(\w+)=(.*)/){
$Config{$1} = $2;
}
}
_______________________________________________
dev mailing list
dev@xxxxxxxxxxxxxxxxx
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
Previous Message by Thread:
click to view message preview
Re: [OSM-dev] mapnik on Debian/Ubuntu
On Monday 11 December 2006 00:58, Jens.Kammann@xxxxxx wrote:
> Hi,
>
> I followed
> http://wiki.openstreetmap.org/index.php/Slippy_Map
>
> to install mapnik.
>
> However,
>
> >python scons/scons.py install
>
> fails with:
> >scons: Reading SConscript files ...
> >Checking for main() in C library ltdl... yes
> >Checking for main() in C library png... yes
> >Checking for main() in C library tiff... yes
> >Checking for main() in C library z... yes
> >Checking for main() in C library jpeg... yes
> >Checking for main() in C library pq... no
> >Checking for main() in C library proj... yes
> >Checking for main() in C++ library boost_thread... no
> >Checking for main() in C++ library boost_thread-gcc-mt... no
> >Could not find header or shared library for boost thread, exiting!
>
> I tried to understand the "SConstruct" file, but couldn't figure out
> which file is missing.
>
> Anyone using this package on Debian or Ubuntu?
on debian etch i saw there is a package named:
libboost-thread-dev
maybe installing this helps.
--
Jörg (Germany, Munich)
http://www.ostertag.name/
TeamSpeak2: ts2.ostertag.name, user: tweety, Channel: "GPS Drive"
irc://irc.oftc.net/#osm
Tel.: +49 89 420950304
Next Message by Thread:
click to view message preview
[OSM-dev] tiles@home, proposed patches
against the current SVN version (1778)
Addressing the following problems:
tilesGen.pl
===========
ReadConf
- removing any CR or LF from input line
corrects the *nix EOL problem
- changed search expression / -> /^
keyword is now only valid if it starts on first column
- replaces @ by %40 in OsmUsername
ProcessRequestsFromServer
- corrected string comparison is "ne" not "!="
upload.pl
=========
ReadConfigFile
- same problems as in tilesGen.pl
Index: tilesGen.pl
===================================================================
--- tilesGen.pl (revision 1778)
+++ tilesGen.pl (working copy)
@@ -108,7 +108,7 @@
my ($ValidFlag,$Version,$X,$Y,$Z,$ModuleName) = split(/\|/, $Request);
# First field is always "OK" if the server has actually sent a request
- if($ValidFlag != "OK"){
+ if($ValidFlag ne "OK"){
print "Server didn't really give a good answer\n";
return;
}
@@ -140,25 +140,26 @@
my $OsmOK = 0;
while(my $Line = <$fp>){
- next if($Line =~ /^\s*#/); # Comments
+ $Line =~ s/\r//g;
+ $Line =~ s/\n//g;
- if ($Line =~ /WorkingDirectory=(.*)/) { $WorkingDirectory=$1; $OsmOK++; }
- if ($Line =~ /Inkscape=(.*)/) { $Inkscape=$1; $OsmOK++; }
- if ($Line =~ /XmlStarlet=(.*)/) { $XmlStarlet=$1; $OsmOK++; }
- if ($Line =~ /Niceness=(.*)/) { $Niceness=$1; $OsmOK++; }
+ if ($Line =~ /^WorkingDirectory=(.*)/) { $WorkingDirectory=$1; $OsmOK++; }
+ if ($Line =~ /^Inkscape=(.*)/) { $Inkscape=$1; $OsmOK++; }
+ if ($Line =~ /^XmlStarlet=(.*)/) { $XmlStarlet=$1; $OsmOK++; }
+ if ($Line =~ /^Niceness=(.*)/) { $Niceness=$1; $OsmOK++; }
- if ($Line =~ /UploadURL=(.*)/) { $UploadURL=$1; $OsmOK++; }
- if ($Line =~ /UploadUsername=(.*)/) { $UploadUsername=$1; $OsmOK++; }
- if ($Line =~ /UploadPassword=(.*)/) { $UploadPassword=$1; $OsmOK++; }
+ if ($Line =~ /^UploadURL=(.*)/) { $UploadURL=$1; $OsmOK++; }
+ if ($Line =~ /^UploadUsername=(.*)/) { $UploadUsername=$1; $OsmOK++; }
+ if ($Line =~ /^UploadPassword=(.*)/) { $UploadPassword=$1; $OsmOK++; }
- if ($Line =~ /OsmUsername=(.*)/) { $OsmUsername=$1; $OsmOK++; } #
TODO convert @ to %40
- if ($Line =~ /OsmPassword=(.*)/) { $OsmPassword=$1; $OsmOK++; }
+ if ($Line =~ /^OsmUsername=(.*)/) { $OsmUsername=$1; $OsmOK++; }
+ if ($Line =~ /^OsmPassword=(.*)/) { $OsmPassword=$1; $OsmOK++; }
- if ($Line =~ /BorderN=(.*)/) { $BorderN=$1; $OsmOK++; }
- if ($Line =~ /BorderS=(.*)/) { $BorderS=$1; $OsmOK++; }
- if ($Line =~ /BorderE=(.*)/) { $BorderE=$1; $OsmOK++; }
- if ($Line =~ /BorderW=(.*)/) { $BorderW=$1; $OsmOK++; }
- if ($Line =~ /MaxZoom=(.*)/) { $MaxZoom=$1; $OsmOK++; }
+ if ($Line =~ /^BorderN=(.*)/) { $BorderN=$1; $OsmOK++; }
+ if ($Line =~ /^BorderS=(.*)/) { $BorderS=$1; $OsmOK++; }
+ if ($Line =~ /^BorderE=(.*)/) { $BorderE=$1; $OsmOK++; }
+ if ($Line =~ /^BorderW=(.*)/) { $BorderW=$1; $OsmOK++; }
+ if ($Line =~ /^MaxZoom=(.*)/) { $MaxZoom=$1; $OsmOK++; }
}
close $fp;
@@ -166,6 +167,7 @@
if($OsmOK != 14){
die("Check your .conf file - some entries not found");
}
+ $OsmUsername =~ s/@/%40/g;
}
#-----------------------------------------------------------------------------
Index: upload.pl
===================================================================
--- upload.pl (revision 1778)
+++ upload.pl (working copy)
@@ -150,7 +150,9 @@
open(my $fp, "<", shift()) || die("Can't open config file\n");
foreach my $Line(<$fp>){
$Line =~ s/\s*#.*$//; # Strip out comments
- if($Line =~ /(\w+)=(.*)/){
+ $Line =~ s/\n//g; # removes LF
+ $Line =~ s/\r//g; # removes CR
+ if($Line =~ /^(\w+)=(.*)/){
$Config{$1} = $2;
}
}
_______________________________________________
dev mailing list
dev@xxxxxxxxxxxxxxxxx
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
|
|