Sorry for the missing subject in the previous email,
My gir and typelib files were outdated. The issue seems to be the
symbol lookup error in the attached output.
2014-05-06 15:16 GMT-03:00 Manuel Quiñones <[email protected]>:
> Hi Jon,
>
> just pulled mypaint and brushlib and got the following error in GI.
> Happens in my WIP application https://github.com/manuq/xsheet and also
> in the Python example included in brushlib. Scons builds well, without
> aparent errors. I went through git history trying to find where the
> change was introduced but couldn't find anything. Any idea? Thanks,
>
> [manuq@localhost brushlib]$ python examples/gegl.py
> Traceback (most recent call last):
> File "examples/gegl.py", line 130, in <module>
> app = Application()
> File "examples/gegl.py", line 10, in __init__
> self.brush = MyPaint.Brush()
> TypeError: cannot allocate disguised struct MyPaint.Brush; consider
> adding a constructor to the library or to the overrides
>
>
> --
> .. manuq ..
>
> _______________________________________________
> Mypaint-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/mypaint-discuss
--
.. manuq ..
[manuq@localhost mypaint]$ scons brushlib_only=true enable_gegl=true
enable_introspection=true prefix=$prefix install
scons: Reading SConscript files ...
building for 'python2.7' (use scons python_binary=xxx to change)
using 'python2.7-config' (use scons python_config=xxx to change)
rm -f libmypaint-tests.so libmypaint.so libmypaintlib.so
Enabling i18n for brushlib in full application build
Enabling glib because of enable_introspection=true
Building a shared lib instead of a static lib because of
enable_introspection=true
swig -Wall -o mypaintlib_wrap.cpp -noproxydel -python -c++ mypaintlib.i
rm -f _mypaintlib.so
set umask to 0022 (was 0002)
scons: done reading SConscript files.
scons: Building targets ...
burn_versions(["mypaint"], ["mypaint.py"])
Chmod("mypaint", 0755)
Install file: "mypaint" as "/home/manuq/prog/gegl-project/workplace/bin/mypaint"
Chmod("/home/manuq/prog/gegl-project/workplace/bin/mypaint", 0755)
burn_versions(["desktop/mypaint-ora-thumbnailer"],
["desktop/mypaint-ora-thumbnailer.py"])
Chmod("desktop/mypaint-ora-thumbnailer", 0755)
Install file: "desktop/mypaint-ora-thumbnailer" as
"/home/manuq/prog/gegl-project/workplace/bin/mypaint-ora-thumbnailer"
Chmod("/home/manuq/prog/gegl-project/workplace/bin/mypaint-ora-thumbnailer",
0755)
Chmod("/home/manuq/prog/gegl-project/workplace/bin", 0755)
gcc -o libmypaint.so -O3 -z origin -fopenmp -shared -Wl,-rpath=\$ORIGIN
brushlib/brushmodes.os brushlib/fifo.os brushlib/helpers.os brushlib/mapping.os
brushlib/mypaint-brush-settings.os brushlib/mypaint-brush.os
brushlib/mypaint-fixed-tiled-surface.os brushlib/mypaint-rectangle.os
brushlib/mypaint-surface.os brushlib/mypaint-tiled-surface.os
brushlib/mypaint.os brushlib/operationqueue.os brushlib/rng-double.os
brushlib/tilemap.os brushlib/utils.os -lm -ljson-c -lgobject-2.0 -lglib-2.0
LD_LIBRARY_PATH=./ g-ir-scanner -o brushlib/MyPaintGegl-1.1.gir --warn-all
--namespace=MyPaintGegl --nsversion=1.1 --add-include-path=./brushlib
--identifier-prefix=MyPaintGegl --symbol-prefix=mypaint_gegl --pkg=glib-2.0
--pkg=gegl-0.3 -Ibrushlib/ -I./brushlib/gegl --include=Gegl-0.3
--include=MyPaint-1.1 --library=mypaint-gegl
brushlib/gegl/mypaint-gegl-surface.c brushlib/gegl/mypaint-gegl-surface.h
brushlib/glib/mypaint-gegl-glib.c brushlib/glib/mypaint-gegl-glib.h
g-ir-scanner: compile: gcc -Wall -Wno-deprecated-declarations -pthread
-I/home/manuq/prog/gegl-project/workplace/include/gegl-0.3
-I/home/manuq/prog/gegl-project/workplace/include/babl-0.1
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Ibrushlib/
-I./brushlib/gegl -I/home/manuq/prog/gegl-project/workplace/include/gegl-0.3
-I/home/manuq/prog/gegl-project/workplace/include/babl-0.1
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -c -o
/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/MyPaintGegl-1.1.o
/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/MyPaintGegl-1.1.c
g-ir-scanner: link: libtool --mode=link --tag=CC gcc -o
/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/MyPaintGegl-1.1
-export-dynamic
/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/MyPaintGegl-1.1.o
-L. -lmypaint-gegl -Wl,--export-dynamic -pthread
-L/home/manuq/prog/gegl-project/workplace/lib -lgegl-0.3 -lgmodule-2.0
-lgio-2.0 -lbabl-0.1 -lm -lgobject-2.0 -lglib-2.0
libtool: link: gcc -o
/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/MyPaintGegl-1.1
/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/MyPaintGegl-1.1.o
-Wl,--export-dynamic -pthread -Wl,--export-dynamic -L. -lmypaint-gegl
-L/home/manuq/prog/gegl-project/workplace/lib
/home/manuq/prog/gegl-project/workplace/lib/libgegl-0.3.so -lgthread-2.0
-lgmodule-2.0 -lgio-2.0
/home/manuq/prog/gegl-project/workplace/lib/libbabl-0.1.so -ldl -lm
-lgobject-2.0 -lglib-2.0 -pthread -Wl,-rpath
-Wl,/home/manuq/prog/gegl-project/workplace/lib -Wl,-rpath
-Wl,/home/manuq/prog/gegl-project/workplace/lib
/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/MyPaintGegl-1.1:
symbol lookup error:
/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/MyPaintGegl-1.1:
undefined symbol: mypaint_gegl_tiled_surface_get_type
Command
'['/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/MyPaintGegl-1.1',
'--introspect-dump=/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/functions.txt,/home/manuq/prog/gegl-project/mypaint/tmp-introspectyQPzu2/dump.xml']'
returned non-zero exit status 127
scons: *** [brushlib/MyPaintGegl-1.1.gir] Error 1
scons: building terminated because of errors.
[manuq@localhost mypaint]$
_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss