Getting this with a git pull and new
default build/cmake:
..
[ 38%] Building C object
src/CMakeFiles/fltk.dir/gtk-shell-protocol.c.o
[ 38%] Building C object
src/CMakeFiles/fltk.dir/text-input-protocol.c.o
In file included from
/usr/local/src/fltk-1.4.x.git/libdecor/build/fl_libdecor-plugins.c:62:
/usr/local/src/fltk-1.4.x.git/libdecor/build/../src/plugins/gtk/libdecor-gtk.c:
In function 'handle_titlebar_gesture':
/usr/local/src/fltk-1.4.x.git/libdecor/build/../src/plugins/gtk/libdecor-gtk.c:2250:3:
error: a label can only be part of a statement and a
declaration is not a statement
2250 | const int title_height =
gtk_widget_get_allocated_height(frame_gtk->header);
| ^~~~~
/usr/local/src/fltk-1.4.x.git/libdecor/build/../src/plugins/gtk/libdecor-gtk.c:
In function 'pointer_button':
/usr/local/src/fltk-1.4.x.git/libdecor/build/../src/plugins/gtk/libdecor-gtk.c:2411:2:
error: label at end of compound statement
2411 | default:
| ^~~~~~~
make[2]: *** [src/CMakeFiles/fltk.dir/build.make:2565:
src/CMakeFiles/fltk.dir/__/libdecor/build/fl_libdecor-plugins.c.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:578:
src/CMakeFiles/fltk.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Strange that all the commit's builds on github don't show
these errors.
Must be something about my system?
FWIW I'm on Ubuntu 20.04, g++ version: 9.4.0, and the output
of cmake below,
seems like there's a cmake warning which is probably
relevant.
I can supply more info if needed.
On 3/12/24 13:04, Greg Ercolano wrote:
Getting this with a git pull and new default build/cmake:
..
[ 38%] Building C object src/CMakeFiles/fltk.dir/gtk-shell-protocol.c.o
[ 38%] Building C object src/CMakeFiles/fltk.dir/text-input-protocol.c.o
In file included from /usr/local/src/fltk-1.4.x.git/libdecor/build/fl_libdecor-plugins.c:62:
/usr/local/src/fltk-1.4.x.git/libdecor/build/../src/plugins/gtk/libdecor-gtk.c: In function 'handle_titlebar_gesture':
/usr/local/src/fltk-1.4.x.git/libdecor/build/../src/plugins/gtk/libdecor-gtk.c:2250:3: error: a label can only be part of a statement and a declaration is not a statement
2250 | const int title_height = gtk_widget_get_allocated_height(frame_gtk->header);
| ^~~~~
/usr/local/src/fltk-1.4.x.git/libdecor/build/../src/plugins/gtk/libdecor-gtk.c: In function 'pointer_button':
/usr/local/src/fltk-1.4.x.git/libdecor/build/../src/plugins/gtk/libdecor-gtk.c:2411:2: error: label at end of compound statement
2411 | default:
| ^~~~~~~
make[2]: *** [src/CMakeFiles/fltk.dir/build.make:2565: src/CMakeFiles/fltk.dir/__/libdecor/build/fl_libdecor-plugins.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:578: src/CMakeFiles/fltk.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Strange that all the commit's builds on github don't show these errors.
Must be something about my system?
FWIW I'm on Ubuntu 20.04, g++ version: 9.4.0, and the output of cmake below,
seems like there's a cmake warning which is probably relevant.
I can supply more info if needed.
On 3/12/24 13:33, 'Albrecht Schlosser' via fltk.coredev wrote:
For now you could disable building Wayland (use -D FLTK_BACKEND_WAYLAND:BOOL=OFF) as a workaround to be able to build FLTK.