I can compile, but not link.
linking gives loads of undefined reference errors,
such as:
:ops/op_add.c:139: undefined reference to `gegl_buffer_pixels'
:ops/op_add.c:141: undefined reference to `gegl_buffer_pixels'
:ops/op_add.c:154: undefined reference to `gegl_buffer_get_fmt'
:ops/op_add.c:167: undefined reference to `gegl_buffer_get_fmt'
:ops/op_add.c:170: undefined reference to `gegl_buffer_pixels'
:ops/op_add.c:185: undefined reference to `gegl_buffer_set_fmt'
:ops/op_add.c:174: undefined reference to `gegl_buffer_pixels'
ops/op_box_blur.o: In function `calc_have_rect':ops/op_box_blur.c:203:
undefined reference to `gegl_
:ops/op_box_blur.c:207: undefined reference to
`gegl_operation_set_have_rect'
ops/op_box_blur.o: In function `calc_need_rect':ops/op_box_blur.c:222:
undefined reference to `gegl_
:ops/op_box_blur.c:224: undefined reference to
`gegl_operation_set_need_rect'
ops/op_box_blur.o: In function `evaluate':ops/op_box_blur.c:51: undefined
reference to `gegl_operati
:ops/op_box_blur.c:61: undefined reference to `gegl_buffer_get_format'
:ops/op_box_blur.c:137: undefined reference to `gegl_buffer_get_fmt'
:ops/op_box_blur.c:156: undefined reference to `gegl_buffer_set_fmt'
:ops/op_box_blur.c:70: undefined reference to `gegl_buffer_get_format'
:ops/op_box_blur.c:175: undefined reference to `gegl_buffer_get_fmt'
:ops/op_box_blur.c:195: undefined reference to `gegl_buffer_set_fmt'
ops/op_composer.o: In function `calc_have_rect':ops/op_composer.c:211:
undefined reference to `gegl_
:ops/op_composer.c:212: undefined reference to
`gegl_operation_get_have_rect'
:ops/op_composer.c:219: undefined reference to
`gegl_operation_set_have_rect'
:ops/op_composer.c:225: undefined reference to
`gegl_operation_set_have_rect'
It seems that the required symbols are in libgegl-1.0.a but not in
libgegl-1.0.so.
Hardcoding '/usr/lib/libgegl-1.0.a' instead of 'pkg-config --libs gegl' in
LDFLAGS fixes the undefined references (if you also add babl to the
pkg-config part)
Also, for the 'png' target, 'rm -f' should be used instead of 'rm' -- make
errored because there were no pngs to remove.
Still having some problems -- the contents of the PNGs look like this:
babl-extension.c:178 babl_extension_load()
dlopen() failed:
/usr/lib/babl-0.0/CIE-Lab.so: invalid mode for dlopen(): Invalid
argument
babl-extension.c:178 babl_extension_load()
dlopen() failed:
/usr/lib/babl-0.0/gegl-fixups.so: invalid mode for dlopen(): Invalid
argument
babl-extension.c:178 babl_extension_load()
dlopen() failed:
/usr/lib/babl-0.0/gggl.so: invalid mode for dlopen(): Invalid
argument
babl-extension.c:178 babl_extension_load()
dlopen() failed:
/usr/lib/babl-0.0/naive-CMYK.so: invalid mode for dlopen(): Invalid
argument
babl-format.c:420 babl_format()
babl_format("RaGaBaA float"): not found
Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1085512768 (LWP 27666)]
0x40796c1e in waitpid () from /lib/tls/libc.so.6
#0 0x40796c1e in waitpid () from /lib/tls/libc.so.6
#1 0x4073c2c9 in strtold_l () from /lib/tls/libc.so.6
#2 0x406e056d in system () from /lib/tls/libpthread.so.0
#3 0x08069b72 in babl_backtrack () at babl-internal.c:68
#4 0x08069b8b in babl_die () at babl-internal.c:74
#5 0x080690a9 in babl_format (name=0x80718d0 "RaGaBaA float") at
babl-format.c:420
#6 0x08053c7b in evaluate (operation=0x8088800, output_prop=0x80736c1 "y")
at ops/op_scale.c:99
#7 0x0804ec3d in evaluate (operation=0x8088800,
output_prop=0xfffffe00 <Address 0xfffffe00 out of bounds>) at
ops/op_filter.c:173
during 'make png', I got errors like:
./anim > anim.png
** (process:28086): WARNING **: gegl_node_set_valist:OpNop has no property
named: 'x'
make[1]: [anim.png] Error 255 (ignored)
./brightness-and-contrast > brightness-and-contrast.png
./brightness-and-contrast-with-math-ops >
brightness-and-contrast-with-math-ops.png
./buffer-test-0 > buffer-test-0.png
make[1]: [buffer-test-0.png] Error 255 (ignored)
./buffer-test-1 > buffer-test-1.png
make[1]: [buffer-test-1.png] Error 255 (ignored)
./introspect > introspect.png
** (process:28108): WARNING **: gegl_node_set_valist:OpNop has no property
named: 'x'
./multi-gegl > multi-gegl.png
make[1]: [multi-gegl.png] Error 255 (ignored)
At this point I'm suspecting there is something odd about my libdl.so.
_______________________________________________
Gegl-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer