Michele Della Ciana
2016-04-24 17:02:49 UTC
Hi!
My name is Michele and I'm an Italian physics student.
I'm trying to install the minimal module in the totorial's section but when I start gwyddion it says:
(gwyddion:6946): GLib-GObject-WARNING **: cannot register existing type 'gchar'
**
GLib-GObject:ERROR:gvaluetypes.c:455:_g_value_types_init: assertion failed: (type == G_TYPE_CHAR)
Abort trap: 6
logout
and it closes.
To copile the module as a shared library I used:
gcc -fPIC -shared -o module.so main.cpp `pkg-config --cflags --libs gwyddion`
where main.cpp is the source code of the minimal module.
It compiles fine... the problem occurs when I put the "module.so" file in the module's directory.
By now I'm using gwyddion just as a library, but I hope to solve the problem!
I think is useful to know that I'm using a mac with OS X Yosemite and I have installed gwyddion using homebrew!
Sorry for my English, I hope the problem is clear!
Thanks in advance
Michele
My name is Michele and I'm an Italian physics student.
I'm trying to install the minimal module in the totorial's section but when I start gwyddion it says:
(gwyddion:6946): GLib-GObject-WARNING **: cannot register existing type 'gchar'
**
GLib-GObject:ERROR:gvaluetypes.c:455:_g_value_types_init: assertion failed: (type == G_TYPE_CHAR)
Abort trap: 6
logout
and it closes.
To copile the module as a shared library I used:
gcc -fPIC -shared -o module.so main.cpp `pkg-config --cflags --libs gwyddion`
where main.cpp is the source code of the minimal module.
It compiles fine... the problem occurs when I put the "module.so" file in the module's directory.
By now I'm using gwyddion just as a library, but I hope to solve the problem!
I think is useful to know that I'm using a mac with OS X Yosemite and I have installed gwyddion using homebrew!
Sorry for my English, I hope the problem is clear!
Thanks in advance
Michele