ogr plugin with mapnik and vs2005

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

ogr plugin with mapnik and vs2005

by AMal. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
I try to build mapnik on visual studio 2005 with ogr plugin because I have some ogr format not supported in the default configuration of OGR. So, I have read instructions of the mvc in the experimental pdf branch. I have built mapnik, input_shapefile, input_raster with success.
I built the ogr plugin but when I try to load it in a C++ program, I have error
“Problem loading plugin library: ../input/ogr.input (libtool error: can’’t open the module)

Someone have a vcproj file? Or a list of preprocessor definition and libraries required?

Thank you for your help,

Re: ogr plugin with mapnik and vs2005

by Nicolas Gillet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I had the same problem with gdal plugin.

Actually I had one DLL (GDAL15.DLL) missing in the execution environment.
You might have the same problem with OGR, so try to run DLL dependency walker tool (http://www.dependencywalker.com) against the ogr.input (I did it with gdal.input, renaming it in gdal.dll) and found the DLL I was missing.

This missing DLL had to be put in the execution directory (not the same as plugin directory most of the time)

Regards.

Nicolas
AMal. wrote:
Hi
I try to build mapnik on visual studio 2005 with ogr plugin because I have some ogr format not supported in the default configuration of OGR. So, I have read instructions of the mvc in the experimental pdf branch. I have built mapnik, input_shapefile, input_raster with success.
I built the ogr plugin but when I try to load it in a C++ program, I have error
“Problem loading plugin library: ../input/ogr.input (libtool error: can’’t open the module)

Someone have a vcproj file? Or a list of preprocessor definition and libraries required?

Thank you for your help,

Re: ogr plugin with mapnik and vs2005

by AMal. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I replied on your previous message. I build mapnik with my own version of GDAL. I add others dll like ogdi or geos.
So, to build mapnik with ogr/gdal, people have to add in the execution folder all the ddl files used by gdal/ogr.

Regards,

Audrey


Hello,

I had the same problem with gdal plugin.

Actually I had one DLL (GDAL15.DLL) missing in the execution environment.
You might have the same problem with OGR, so try to run DLL dependency walker tool (http://www.dependencywalker.com) against the ogr.input (I did it with gdal.input, renaming it in gdal.dll) and found the DLL I was missing.

This missing DLL had to be put in the execution directory (not the same as plugin directory most of the time)

Regards.

Nicolas
AMal. wrote:
Hi
I try to build mapnik on visual studio 2005 with ogr plugin because I have some ogr format not supported in the default configuration of OGR. So, I have read instructions of the mvc in the experimental pdf branch. I have built mapnik, input_shapefile, input_raster with success.
I built the ogr plugin but when I try to load it in a C++ program, I have error
“Problem loading plugin library: ../input/ogr.input (libtool error: can’’t open the module)

Someone have a vcproj file? Or a list of preprocessor definition and libraries required?

Thank you for your help,