Hi Jason/Roger, I started that thread based on the wrong impression that I would be the one in change of helping some folks to get up and running with R and the RGDAL library. I thought that I would need to compile RGDAL against the GDAL just like I usually do for GDAL/Python and GDAL/Java in Windows and Linux. Turns out that that is not the case. Not anymore. Somebody did a great job updating to GDAL 1.7.1, so now it is pretty simple and convenient to install RGDAL direct from the R GUI from the closest mirror site. That is great. Well, at least for Win32. So, I rest my thread. I mean, I don't need the "rgdal source code" anymore.
My best regards, Ivan Jason Roberts wrote: > Roger, > > Thanks for the info. I have never built GDAL with MSYS before, only with the > various Microsoft compilers. The GDAL team provides pre-configured build > environments for those compilers that produce the library with names > gdal16.dll, gdal17.dll, etc. I assumed that it would work that way for other > compilers as well. In any case, I have some interest in the architecture of > rgdal and may follow up with you about it in the future. > > My colleagues and I would like to see rgdal on 64-bit Windows but > unfortunately we cannot contribute any time to porting it. However, we do > have at least one 64-bit server and if you are blocked on access to a > suitable machine, I might be able to arrange for you to use ours via Windows > Remote Desktop. The machine is currently running the 32-bit OS so our IT > guys would have to reinstall it. This would likely take some time to > schedule so I don't know that it could be done soon enough for you to make > the R 2.11 date. But if you are interested, contact me offline and I'll see > what can be done. > > Best, > > Jason > > -----Original Message----- > From: Roger Bivand [mailto:[email protected]] > Sent: Friday, March 26, 2010 2:51 PM > To: Jason Roberts > Cc: [email protected] > Subject: RE: [gdal-dev] Re: rgdal source code > > On Fri, 26 Mar 2010, Jason Roberts wrote: > >> Roger, >> >> Pardon me for interrupting with a question I've had for a while but not >> asked you. >> >> On Windows at least, it appears that rgdal renames the GDAL shared library >> (e.g. gdal16.dll) to an rgdal-specific name (e.g. libgdal-1.dll). On >> windows, this has the advantage of avoiding DLL name collisions, allowing >> rgdal to coexist with other libraries that also load GDAL using its >> traditional name (e.g. gdal16.dll). Is that why rgdal renamed the shared >> library? Or was it done for another reason? > > Jason, > > No, it is the name it gets when built under MSYS by default, nothing > cleverer than that, I'm afraid! > > This is a different question entirely, but a heads-up might be worthwhile. > When R 2.11 arrives in three weeks time, there will be a 64-bit Windows > version. Because of the external dependencies on expat, proj4, and GDAL, > rgdal is one of only a very small group of CRAN packages that is not > available as a 64-bit Windows binary. It would be very useful if 64-bit > Windows users got together and figured out how to make a bundle of 64-bit > DLLs that could automate the CRAN Windows build of rgdal also for 64-bit > Windows. R is built with MinGW, so in the MSYS family. I have no access to > such a Windows platform, but have some advice from Brian Ripley, and one > interested helper. The more the merrier! > > Roger > >> Thanks, >> >> Jason >> >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of Roger Bivand >> Sent: Friday, March 26, 2010 11:09 AM >> To: Ivan Lucena >> Cc: [email protected] >> Subject: Re: [gdal-dev] Re: rgdal source code >> >> On Fri, 26 Mar 2010, Ivan Lucena wrote: >> >>> Roger, >>> >>> Yes, you are right. The source code is on rgdal_0.6-25.tar.gz, I know, >> but the instructions to build on Windows are on the rgdal_0.6-25.zip > package >> on README.windows, where it says: >>> --- >>> The R Windows binary rgdal package is built against an FWTools Windows >> binary, using VC++. >>> Notes: >>> >>> Building rgdal.dll in rgdal/src: >>> >>> cl /MT /Ox /EHsc /D "WIN32" /c /I E:\rsb\R\R-2.2.1pat\include /I >> C:\Programfiler\FWTools1.0.0a7\incl >>> ude *.cpp >>> >>> link /dll /out:rgdal.dll /def:RGDAL.def gdal-bindings.obj ogr_geom.obj >> ogr_proj.obj ogrsource.obj E: >>> \rsb\R\R-2.2.1pat\lib\Rdll.lib >> /libpath:"C:\Programfiler\FWTools1.0.0a7\lib" gdal_i.lib >>> --- >>> >>> So I am trying to change it a little bit in order to build against GDAL >> 1.7.1 (or trunk). >>> How does that sounds to you? Good idea? >> Ivan, >> >> No, the README.windows file is of course in the source tarball, in the >> inst directory (as usual for R packages). >> >> If you install the Windows binary, you'll see that it includes GDAL 1.7.1, >> that is the message reporting the GDAL runtime version shown when the >> package is loaded. The only reason for doing anything at all is if you >> need drivers not already provided for your own purposes. Then you might >> need to review the README.windows file and, for example, build against >> current FWTools or OSGEO4W distributions. Please do check the drivers >> first with ogrDrivers() and gdalDrivers() in R after loading the package. >> >> Roger >> >>> Regards, >>> >>> Ivan >>> >>> >>>> -------Original Message------- >>>> From: Roger Bivand <[email protected]> >>>> To: [email protected] >>>> Subject: [gdal-dev] Re: rgdal source code >>>> Sent: Mar 26 '10 09:31 >>>> >>>> >>>> The root cause of the sourceforge issue is in a message posted >> 2010-03-25 >>>> from their admin: >>>> >>>> "Update on the current CVS outage that is affecting projects whose UNIX >>>> names start with the letters a, e, h, i, m, o, r, s, w, z. >>>> >>>> The work being done on this server may take up to two days to resolve. >> We?re >>>> working to resolve this with alacrity and assure maximum stability and >>>> performance." >>>> >>>> So access should be back by the end of March. >>>> >>>> Roger >>>> >>>> >>>> Roger Bivand wrote: >>>>> On Thu, 25 Mar 2010, Ivan wrote: >>>>> >>>>>> Roger, >>>>>> >>>>>> I in fact did my homework, but I've got a C. >>>>>> >>>>>> As you can see on my previous message I did find the RGDAL Source >> Forge >>>>>> page >>>>>> where it shows the CVS instructions ===> [1] <===. That would give a >> B+ >>>>>> at >>>>>> least, no? If it worked. >>>>>> >>>>>> cvs -d:pserver:[email protected]:/cvsroot/rgdal >> login >>>>>> Logging in to >>>>>> :pserver:[email protected]:2401/cvsroot/rgdal >>>>>> CVS password: >>>>>> cvs [login aborted]: connect to >>>>>> rgdal.cvs.sourceforge.net(216.34.181.108):2401 failed: Connection >> refused >>>>>> That was a dead end. >>>>> Correct. When I tried, anonymous checkout from sourceforge was also >>>>> blocked - nothing we've done, maybe something sourceforge has done. I >> have >>>>> changed the main description to: >>>>> >>>>> "WARNING: rgdal is only available for download from CRAN - this >> repository >>>>> is only used for development and browsing of source code. NEVER use the >>>>> very out of date file bundles for download from this site!!! See >>>>> http://rgdal.sourceforge.net for link." >>>>> >>>>> Short of migrating to R-forge (which I have done for another R package, >>>>> spdep), there isn't much that can be done with sourceforge, I'm afraid >>>>> (sourceforge isn't my favorite place to be). >>>>> >>>>> cc: Tim: Any idea why the anonymous checkout fails? Longer term - is >>>>> migration to SVN on R-Forge worth considering? >>>>> >>>>> Roger >>>>> >>>>>> I download some of those zip packages from rgdal.sourceforge.net but >> they >>>>>> only have binary that requires FWTools installation. >>>>>> >>>>>> Another dead end. >>>>>> >>>>>> But you are right I should have search a little more to find the CRAN >>>>>> page. >>>>>> So I am downloading rgdal_0.6-2.5.zip now. Let's see how it goes. >>>>>> >>>>> That is the current Windows CRAN binary, get rgdal_0.6-25.tar.gz for >> the >>>>> source. Install the Windows binary within R - do *not* treat the zip >>>>> archive as an archive - it is just a frozen binary version of the >> source >>>>> for Windows. >>>>> >>>>> Roger >>>>> >>>>>> Thanks you so very much Roger. Have a nice day. >>>>>> >>>>>> Ivan >>>>>> >>>>>> Roger Bivand wrote: >>>>>>> Please, do your homework! >>>>>>> >>>>>>> Google on "R rgdal" gives: >>>>>>> >>>>>>> http://cran.r-project.org/web/packages/rgdal/index.html >>>>>>> >>>>>>> http://rgdal.sourceforge.net/ >>>>>>> >>>>>>> where the latter says: "The R contributed package rgdal is available >>>>>>> from >>>>>>> CRAN", that is the first link. On CRAN you will find both the source >>>>>>> tarball >>>>>>> and a Windows 32-bit binary including 1.7.1 with standard drivers and >>>>>>> expat >>>>>>> for reading KML etc. >>>>>>> The sourceforge site is used exclusively as a CVS repository for >>>>>>> developers >>>>>>> - it hasn't been used for software distribution since about 2004; the >>>>>>> CRAN >>>>>>> distribution mechanism is far more robust and "just works". >>>>>>> >>>>>>> Refer to show.file(system.file("README.windows", package="rgdal")) if >>>>>>> you >>>>>>> need to build from source for more exotic drivers. >>>>>>> >>>>>>> The relevant mailing list is R-sig-geo, >>>>>>> https://www.stat.math.ethz.ch/mailman/listinfo/R-SIG-Geo/, and the >> best >>>>>>> point of entrance, the R Spatial task view: >>>>>>> http://cran.r-project.org/web/views/Spatial.html. >>>>>>> >>>>>>> Hope this helps, >>>>>>> >>>>>>> Roger >>>>>>> >>>>>>> >>>>>>> >>>>>>> Ivan-5 wrote: >>>>>>>> Hi there, >>>>>>>> >>>>>>>> I am trying to get RGDAL to work with GDAL 1.7.1 but I cannot access >>>>>>>> the >>>>>>>> source code [1] and the binaries for Windows depend on some old >> version >>>>>>>> of >>>>>>>> gdal_fw.dll. Does anybody have any clue? >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>> Ivan >>>>>>>> >>>>>>>> >>>>>>>> [1] - http://sourceforge.net/scm/?type=cvs&group_id=84716 >>>>>>>> _______________________________________________ >>>>>>>> gdal-dev mailing list >>>>>>>> [email protected] >>>>>>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> ----- >>>>>>> Roger Bivand >>>>>>> Economic Geography Section >>>>>>> Department of Economics >>>>>>> Norwegian School of Economics and Business Administration >>>>>>> Helleveien 30 >>>>>>> N-5045 Bergen, Norway >>>>>>> >>>>>> >>>>> -- >>>>> Roger Bivand >>>>> Economic Geography Section, Department of Economics, Norwegian School >> of >>>>> Economics and Business Administration, Helleveien 30, N-5045 Bergen, >>>>> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 >>>>> e-mail: [email protected] >>>>> >>>>> _______________________________________________ >>>>> gdal-dev mailing list >>>>> [email protected] >>>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev >>>>> >>>>> >>>> >>>> ----- >>>> Roger Bivand >>>> Economic Geography Section >>>> Department of Economics >>>> Norwegian School of Economics and Business Administration >>>> Helleveien 30 >>>> N-5045 Bergen, Norway >>>> >>>> -- >>>> View this message in context: >> http://n2.nabble.com/gdal-dev-rgdal-source-code-tp4799954p4804208.html >>>> Sent from the GDAL - Dev mailing list archive at Nabble.com. >>>> _______________________________________________ >>>> gdal-dev mailing list >>>> [email protected] >>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev >>>> >> > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
