<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Martin,<br><br>If your intention was to build for 64bit and should have create the .vcproj file this way:<br><br>C:\<folder>\trunk\gdal> makegdal_gen 10.00 64 > makegdal10-trunk.vcproj<br><br>You should open it in VS 2010 and let it is job and convert to the new format.<br><br>And your nmake.local should like this:<br><br>MSVC_VER=1600<br>DEBUG=1<br>WIN64=yes<br><br>But as Even pointed our it looks like you missed some settings for the CUR library.<br><br>Whatever happens in the IDE should be the same as in command line. <br><br>The IDE is going to do what is defined in Project Properties/Configuration Properties/NMake, like for example:<br><br>Build Command Line: cd $(ProjectDir) && nmake -f makefile.vc && nmake -f makefile.vc install<br><br>You click the <edit...> option and replace the "&&" by new line.<br><br>cd $(ProjectDir) <br>nmake -f makefile.vc <br>nmake -f makefile.vc install<br><br>That is easier to read. That "&&" was introduced to fix a problem with SVN and CRLF stuff.<br><br>The only thing that could be different between typing those command in command line and running through the IDE is the compiler architecture and environment variable.<br><br>To make sure that the IDE will run nmake in a x64 environment you should change the Platform drop-down list at the center of the VS task bar to "x64", and to undefine an environmental variable you can add that to your nmake.local:<br><br>!UNDEF CURL_INC<br><br>Good luck!<br><br><br><div>> From: even.rouault@mines-paris.org<br>> To: gdal-dev@lists.osgeo.org<br>> Subject: Re: [gdal-dev] debug ogr2ogr on Windows<br>> Date: Fri, 25 Apr 2014 19:34:32 +0200<br>> CC: landa.martin@gmail.com; lucena_ivan@hotmail.com<br>> <br>> Le vendredi 25 avril 2014 19:31:08, Martin Landa a écrit :<br>> > Hi Ivan,<br>> > <br>> > 2014-04-24 23:27 GMT+02:00 Ivan Lucena <lucena_ivan@hotmail.com>:<br>> > <br>> > first of all, thanks a lot for very useful notes!<br>> > <br>> > > Press F7 will build everything but you don't need to do that if you have<br>> > > done in command line.<br>> > <br>> > I tried to build GDAL also from VC, but it ends with<br>> > <br>> > 1>      lib /nologo /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj<br>> > frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib<br>> > 1>nitf_gcprpc.obj : warning LNK4221: This object file does not define<br>> > any previously undefined public symbols, so it will not be used by any<br>> > link operation that consumes this library<br>> > 1>      link /nologo /dll /INCLUDE:_OGRFeatureStylePuller<br>> > /INCLUDE:_OSRValidate  /INCLUDE:_OPTGetProjectionMethods<br>> > /INCLUDE:_OGR_G_GetPointCount  /INCLUDE:_OGRRegisterAll<br>> > /INCLUDE:_GDALSimpleImageWarp@36  /INCLUDE:_GDALReprojectImage@48<br>> > /INCLUDE:_GDALComputeMedianCutPCT@32  /INCLUDE:_GDALDitherRGB2PCT@28<br>> > /INCLUDE:_OCTNewCoordinateTransformation@8  port\*.obj gcore\*.obj<br>> > alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib<br>> >   C:\oraclexe\app\oracle\product\11.2.0\server\oci\lib\msvc\ociw32.lib<br>> >  C:\oraclexe\app\oracle\product\11.2.0\server\oci\lib\msvc\oci.lib<br>> >                           odbc32.lib odbccp32.lib user32.lib<br>> >            ws2_32.lib gcore\Version.res  /out:gdal111.dll<br>> > /implib:gdal_i.lib   /debug<br>> > 1>     Creating library gdal_i.lib and object gdal_i.exp<br>> > 1>cpl_http.obj : error LNK2019: unresolved external symbol<br>> > __imp__curl_easy_setopt referenced in function "void __cdecl<br>> > CPLHTTPSetOptions(void *,char * *)"<br>> > (?CPLHTTPSetOptions@@YAXPAXPAPAD@Z)<br>> > 1>cpl_vsil_curl.obj : error LNK2001: unresolved external symbol<br>> > __imp__curl_easy_setopt<br>> > 1>cpl_vsil_curl_streaming.obj : error LNK2001: unresolved external<br>> > symbol __imp__curl_easy_setopt<br>> > <br>> > Any idea what could be wrong?<br>> <br>> Looks like you have defined CURL_INC, but not CURL_LIB in your nmake.local / <br>> nmake.opt<br>> <br>> > <br>> > > 5. Prepare a command line on Project/Properties/debug<br>> > > <br>> > > I can give more info tomorrow. I can't remember how the UI goes but is<br>> > > very simple.<br>> > <br>> > Thanks in advance for very valuable help! Martin<br>> > _______________________________________________<br>> > gdal-dev mailing list<br>> > gdal-dev@lists.osgeo.org<br>> > http://lists.osgeo.org/mailman/listinfo/gdal-dev<br>> <br>> -- <br>> Geospatial professional services<br>> http://even.rouault.free.fr/services.html<br></div>                                         </div></body>
</html>