|
|
On 3/12/24 21:15 schrieb Greg Ercolano wrote:
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?
These errors have been reported in Issue #932
regarding Ubuntu 20.04, the same system you are reporting the
error from.
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.
The CMake warning is normal, it means only
that you don't have a system libdecor with version 0.2.0 or higher
and this is the reason why FLTK uses the bundled libdecor and the
errors appear since the latest update.
This has obviously something to do with the XML files that are
provided by the system for Wayland support. These files are
"compiled" to header files that are used when building libdecor.
This is something Manolo will certainly care about.
For now you could disable building Wayland (use -D
FLTK_BACKEND_WAYLAND:BOOL=OFF) as a workaround to be able to build
FLTK.
Note: I see compiler warnings but I don't see the error you and
Chris reported on my newer Debian system.
Tue 03/12/24 13:03:55 /usr/local/src/fltk-1.4.x.git/build2
[erco@harris] 363 : cmake ..
-- Warning: system libdecor doesn't
satisfy version >= 0.2.0,
-- using bundled libdecor library instead.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/ec266a53-573f-4a6f-bdf4-99c2dddee447%40aljus.de.
[ Direct Link to Message ] | |
|
| |