On Mon, Apr 03, 2017 at 04:28:22PM -0700, Austin Fox wrote:
> I found/had one other issue in gwy.c
> line 89
> gchar *filename = g_strconcat(gwyddion_libs[i],
> ".", GWY_SHARED_LIBRARY_EXTENSION,
> ".0",
> NULL);
> the ".0" either should not be there or should be before the GWY_SHA... as
> it causes the libgwy not to load b/c of wrong file name.
>
> delete the ,".0" and gwy now imports!
Hm. So the libraries are called like libgwyddion2.0.dylib? This
differs from Linux and BSD (possibly other ELF systems, not sure here)
where the version appears after the extension: libgwyddion2.so.0.
The unnumbered library (which may be just a link) belongs to the
development package on systems where packages are split into user and
development parts (e.g. most Linux distros). Removing ".0" would make
the Python extension module require the development package.
I can add an exception for Dawrin as a quick fix but a better solution
is to get the library names from the configuration. Could you please
send me your libtool (should be created in top-level directory by
configure).
> a. gwyddion-2.47-pygobject-include.patch
Should be no longer necessary.
> 3. run config
> ./configure PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python.
> framework/Versions/2.7/lib/pkgconfig/ DYLD_FALLBACK_LIBRARY_PATH="/
> opt/local/lib" CPPFLAGS="-I/opt/local/include -I/opt/local/Library/
> Frameworks/Python.framework/Versions/2.7/include/"
> LDFLAGS="-L/opt/local/lib"
Did you try without
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/
in CPPFLAGS?
> Also - I am assuming this is normal but just incase it is not I get 3
> duplicate warnings on import:
> ** (<unknown>:25137): WARNING **: Trying to register gtype
> 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
Yes, this is ‘normal’ and we cannot do much about it because it occurs
in GLib.
Regards,
Yeti
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users