AIR,
I'm having a problem with CD.
ubuntu@rpi4b:~/iup-dev/cd/src$ make
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: Building Dependencies ... [ cd.dep ] (can be slow)
In file included from ./cairo/cdcairodbuf.c:7:
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairoctx.h:57:22: note: in expansion of macro ‘CAIRO_VERSION_110’
57 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
In file included from ./cairo/cdcairopdf.c:12:
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairoctx.h:57:22: note: in expansion of macro ‘CAIRO_VERSION_110’
57 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
In file included from ./cairo/cdcairosvg.c:13:
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairoctx.h:57:22: note: in expansion of macro ‘CAIRO_VERSION_110’
57 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
In file included from ./cairo/cdcairo.c:16:
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairoctx.h:57:22: note: in expansion of macro ‘CAIRO_VERSION_110’
57 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairo.c:118:22: note: in expansion of macro ‘CAIRO_VERSION_110’
118 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairo.c:852:22: note: in expansion of macro ‘CAIRO_VERSION_110’
852 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairo.c:1726:22: note: in expansion of macro ‘CAIRO_VERSION_110’
1726 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairo.c:1736:22: note: in expansion of macro ‘CAIRO_VERSION_110’
1736 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairo.c:1749:22: note: in expansion of macro ‘CAIRO_VERSION_110’
1749 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairo.c:1759:22: note: in expansion of macro ‘CAIRO_VERSION_110’
1759 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
In file included from ./cairo/cdcairoimg.c:9:
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairoctx.h:57:22: note: in expansion of macro ‘CAIRO_VERSION_110’
57 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
In file included from ./cairo/cdcairoirgb.c:13:
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairoctx.h:57:22: note: in expansion of macro ‘CAIRO_VERSION_110’
57 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
In file included from ./cairo/cdcairops.c:13:
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairoctx.h:57:22: note: in expansion of macro ‘CAIRO_VERSION_110’
57 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
In file included from ./cairo/cdcaironative_gdk.c:13:
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairoctx.h:57:22: note: in expansion of macro ‘CAIRO_VERSION_110’
57 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
./cairo/cdcaironative_gdk.c:28:22: error: missing binary operator before token "("
28 | #if GTK_CHECK_VERSION(2, 22, 0)
| ^
./cairo/cdcaironative_gdk.c:67:22: error: missing binary operator before token "("
67 | #if GTK_CHECK_VERSION(3, 0, 0)
| ^
./cairo/cdcaironative_gdk.c:82:22: error: missing binary operator before token "("
82 | #if GTK_CHECK_VERSION(3, 0, 0) && !defined(GDK_NULL)
| ^
./cairo/cdcaironative_gdk.c:132:23: error: missing binary operator before token "("
132 | #if !GTK_CHECK_VERSION(3, 0, 0)
| ^
./cairo/cdcaironative_gdk.c:137:22: error: missing binary operator before token "("
137 | #if GTK_CHECK_VERSION(3, 0, 0)
| ^
./cairo/cdcaironative_gdk.c:147:23: error: missing binary operator before token "("
147 | #if !GTK_CHECK_VERSION(3, 0, 0) /* always recreate in GTK3 */
| ^
./cairo/cdcaironative_gdk.c:181:22: error: missing binary operator before token "("
181 | #if GTK_CHECK_VERSION(3, 0, 0)
| ^
./cairo/cdcaironative_gdk.c:188:22: error: missing binary operator before token "("
188 | #if GTK_CHECK_VERSION(3, 0, 0)
| ^
./cairo/cdcairoprn_unix.c:12:22: error: missing binary operator before token "("
12 | #if GTK_CHECK_VERSION(3, 0, 0)
| ^
./cairo/cdcairoprn_unix.c:14:24: error: missing binary operator before token "("
14 | #elif GTK_CHECK_VERSION(2, 10, 0)
| ^
In file included from ./cairo/cdcairoprn_unix.c:19:
./cairo/cdcairoctx.h:20:47: error: missing binary operator before token "("
20 | #define CAIRO_VERSION_110 CAIRO_VERSION_ENCODE(1, 10, 0)
| ^
./cairo/cdcairoctx.h:57:22: note: in expansion of macro ‘CAIRO_VERSION_110’
57 | #if CAIRO_VERSION >= CAIRO_VERSION_110
| ^~~~~~~~~~~~~~~~~
./cairo/cdcairoprn_unix.c:22:22: error: missing binary operator before token "("
22 | #if GTK_CHECK_VERSION(2, 10, 0)
| ^
Tecmake: starting [ cd:Linux53_arm64 ]
if [ ! -d ../obj/Linux53_arm64 ] ; then mkdir -p ../obj/Linux53_arm64 ; fi
if [ ! -d ../lib/Linux53_arm64 ] ; then mkdir -p ../lib/Linux53_arm64 ; fi
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling cd.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/cd.o cd.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling wd.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/wd.o wd.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling wdhdcpy.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/wdhdcpy.o wdhdcpy.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling rgb2map.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/rgb2map.o rgb2map.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling cd_vectortext.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/cd_vectortext.o cd_vectortext.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling cd_active.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/cd_active.o cd_active.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling cd_attributes.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/cd_attributes.o cd_attributes.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling cd_bitmap.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/cd_bitmap.o cd_bitmap.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling cd_image.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/cd_image.o cd_image.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling cd_primitives.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/cd_primitives.o cd_primitives.c
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling cd_text.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/cd_text.o cd_text.c
cd_text.c: In function ‘cdCanvasNativeFont’:
cd_text.c:310:30: warning: ‘%s’ directive writing up to 199 bytes into a region of size between 0 and 1023 [-Wformat-overflow=]
310 | sprintf(native_font, "%s,%s %d", canvas->font_type_face, style, canvas->font_size);
| ^~ ~~~~~
In file included from /usr/include/stdio.h:867,
from cd_text.c:8:
/usr/include/aarch64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 4 and 1236 bytes into a destination of size 1024
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Package webkit2gtk-4.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-4.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-4.0' found
Tecmake: compiling cd_util.c ...
gcc -c -Wall -O2 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim -Icairo -Isvg -I../include -I../../lua53/include -I/usr -I/include/gtk-3.0/unix-print -I/usr/include/freetype2 -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DUSE_GTK3 -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/cd_util.o cd_util.c
cd_util.c:1081:10: fatal error: glib.h: No such file or directory
1081 | #include <glib.h>
| ^~~~~~~~
compilation terminated.
make[1]: *** [../tecmake.mak:1713: ../obj/Linux53_arm64/cd_util.o] Error 1
make: *** [Makefile:14: cd] Error 2
ubuntu@rpi4b:~/iup-dev/cd/src$
Same problem with IUP.
Tecmake: compiling iup_thread.c ...
gcc -c -Wall -O2 -fPIC -I../include -I. -Igtk -I../../lua53/include -I/usr/X11R6/include -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE -DTEC_UNAME=Linux53_arm64 -DTEC_SYSNAME=Linux -DLinux=5.3 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux53_arm64/iup_thread.o iup_thread.c
iup_thread.c:15:10: fatal error: glib.h: No such file or directory
15 | #include <glib.h>
| ^~~~~~~~
compilation terminated.
make[1]: *** [../tecmake.mak:1713: ../obj/Linux53_arm64/iup_thread.o] Error 1
make: *** [Makefile:12: iup] Error 2
ubuntu@rpi4b:~/iup-dev/iup/src$