Great! Thanks Em qui., 3 de ago. de 2023 às 04:57, sur-behoffski < sur_behoff...@grouse.com.au> escreveu:
> G'day, > > I'm trying to help Anonymous build IM/CD/IUP with Lua 4.4.6 and > LuaRocks. This message documents some of the hoops that "lglicua" > uses to get things to work. > > First of all, if you use the Tecgraf-supplied tecmake.mak v4.21, > then CD does not build... because of, you guessed it, incorrectly > inferring that Kernel 6.0.0 is older than Kernel 5, and therefore > selecting GTK2 instead of GTK3: > > -- > > > Tecmake: compiling cdgdk.c ... > > gcc -c -Wall -O2 -m64 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim > -Icairo -Isvg -I../include -I/usr/include/lua5.4 > -I/usr/include/gtk-unix-print-2.0 -I/usr/include/freetype2 > -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 > -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 > -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include > -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include > -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include > -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -DGTK_DISABLE_DEPRECATED > -DTEC_UNAME=Linux60_64 -DTEC_SYSNAME=Linux -DLinux=6.0 -DTEC_LITTLEENDIAN > -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/Linux60_64/cdgdk.o gdk/cdgdk.c > > In file included from gdk/cdgdk.c:13: > > gdk/cdgdk.h:10:10: fatal error: gdk/gdk.h: No such file or directory > > 10 | #include <gdk/gdk.h> > > | ^~~~~~~~~~~ > > compilation terminated. > > make[1]: *** [../tecmake.mak:1771: ../obj/Linux60_64/cdgdk.o] Error 1 > > make: *** [Makefile:11: cd] Error 2 > > Execution of cd build failed: > > **** (Note options such as "-I/usr/include/gtk-2.0" and > "-DTEC_UNAME=Linux60_64" above.) > > -- > > **** Once we stomp on CD's "tecmake.mak-v4.21" with lglicua's > "tecmake-mak-v4.31", > **** then the CD build completes successfully. Note the prominent presence > **** of GTK3 items, e.g. "-I/usr/include/gtk-3.0". "-DUSE_GTK3". Also, > note > **** that the system version names kernel 6: "-DLinux=6.0", > "-L../../im/lib/Linux60_64": > > > Tecmake: compiling cdgdkclp.c ... > > gcc -c -Wall -O2 -m64 -fPIC -I. -Idrv -Ix11 -Iwin32 -Iintcgm -Isim > -Icairo -Isvg -I../include -I/usr/include/lua5.4 > -I/usr/include/gtk-3.0/unix-print -I/usr/include/freetype2 > -I/usr/include/atk-1.0 -I/usr/include/gtk-3.0 -I/usr/include/gdk-pixbuf-2.0 > -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 > -I/usr/lib64/glib-2.0/include -I/usr/lib/glib-2.0/include > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include > -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/harfbuzz > -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGSEAL_ENABLE > -DUSE_GTK3 -DTEC_UNAME=Linux60_64 -DTEC_SYSNAME=Linux -DLinux=6.0 > -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o > ../obj/Linux60_64/cdgdkclp.o gdk/cdgdkclp.c > > **** [...] > > > Tecmake: linking libcdluaim54.so ... > > gcc -shared -o ../lib/Linux60_64/Lua54/libcdluaim54.so > ../obj/cdluaim54/Linux60_64/Lua54/cdluaim5.o > -L../../im/lib/Linux60_64/Lua54 -L../lib/Linux60_64/Lua54 > -L../lib/Linux60_64 -L../../im/lib/Linux60_64 -lcdim -limlua54 -lcdlua54 > -lcd -lfontconfig -lim -lpng -lfreetype -lz -lm > > > > Tecmake: Dynamic Library (../lib/Linux60_64/Lua54/libcdluaim54.so) Done. > > -- > > **** Now that CD has compiled correctly, we try to build IUP, first of all > **** using the SourceForge-supplied tecmake.mak-v4.21, and, then after > failing, > **** retrying with tecmake.mak-v4.31. Again, GTK2/GTK3 features > prominently: > > > Tecmake: compiling iupgtk_focus.c ... > > gcc -c -Wall -O2 -m64 -fPIC -I../include -I. -Igtk > -I/usr/include/lua5.4 -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 > -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include > -I/usr/lib64/gtk-2.0/include -I/usr/lib/glib-2.0/include > -I/usr/lib/gtk-2.0/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include > -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include > -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/X11R6/include > -DGTK_DISABLE_DEPRECATED -DTEC_UNAME=Linux60_64 -DTEC_SYSNAME=Linux > -DLinux=6.0 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o > ../obj/Linux60_64/iupgtk_focus.o gtk/iupgtk_focus.c > > gtk/iupgtk_focus.c:7:10: fatal error: gtk/gtk.h: No such file or > directory > > 7 | #include <gtk/gtk.h> > > | ^~~~~~~~~~~ > > compilation terminated. > > make[2]: *** [../tecmake.mak:1771: ../obj/Linux60_64/iupgtk_focus.o] > Error 1 > > make[1]: *** [Makefile:12: iup] Error 2 > > make: *** [Makefile:13: iup] Error 2 > > Execution of iup build failed: > > -- > > **** After stomping on tecmake.mak, iupgtk_focus.c compiles cleanly, but we > **** still have a build failure, with iupgtk_webbrowser.c. Turns out that > **** "iup/srcweb/config.mak" has the same GTK3-tops-out-at-Kernel-5 defect > **** that we treated in tecmake.mak: > > **** (Retrying iupgtk_focus.c build: Now completes successfully.) > > > Tecmake: compiling iupgtk_focus.c ... > > gcc -c -Wall -O2 -m64 -fPIC -I../include -I. -Igtk > -I/usr/include/lua5.4 -I/usr/include/atk-1.0 -I/usr/include/gtk-3.0 > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 > -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include > -I/usr/lib/glib-2.0/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include > -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/harfbuzz > -I/usr/X11R6/include -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED > -DGSEAL_ENABLE -DTEC_UNAME=Linux60_64 -DTEC_SYSNAME=Linux -DLinux=6.0 > -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o > ../obj/Linux60_64/iupgtk_focus.o gtk/iupgtk_focus.c > > > > Tecmake: compiling iupgtk_clipboard.c ... > > **** [...] > > **** (New defect further on in the IUP build: iupgtk_webbrowser.c.) > > > Tecmake: compiling iupgtk_webbrowser.c ... > > gcc -c -Wall -O2 -m64 -fPIC -I../include -I../src -I../src/gtk > -I/usr/include/lua5.4 -I/usr/include/libsoup-2.4 > -I/usr/include/webkitgtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/gtk-3.0 > -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 > -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include > -I/usr/lib/glib-2.0/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include > -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/harfbuzz > -DTEC_UNAME=Linux60_64 -DTEC_SYSNAME=Linux -DLinux=6.0 -DTEC_LITTLEENDIAN > -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o > ../obj/iupweb/Linux60_64/iupgtk_webbrowser.o iupgtk_webbrowser.c > > iupgtk_webbrowser.c:15:10: fatal error: webkit/webkit.h: No such file or > directory > > 15 | #include <webkit/webkit.h> > > | ^~~~~~~~~~~~~~~~~ > > compilation terminated. > > make[2]: *** [../tecmake.mak:1733: > ../obj/iupweb/Linux60_64/iupgtk_webbrowser.o] Error 1 > > make[1]: *** [Makefile:10: do_all] Error 2 > > make: *** [Makefile:35: iupweb] Error 2 > > Execution of iup build failed: > > **** Stomping on iup/srcweb/config.mak with a fixed version yields a build > **** with warnings but no errors: > > > Tecmake: compiling iupgtk_webbrowser.c ... > > gcc -c -Wall -O2 -m64 -fPIC -I../include -I../src -I../src/gtk > -I/usr/include/lua5.4 -I/usr/include/l > > ibsoup-2.4 -I/usr/include/webkitgtk-4.0 -I/usr/include/atk-1.0 > -I/usr/include/gtk-3.0 -I/usr/include/g > > dk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 > -I/usr/include/glib-2.0 -I/usr/lib64/glib- > > 2.0/include -I/usr/lib/glib-2.0/include > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include > -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/harfbuzz > -DUSE_WEBKIT2 -DTEC_UNAME=Linux60_64 -DTEC_SYSNAME=Linux -DLinux=6.0 > -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o > ../obj/iupweb/Linux60_64/iupgtk_webbrowser.o iupgtk_webbrowser.c > > iupgtk_webbrowser.c: In function 'gtkWebBrowserRunJavascript': > > iupgtk_webbrowser.c:419:3: warning: 'webkit_web_view_run_javascript' is > deprecated: Use 'webkit_web_view_evaluate_javascript' instead > [-Wdeprecated-declarations] > > 419 | webkit_web_view_run_javascript((WebKitWebView*)ih->handle, js, > NULL, NULL, NULL); > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > In file included from > /usr/include/webkitgtk-4.0/webkit/WebKitPrintOperation.h:29, > > from /usr/include/webkitgtk-4.0/webkit2/webkit2.h:72, > > from iupgtk_webbrowser.c:13: > > /usr/include/webkitgtk-4.0/webkit/WebKitWebView.h:526:1: note: declared > here > > 526 | webkit_web_view_run_javascript > (WebKitWebView *web_view, > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > At top level: > > iupgtk_webbrowser.c:410:13: warning: 'gtkWebBrowserRunJavascript' > defined but not used [-Wunused-function] > > 410 | static void gtkWebBrowserRunJavascript(Ihandle* ih, const char* > format, ...) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > Tecmake: librarian libiupweb.a ... > > **** [...] > > > Tecmake: linking iupluascripter54 ... > > g++ -o ../bin/Linux60_64/Lua54/iupluascripter54 > ../obj/iupluascripter54/Linux60_64/Lua54/iupluascripter.o > /usr/lib/x86_64-linux-gnu/liblua5.4.a -Wl,-E -L../lib/Linux60_64/Lua54 > -L../lib/Linux60_64/Lua54 -L../lib/Linux60_64 -liupluascripterdlg54 > -liupimglib -liup_scintilla -ldl -liuplua54 -liup -lm > > > > Tecmake: Application (../bin/Linux60_64/Lua54/iupluascripter54) Done. > > > > ---------------------------------------------- > > Okay; enough for this message, but we have skipped some earlier details, > which we will deal with in the next message. Note that tecmake.mak-v4.31 > and iup-srcweb-config.mak are attached to this message, and are also > automatically applied if "lglicua" is used for the build. > > cheers, > > sur-behoffski (Brenton Hoff) > programmer, Grouse Software_______________________________________________ > Iup-users mailing list > Iup-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/iup-users >
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users