aaronzou / mirone

Automatically exported from code.google.com/p/mirone
0 stars 0 forks source link

Installing mex #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
This is probably a simple problem. I'm not sure what you mean by 'move the 
offending ML dynamic libraries out of the way' 
Which libraries and where to? 

What steps will reproduce the problem?
1. type 'mirone' 
2. File > load gmt grid file
3. Select any gmt netcdf file

What is the expected output? What do you see instead?

I expect to load the gmt netcdf file. It pops back the error listed in the 
INSTALL.OSX file
??? Invalid MEX-file
'/Users/j/programs/MacMirone220/lib_mex/gdalread.mexmaci64':
dlopen(/Users/j/programs/MacMirone220/lib_mex/gdalread.mexmaci64, 1): Library
not loaded: /Users/j/programs/MacMirone220/libnetcdf.dylib
  Referenced from: /Users/j/programs/MacMirone220/libgdal.dylib
  Reason: Incompatible library version: libgdal.dylib requires version 9.0.0
  or later, but libnetcdf.dylib provides version 8.0.0.

What version of the product are you using? On what operating system?

macmirone220 
Yosemite 10.10.3

Please provide any additional information below.

Original issue reported on code.google.com by mol3ea...@gmail.com on 18 Jun 2015 at 8:36

GoogleCodeExporter commented 8 years ago
This is currently a hard problem created by TMW when it ships very outdated 
shared libraries and manages to force the use of their own that are often 
incompatible. That's what happens for example with libnetcdf.so. You can rename 
it to something else and that's what I meant by "moving them out of the way" 
but I'm afraid that next there will be some HDF shared lib showing up 
incompatibilities ... and the problem continues.

Original comment by JMFL...@gmail.com on 19 Jun 2015 at 12:40

GoogleCodeExporter commented 8 years ago
Thanks for the prompt reply, so, if I understand correctly you say it is fine 
to just move/delete/rename the files. What then is the difference with them? 
Maybe you can be of assistance with what I really want to do, all I want the 
mirone gui for is so that I can do the grdfft filters on some data from within 
matlab. is there any way to utilize the gmt files you provide by bypassing the 
gui's problems? 

Original comment by mol3ea...@gmail.com on 19 Jun 2015 at 1:30

GoogleCodeExporter commented 8 years ago
The difference is that they are old and incompatible with the same shared libs 
against which GMT (for example) was compiled. And are more complicated on unix 
where we don't know how to avoid that ML calls the incompatible libs. I say 
"we" because we are having the same problem in GMT with our Matlab interface 
that is ready to use in next 5.2 version. Please see the link below and reply 
if you are interested in trying.

http://gmt.soest.hawaii.edu/issues/697

Original comment by JMFL...@gmail.com on 19 Jun 2015 at 10:46