https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362010-03-02T16:26:26ZEcoinformatics RedmineKepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167292010-03-02T16:26:26ZMatt Jonesjones@nceas.ucsb.edu
<ul></ul><p>GDAL probably just needs to be recompiled for this architecture, and the installer adapted to detect which architecture is being used and provide the proper binary. We should do two things to close this bug:</p>
<p>1) Check all native library actors and recompile as needed for the following platforms, and recompile/install as needed:<br /> a) Win 32<br /> b) Win 64<br /> c) Mac OS X 32<br /> d) Mac OS X 64<br /> e) Linux 32<br /> f) Linux 64</p>
<p>2) Develop a test suite for the NMI build that will run these actors on all 6 architectures and test that they continue to function.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167302010-03-04T17:34:03ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><blockquote>
<p>1) Check all native library actors and recompile as needed for the following<br />platforms, and recompile/install as needed:<br />a) Win 32<br />b) Win 64</p>
</blockquote>
<p>Does someone have a win64 machine they could use to do this? I can provide compilation instructions.</p>
<blockquote>
<p>c) Mac OS X 32<br />d) Mac OS X 64<br />e) Linux 32<br />f) Linux 64</p>
</blockquote>
<p>I can handle these.</p>
<blockquote>
<p>2) Develop a test suite for the NMI build that will run these actors on all 6<br />architectures and test that they continue to function.</p>
</blockquote>
<p>This will be hard because NMI continues to have issues with many of their test platforms. Right now, I can only get things to run on one platform (linux). The windows and OSX platforms are continually over used and jobs on them end up taking forever to run. I can work on this again after the 2.0 release.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167312010-03-04T19:59:06ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>The Ptolemy Matlab interface has similar problems, I'm looking at building 64bit <br />libraries for the Mac. On the Mac, one can have universal libraries that support<br />both 32 and 64 bit (and presumably x86 and ppc). On the Mac, the lipo command<br />is what is used to build univeral libraries.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167322010-03-05T05:37:36ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>I created a universal binary that supports 32 and 64 bit JVMs under MacOSX.<br />The library may be found in ptII/lib/matlabMacOSX.jar</p>
<p>Note that to run the 64bit version, I had to set<br />export DYLD_LIBRARY_PATH=/Applications/MATLAB_R2009b.app//bin/maci/:/Applications/MATLAB_R2009b.app//bin/maci64/:/Users/cxh/ptII/lib/Users/cxh/ptII/lib:/Applications/MATLAB_R2009b.app/sys/os/maci/:/Applications/MATLAB_R2009b.app/sys/os/maci64</p>
<p>so that libXm.3.so and the 64bit matlab libraries are found.</p>
<p>To build the 64 bit library, I used the -m64 gcc option.<br />To build the universal binary, I used lipo:</p>
<p>lipo -create -arch i386 libptmatlab32.jnilib -arch x86_64 libptmatlab64.jnilib -o libptmatlab.jnilib</p>
<p>Note that for Web Start to work under Mac OS 10.5 with Java 1.5.0_22, the<br />shared libraries must have a .jnilib extension. I could not get Web Start<br />to work if the shared libraries have a .dylib extension. It would<br />probably be worth renaming the MacOSX shared libraries that are to<br />be loaded using JNI to .jnilib</p>
<p>See<br /><a class="external" href="http://developer.apple.com/Mac/library/documentation/Java/Conceptual/Java14Development/05-CoreJavaAPIs/CoreJavaAPIs.html">http://developer.apple.com/Mac/library/documentation/Java/Conceptual/Java14Development/05-CoreJavaAPIs/CoreJavaAPIs.html</a></p>
<p>I still need to create 32 and 64 bit Ptolemy/Matlab libraries for<br />Windows and Linux. I don't think I have access to a 64 bit Windows<br />machine though.</p>
<p>I still need to fix up $PTII/lbnl, which contains the<br />Building Controls Virtual Test Bench, which provides a socket-based interface<br />to Matlab, C and other programs.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167332010-03-05T20:29:32ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>GDAL requires Microsoft Visual C++ to compile:</p>
<p><a class="external" href="http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions">http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions</a></p>
<p>I don't have a copy of this, nor do I have a 64 bit windows machine. Is there anyone out there that has this combo? If not, I don't see a way to compile gdal for win64.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167342010-03-08T13:45:44ZTom Parrisparris@isciences.com
<ul></ul><p>Apologies for the delay. I've been travelling.</p>
<p>We obviously have the requisite hardware and can compile the GDAL C libraries. But we need some instructions on how to package things appropriately. Can someone send a recipe?</p>
<p>We are separately trying to compile the new GDAL JAVA language bindings to build some new actors. Stay tuned for progress on that. Assuming we are successful, this would eliminate the need for the Kepler provided JNI interface that only supports a couple of the GDAL methods.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167352010-03-08T19:20:35ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>Hi Tom, The instructions for building gdal in windows are here:<br /><a class="external" href="http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions">http://trac.osgeo.org/gdal/wiki/GdalOgrInJavaBuildInstructions</a></p>
<p>We basically just need the 64 bit dll files to include with Kepler. I haven't built it since the first time I did so which was probably 5 years ago so I'm not exactly sure what that entails anymore. Let me know if you need more info and I can try to dig it up.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167362010-03-08T19:36:27ZTom Parrisparris@isciences.com
<ul></ul><p>OK. We're in the process of building the new suite of java language bindings now. We've gotten them to compile on a 32 bit platform and our next step is to port to the 64bit platform.</p>
<p>We are doing this in preparation of writing some new Kepler GDAL actors. The new GDAL actors will read images into matrix tokens so we can create pipelines of actors that act on the data without having to read/write it for each operation. (Please let me know if I've missed something and this capability already exists elsewhere in Kepler).</p>
<p>I've poked around the current suite of Kepler GDAL actors. They make use of a custom coded JNI (not the generic java language bindings). So, I think we just need to provide the GDAL dll's for each platform and the dll for the JNI for the 64bit platform.</p>
<p>Our first priority is getting our new actors up and running on the 64bit platform. We'll try to get the existing GDAL actors up and running on 64bits after that.</p>
<p>-- Tom</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167372010-03-08T20:42:54ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>Sounds good. Thanks, Tom. Would you consider creating a new GDAL module for kepler? If so, we would be willing to host it in our SVN repository.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167382010-03-08T21:10:44ZTom Parrisparris@isciences.com
<ul></ul><p>Yes. But for the moment it has to take second place to meeting our own rather extreme schedule commitments. I think we can have something in deliverable shape by late April/early May.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167392010-03-10T00:05:46ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>Pushing this to post 2.0 since I think it affects a small number of users. I don't think this should hold up the 2.0 release.</p> Kepler - Bug #4859: GDALTranslate does not work on Windows 7 (64bit)https://projects.ecoinformatics.org/ecoinfo/issues/4859?journal_id=167402013-03-27T21:28:21ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 4859</p>