Noon,<div><br></div><div>As far as I see the DWG driver is compiled as a plugin so you should either place it into a /gdalplugins subdirectory from where your application is running, or set the location of this dll in the GDAL_DRIVER_PATH environment variable.</div>
<div>Also make sure the location of the dll-s from the dependent libs are also added in PATH.</div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">
2012/11/3 Noon Silk <span dir="ltr"><<a href="mailto:noonslists+gdal@gmail.com" target="_blank">noonslists+gdal@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
 So, further to this, I've not had much luck with my previous<br>
approach. I'm going to now try this method; but I kind of want to<br>
understand why what I tried didn't work.<br>
<br>
 What I mean by "Didn't work" is that my requests to open DWG files,<br>
or just grab an instance of the DWG driver, didn't work.<br>
<br>
 I ask for an instance like so (in C#):<br>
<br>
 Ogr.RegisterAll();<br>
 Driver d = Ogr.GetDriverByName("DWG");<br>
<br>
 "d" comes back as null. So, I expected it to return something given<br>
that I thought I was correctly "enablding" the DWG library. But, I<br>
also checked to see if the number of available drivers changed, after<br>
me doing what I would've expected to result in the enablding. Sadly,<br>
it didn't. So I can only assume that I didn't enanble it correctly.<br>
<br>
 So, my process for enabling the DWG driver was basically to allow it<br>
to be compiled as part of the "gdal\ogr\ogrsf_frmts\<a href="http://makefile.vc" target="_blank">makefile.vc</a>" (by<br>
adding in the directory and the obj files). I also set up the required<br>
Teigha libraries by uncommenting and correctly setting the particular<br>
bits of nmake.opt.<br>
<br>
 Then the only other change I made was to generate the SWIG bindings.<br>
<br>
 Is this the correct way to enable the dwg bindings? Is there<br>
something obvious I've missed? Would linking this other -dev build<br>
script with the particular source work better?<br>
<br>
Thanks,<br>
--<br>
Noon<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On Fri, Nov 2, 2012 at 9:30 AM, Noon Silk <<a href="mailto:noonslists%2Bgdal@gmail.com">noonslists+gdal@gmail.com</a>> wrote:<br>
> On Mon, Oct 29, 2012 at 11:34 PM, Tamas Szekeres <<a href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>> wrote:<br>
>> You might also take a look at the -dev packages at<br>
>> <a href="http://www.gisinternals.com/sdk/" target="_blank">http://www.gisinternals.com/sdk/</a><br>
>> The compilation is controlled by a single makefile, so you can use:<br>
>><br>
>> nmake gdal<br>
>> nmake gdal-csharp<br>
><br>
> Thanks; I happened to grab the "MSVC2005 (Win64) -development", which<br>
> doesn't have that ..., I'll give this a go.<br>
><br>
><br>
>> to achieve the desired result.<br>
>><br>
>> Best regards,<br>
>><br>
>> Tamas<br>
><br>
> --<br>
> Noon<br>
</div></div></blockquote></div><br></div>