compile problems

View: New views
7 Messages — Rating Filter:   Alert me  

compile problems

by Mikel Maron :: Rate this Message:

| View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Howdy

Compiling mapnik for another box (Arabic maps for http://meedan.net/), and running into some issues.

How do I configure scons to find the pq library? It is definitely installed, but the mapnik build must be looking in the wrong place.

# python scons/scons.py
scons: Reading SConscript files ...
Building on Linux ...
Checking for C library m... (cached) yes
Checking for C library ltdl... (cached) yes
Checking for C library png... (cached) yes
Checking for C library tiff... (cached) yes
Checking for C library z... (cached) yes
Checking for C library jpeg... (cached) yes
Checking for C library proj... (cached) yes
Checking for C library iconv... (cached) no
Checking for C library pq... (cached) no
Checking for C++ library gdal... (cached) yes
Checking for C++ library boost_filesystem-mt... (cached) yes
Checking for C++ library boost_regex-mt... (cached) yes
Checking for C++ library boost_iostreams-mt... (cached) yes
Checking for C++ library boost_program_options-mt... (cached) no
Checking for C++ library boost_thread-mt... (cached) yes
Bindings Python version... 2.4
Python 2.4 prefix... /usr
scons: done reading SConscript files.


Also, when running mod_tile's renderd, I get the following error. I would've thought that gdal supplied the adaptor for shape files, and that seems to be picked up by the compiler. Is there some other configuration or set up I'm missing?

  what():  Could not create datasource. No plugin found for type 'shape' in layer 'world-1'

Thanks much
Mikel

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: compile problems

by crschmidt :: Rate this Message:

| View Threaded | Show Only this Message

On Thu, Jan 01, 2009 at 05:49:26PM -0800, Mikel Maron wrote:
> Also, when running mod_tile's renderd, I get the following error. I would've thought that gdal supplied the adaptor for shape files, and that seems to be picked up by the compiler. Is there some other configuration or set up I'm missing?

GDAL doesn't provide the shape plugin; the shapefile plugin is internal
to Mapnik.

Regards,
--
Christopher Schmidt
MetaCarta
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: compile problems

by Mikel Maron :: Rate this Message:

| View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Christopher Schmidt <crschmidt@...> wrote:

>> Also, when running mod_tile's renderd, I get the following error. I would've thought that gdal supplied the adaptor for shape files, and that seems to be picked up by the compiler. Is there some other configuration or set up I'm missing?
>
> GDAL doesn't provide the shape plugin; the shapefile plugin is internal
> to Mapnik.


Ok, I honestly haven't spent a lot of time looking into the internals, and I'm not familiar with scons .. simply trying to get OSM tile rendering running on a box. I've gotten this working for other installs, but mapnik seems pretty sensitive to the particulars of each machine, and for whatever reason hitting these problems. I'll dig in if I must, but was hoping the solution to the problem was easy to spot.


So the immediate problem is this error when I run renderd...

  what():  Could not create datasource. No plugin found for type 'shape' in layer 'world-1'

And if I comment out the shape type layers

  what():  Could not create datasource. No plugin found for type 'postgis' in layer 'leisure'


Besides this, when compiling mapnik, neither the iconv or pq libraries are detected.


Any help or pointers appreciated!

Mikel

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: compile problems

by Bugzilla from jburgess777@googlemail.com :: Rate this Message:

| View Threaded | Show Only this Message

On Fri, 2009-01-02 at 10:38 -0800, Mikel Maron wrote:

>
> Christopher Schmidt <crschmidt@...> wrote:
>
> >> Also, when running mod_tile's renderd, I get the following error. I
> would've thought that gdal supplied the adaptor for shape files, and
> that seems to be picked up by the compiler. Is there some other
> configuration or set up I'm missing?
> >
> > GDAL doesn't provide the shape plugin; the shapefile plugin is
> internal
> > to Mapnik.
>
>
> Ok, I honestly haven't spent a lot of time looking into the internals,
> and I'm not familiar with scons .. simply trying to get OSM tile
> rendering running on a box. I've gotten this working for other
> installs, but mapnik seems pretty sensitive to the particulars of each
> machine, and for whatever reason hitting these problems. I'll dig in
> if I must, but was hoping the solution to the problem was easy to
> spot.
>
>
> So the immediate problem is this error when I run renderd...
>
>   what():  Could not create datasource. No plugin found for type
> 'shape' in layer 'world-1'
>
> And if I comment out the shape type layers
>
>   what():  Could not create datasource. No plugin found for type
> 'postgis' in layer 'leisure'

I suspect you need to adjust the following line render_config.h

// Mapnik input plugins (will need to adjust for 32 bit libs)
#define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input"

Make sure that this directory has at least the following plugin files:

* postgis.input
* shape.input

> Besides this, when compiling mapnik, neither the iconv or pq libraries
> are detected.

To get postgresql to be detected you often need to use:
$ scons PGSQL_INCLUDES=/usr/include/postgresql ...

I'm not sure how critical the iconv failure is, it is mainly for UTF-8
handling. If you want the best foreign character support then you
probably want to be running newer code which uses libicu instead of
iconv.

        Jon



_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: compile problems

by Mikel Maron :: Rate this Message:

| View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
> I suspect you need to adjust the following line render_config.h
>
> // Mapnik input plugins (will need to adjust for 32 bit libs)
> #define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input"
>
> To get postgresql to be detected you often need to use:
> $ scons PGSQL_INCLUDES=/usr/include/postgresql ...

thanks Jon, that was it

> I'm not sure how critical the iconv failure is, it is mainly for UTF-8
> handling. If you want the best foreign character support then you
> probably want to be running newer code which uses libicu instead of
> iconv.

we need this! arabic language maps.

however, problem with mapnik svn ..

$ svn co svn://svn.mapnik.org/trunk mapnik
svn: Can't connect to host 'svn.mapnik.org': Connection refused

 -Mikel



_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: compile problems

by crschmidt :: Rate this Message:

| View Threaded | Show Only this Message

On Fri, Jan 02, 2009 at 02:33:48PM -0800, Mikel Maron wrote:

> > I suspect you need to adjust the following line render_config.h
>
> >
> > // Mapnik input plugins (will need to adjust for 32 bit libs)
> > #define MAPNIK_PLUGINS "/usr/local/lib64/mapnik/input"
> >
> > To get postgresql to be detected you often need to use:
> > $ scons PGSQL_INCLUDES=/usr/include/postgresql ...
>
> thanks Jon, that was it
>
> > I'm not sure how critical the iconv failure is, it is mainly for UTF-8
> > handling. If you want the best foreign character support then you
> > probably want to be running newer code which uses libicu instead of
> > iconv.
>
> we need this! arabic language maps.
>
> however, problem with mapnik svn ..
>
> $ svn co svn://svn.mapnik.org/trunk mapnik
> svn: Can't connect to host 'svn.mapnik.org': Connection refused

http://trac.mapnik.org/changeset/780/trunk?old_path=%2F&format=zip

Will give you a tarball (/zipfile) of 'trunk'.

Regards,
--
Christopher Schmidt
MetaCarta
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: compile problems

by Artem Pavlenko-3 :: Rate this Message:

| View Threaded | Show Only this Message


On 2 Jan 2009, at 22:33, Mikel Maron wrote:

however, problem with mapnik svn ..

$ svn co svn://svn.mapnik.org/trunk mapnik
svn: Can't connect to host 'svn.mapnik.org': Connection refused


Fixed. Happy New Year!

Artem



 -Mikel


_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users


_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users