|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
c++ libtool can't open gdal.inputHello 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 |
|
|
|
|
|
Re: c++ libtool can't open gdal.inputHi 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
|
|
|
Re: c++ libtool can't open gdal.inputHello 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.inputHello,
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.
|
|
|
Re: c++ libtool can't open gdal.inputHello,
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
|
| Free embeddable forum powered by Nabble | Forum Help |