<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
kevser sonmez wrote:
<blockquote
 cite="mid7337d4f60707030121t38608054v5cfdde2098901f0b@mail.gmail.com"
 type="cite">Hi again,<br>
By getting a snapshot from the cvs the error has gone related to that
tiff :)<br>
But I have another problem;<br>
The test data wouldnt work and the system.typeinitializationexception
is thrown by the ogr.registerall
() command.<br>
I searched for the mailing archives, the error seems to be related with
the missing of some required dll's. (proj.dll or some other) But
actually I dont know which dlls should be referred, that is should be
on the path??
  <br>
</blockquote>
<br>
If you need proj.dll then you probably need to build the PROJ4 library
which is separate from GDAL, though you'll find links on the GDAL web
page to it.<br>
<br>
<br>
<blockquote
 cite="mid7337d4f60707030121t38608054v5cfdde2098901f0b@mail.gmail.com"
 type="cite">Another question is, I cannot refer to the wrap.dll s from
the csharp project (e.i. csharp_wrap.dll) from a csharp project, is
this normal?, it complains about that dll is not a COM component or a
valid assembly? I dont know much of C #, so sory :((
  <br>
</blockquote>
<br>
In .NET projects, you can only add direct references to .NET
assemblies. Only some of the DLLs produced by SWIG are assemblies -
namely those that have corresponding .cs files, rather than.cpp files.
The assemblies in turn call the unmanaged DLLs. So, add references to
gdal_csharp.dll and ogr_csharp.dll in your C# project. Then make sure
that all the other DLLs that you need (includling gdal_csharp_wrap.dll
and gdal.dll) are in a directory that is on your PATH. Although you
can't add references to those unmanaged DLLs, windows needs to be able
to find them at runtime. To do this, it looks in various places, most
importantly in the directory containing the executing application, and
also in the directories on the PATH. Your proj.dll also needs to be on
the PATH.<br>
<br>
<blockquote
 cite="mid7337d4f60707030121t38608054v5cfdde2098901f0b@mail.gmail.com"
 type="cite">And the last question is, is c# is complete in terms of
the ogr, I mean; Is everything; that can be done in the c++ API, can
also be done by using the c# bindings?<br>
</blockquote>
<br>
The OGR C# bindings are actually generated from the OGR C API, but
reorganized through the magic of SWIG (and Tamas) to provide an object
oriented API. Since the OGR C API is itself a wrapper around the
original C++ classes, it typically provides a subset of the C++
functionality - for instance there is no hierarchy of Geometry classes.
However, most important things are there, though there's no real
documentation on what the C# binding provide except for the SWIG code
itself. So, say that you're looking for a method described in the OGR
C++ read/write tutorial. Once you have the C++ name, look at the C API
to see what the equivalent C method is called. Then search through the
corresponding .cs file in swig/csharp/ogr for a similar named method,
and see what arguments it takes. There's generally a fairly simple
pattern to the C++ -&gt; C# name translation, but there are a few
quirks.<br>
<br>
Cheers,<br>
<br>
Simon<br>
<br>
<br>
<blockquote
 cite="mid7337d4f60707030121t38608054v5cfdde2098901f0b@mail.gmail.com"
 type="cite"><br>
And to mention, I am working with visual studio 2005, in an 64 bit
windows XP...
  <br>
  <br>
Cheers<br>
Thanks a lot for the contributions :)<br>
  <br>
  <br>
  <br>
  <div><span class="gmail_quote">On 7/2/07, <b class="gmail_sendername">kevser
sonmez</b> &lt;<a href="mailto:kevsemola@gmail.com">kevsemola@gmail.com</a>
&gt; wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
I have been trying to build the gdal and swig files using the nmake
utility, for the csharp part of the swig (csharp seems to have the good
documentation :) ). When I try to build the gdal core library, it seems
to fail at the frmts directory for the tiff library. It gives the
error,
    <br>
    <span style="color: rgb(0, 0, 0); text-decoration: underline;">"</span><a
 style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'This'">
This</a><span style="color: rgb(0, 0, 0); text-decoration: underline;">
    </span><a style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'version'">
version</a><span
 style="color: rgb(0, 0, 0); text-decoration: underline;"> </span><a
 style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'of'">
of</a><span style="color: rgb(0, 0, 0); text-decoration: underline;"> </span><a
 style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'tif_config'">
tif_config</a><span
 style="color: rgb(0, 0, 0); text-decoration: underline;">.</span><a
 style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'h'">
h</a><span style="color: rgb(0, 0, 0); text-decoration: underline;"> </span><a
 style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'header'">
header</a><span style="color: rgb(0, 0, 0); text-decoration: underline;">
    </span><a style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'is'">
is</a><span style="color: rgb(0, 0, 0); text-decoration: underline;"> </span><a
 style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'dedicated'">
dedicated</a><span
 style="color: rgb(0, 0, 0); text-decoration: underline;"> </span><span
 style="color: rgb(0, 0, 0); text-decoration: underline;">for</span><span
 style="color: rgb(0, 0, 0); text-decoration: underline;"> </span><a
 style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'Windows'">Windows</a><span
 style="color: rgb(0, 0, 0); text-decoration: underline;"> </span><a
 style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'CE'">CE</a><span
 style="color: rgb(0, 0, 0); text-decoration: underline;"> </span><a
 style="color: rgb(0, 0, 0); text-decoration: underline;"
 title="Search for references of 'platform'">platform</a><span
 style="color: rgb(0, 0, 0); text-decoration: underline;">
!" <br>
    <span style="text-decoration: underline;"></span></span><span
 style="color: rgb(0, 0, 0);"><br>
I can produce the four namespace dll s for the c# interfaces but since
I cannot produce the core gdal library with the nmake, the linking
cannot succeed.
    <br>
    <br>
I am trying to compile it for a win64 bit system and setting the
WIN64=YES options in the nmake.opt file and also in the comandline when
calling for nmake.<br>
    <br>
Any ideas are geratly appreciated ...<br>
    </span><span style="color: rgb(0, 0, 0);">Thanks in advance :)</span><span
 style="color: rgb(0, 0, 0); text-decoration: underline;"><span
 style="text-decoration: underline;"><br>
    </span></span></blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gdal-dev@lists.maptools.org">Gdal-dev@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/gdal-dev">http://lists.maptools.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>