c++ libtool can't open gdal.input

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

c++ libtool can't open gdal.input

by Nicolas Gillet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Hello

 

I’m slowly discovering the world of mapnik in pure C++.

 

I wanted to use raster file and in order to do this I think I have the choice between raster.input and gdal.input plugins.

 

I successfully built both from trunk sources under Visual Studio 2005 and used raster plugin but I coan’t use gdal plugin.

 

I made a test based on the rundemo.cpp I successfully ran before but at the beginning of the program I have an error saying :

Problem loading plugin library: C:\...gdal.input (libtool error: can’t open the module)

@ line : << datasource_cache::instance()->register_datasources(mapnik_dir + "/input/"); >>

I’m using gnuWin32 libtool-1.5.26

 

I read (here http://trac.mapnik.org/wiki/PluginArchitecture) that gdal plugin is still in beta so it wonder if there is something special to do to enable it.

I tried to use the gdal.input given with the python example but the result is the same.

 

Any tips in this area ?

 

Thank you

 

Nicolas

Gillet


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

Parent Message unknown Re: c++ libtool can't open gdal.input

by Artem Pavlenko-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Nicolas,

Welcome to Mapnik c++!

I have to admit I never used libtool on windows. How are you building
gdal.input and gdal.dll ? Are you linking statically or dynamically ?

Regards,
Artem

2009/7/28 Nicolas Gillet - MARKET-IP <nicolas.gillet@...>:

> Hello
>
>
>
> I’m slowly discovering the world of mapnik in pure C++.
>
>
>
> I wanted to use raster file and in order to do this I think I have the
> choice between raster.input and gdal.input plugins.
>
>
>
> I successfully built both from trunk sources under Visual Studio 2005 and
> used raster plugin but I coan’t use gdal plugin.
>
>
>
> I made a test based on the rundemo.cpp I successfully ran before but at the
> beginning of the program I have an error saying :
>
> Problem loading plugin library: C:\...gdal.input (libtool error: can’t open
> the module)
>
> @ line : << datasource_cache::instance()->register_datasources(mapnik_dir +
> "/input/"); >>
>
> I’m using gnuWin32 libtool-1.5.26
>
>
>
> I read (here http://trac.mapnik.org/wiki/PluginArchitecture) that gdal
> plugin is still in beta so it wonder if there is something special to do to
> enable it.
>
> I tried to use the gdal.input given with the python example but the result
> is the same.
>
>
>
> Any tips in this area ?
>
>
>
> Thank you
>
>
>
> Nicolas
>
> Gillet
>
> _______________________________________________
> 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

Re: c++ libtool can't open gdal.input

by AMal. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Nicolas,

I have the same problem. I built mapnik, agg, input_raster and input_shapefile successfully with vs 2005.
I have the same error wih ogr and gdal plugin. (libtool can't open the module)

Did you find a solution?

Best regards,

Audrey Malherbe

Nicolas Gillet wrote:
Hello

 

I'm slowly discovering the world of mapnik in pure C++.

 

I wanted to use raster file and in order to do this I think I have the
choice between raster.input and gdal.input plugins.

 

I successfully built both from trunk sources under Visual Studio 2005 and
used raster plugin but I coan't use gdal plugin.

 

I made a test based on the rundemo.cpp I successfully ran before but at the
beginning of the program I have an error saying :

Problem loading plugin library: C:\...gdal.input (libtool error: can't open
the module)

@ line : << datasource_cache::instance()->register_datasources(mapnik_dir +
"/input/"); >>

I'm using gnuWin32 libtool-1.5.26

 

I read (here http://trac.mapnik.org/wiki/PluginArchitecture) that gdal
plugin is still in beta so it wonder if there is something special to do to
enable it.

I tried to use the gdal.input given with the python example but the result
is the same.

 

Any tips in this area ?

 

Thank you

 

Nicolas

Gillet


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

Re: c++ libtool can't open gdal.input

by Ryan Halterman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Audrey,

When I was working off a custom built Win32 Mapnik, I experienced a similar error with the PostGIS plugin. My build was dynamically linking libpq and I had to set an environment variable (LTDL_LIBRARY_PATH) to point to the location of libpq.dll. Perhaps you could try setting that variable to point to the gdal/ogr .dll.

I have since moved to the standard project-released binaries and have noticed that I no longer need LTDL_LIBRARY_PATH set. I presume they are statically linking the required libraries. Using static libraries could be another option for you.

Best of luck,
-- Ryan

On , "AMal." <audrey.malherbe@...> wrote:

>
>
> Hi Nicolas,
>
>
>
> I have the same problem. I built mapnik, agg, input_raster and
>
> input_shapefile successfully with vs 2005.
>
> I have the same error wih ogr and gdal plugin. (libtool can't open the
>
> module)
>
>
>
> Did you find a solution?
>
>
>
> Best regards,
>
>
>
> Audrey Malherbe
>
>
>
>
>
> Nicolas Gillet wrote:
>
> >
>
> > Hello
>
> >
>
> >
>
> >
>
> > I'm slowly discovering the world of mapnik in pure C++.
>
> >
>
> >
>
> >
>
> > I wanted to use raster file and in order to do this I think I have the
>
> > choice between raster.input and gdal.input plugins.
>
> >
>
> >
>
> >
>
> > I successfully built both from trunk sources under Visual Studio 2005 and
>
> > used raster plugin but I coan't use gdal plugin.
>
> >
>
> >
>
> >
>
> > I made a test based on the rundemo.cpp I successfully ran before but at
>
> > the
>
> > beginning of the program I have an error saying :
>
> >
>
> > Problem loading plugin library: C:\...gdal.input (libtool error: can't
>
> > open
>
> > the module)
>
> >
>
> > @ line : register_datasources(mapnik_dir
>
> > +
>
> > "/input/"); >>
>
> >
>
> > I'm using gnuWin32 libtool-1.5.26
>
> >
>
> >
>
> >
>
> > I read (here http://trac.mapnik.org/wiki/PluginArchitecture) that gdal
>
> > plugin is still in beta so it wonder if there is something special to do
>
> > to
>
> > enable it.
>
> >
>
> > I tried to use the gdal.input given with the python example but the result
>
> > is the same.
>
> >
>
> >
>
> >
>
> > Any tips in this area ?
>
> >
>
> >
>
> >
>
> > Thank you
>
> >
>
> >
>
> >
>
> > Nicolas
>
> >
>
> > Gillet
>
> >
>
> >
>
> > _______________________________________________
>
> > Mapnik-users mailing list
>
> > Mapnik-users@...
>
> > https://lists.berlios.de/mailman/listinfo/mapnik-users
>
> >
>
> >
>
>
>
> --
>
> View this message in context: http://www.nabble.com/c%2B%2B-libtool-can%27t-open-gdal.input-tp24702337p25531087.html
>
> Sent from the Mapnik - Users mailing list archive at Nabble.com.
>
>
>
> _______________________________________________
>
> 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

Re: c++ libtool can't open gdal.input

by Nicolas Gillet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Actually I did not do any other trials until I saw your message.

But ... while answering you, I made one more test and got it loading ...

When I built up postgis plugin I had DLL dependency "troubles".
This shot an idea to my brain ...
I ran the dll dependency walker against the plugin and saw that it need gdal15.dll.

I downloaded this DLL (here http://52north.org/cgi-bin/viewvc.cgi/trunk/libraries/Release/DLL/gdal15.dll?view=log&root=ilwis&pathrev=53), put it in the execution folder (not /Input folder) and now plugin loads.
I haven't done any test with the plugin yet.

Still thank you for your message it made us found the solution.

Regards.

Nicolas.

Hi Nicolas,

I have the same problem. I built mapnik, agg, input_raster and input_shapefile successfully with vs 2005.
I have the same error wih ogr and gdal plugin. (libtool can't open the module)

Did you find a solution?

Best regards,

Audrey Malherbe

Nicolas Gillet wrote:
Hello

 

I'm slowly discovering the world of mapnik in pure C++.

 

I wanted to use raster file and in order to do this I think I have the
choice between raster.input and gdal.input plugins.

 

I successfully built both from trunk sources under Visual Studio 2005 and
used raster plugin but I coan't use gdal plugin.

 

I made a test based on the rundemo.cpp I successfully ran before but at the
beginning of the program I have an error saying :

Problem loading plugin library: C:\...gdal.input (libtool error: can't open
the module)

@ line : << datasource_cache::instance()->register_datasources(mapnik_dir +
"/input/"); >>

I'm using gnuWin32 libtool-1.5.26

 

I read (here http://trac.mapnik.org/wiki/PluginArchitecture) that gdal
plugin is still in beta so it wonder if there is something special to do to
enable it.

I tried to use the gdal.input given with the python example but the result
is the same.

 

Any tips in this area ?

 

Thank you

 

Nicolas

Gillet


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


Re: c++ libtool can't open gdal.input

by AMal. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I built mapnik with ogr/gdal plugin successfully this morning. I put the dll ogdal in the executino folder and it works!
Thank you for your help

Audrey

Hello,

Actually I did not do any other trials until I saw your message.

But ... while answering you, I made one more test and got it loading ...

When I built up postgis plugin I had DLL dependency "troubles".
This shot an idea to my brain ...
I ran the dll dependency walker against the plugin and saw that it need gdal15.dll.

I downloaded this DLL (here http://52north.org/cgi-bin/viewvc.cgi/trunk/libraries/Release/DLL/gdal15.dll?view=log&root=ilwis&pathrev=53), put it in the execution folder (not /Input folder) and now plugin loads.
I haven't done any test with the plugin yet.

Still thank you for your message it made us found the solution.

Regards.

Nicolas.
AMal. wrote:
Hi Nicolas,

I have the same problem. I built mapnik, agg, input_raster and input_shapefile successfully with vs 2005.
I have the same error wih ogr and gdal plugin. (libtool can't open the module)

Did you find a solution?

Best regards,

Audrey Malherbe

Nicolas Gillet wrote:
Hello

 

I'm slowly discovering the world of mapnik in pure C++.

 

I wanted to use raster file and in order to do this I think I have the
choice between raster.input and gdal.input plugins.

 

I successfully built both from trunk sources under Visual Studio 2005 and
used raster plugin but I coan't use gdal plugin.

 

I made a test based on the rundemo.cpp I successfully ran before but at the
beginning of the program I have an error saying :

Problem loading plugin library: C:\...gdal.input (libtool error: can't open
the module)

@ line : << datasource_cache::instance()->register_datasources(mapnik_dir +
"/input/"); >>

I'm using gnuWin32 libtool-1.5.26

 

I read (here http://trac.mapnik.org/wiki/PluginArchitecture) that gdal
plugin is still in beta so it wonder if there is something special to do to
enable it.

I tried to use the gdal.input given with the python example but the result
is the same.

 

Any tips in this area ?

 

Thank you

 

Nicolas

Gillet


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