FLTK logo

Re: [fltk.coredev] latest 1.4.x current: weird new build error on linux

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: latest 1.4.x current: weird new build error on linux Greg Ercolano 13:15 Mar 12  
  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.



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.

-- Configuration Summary for FLTK 1.4.0 generated by CMake 3.16.3 --

-- The following OPTIONAL packages have been found:

 * Doxygen
 * LATEX
 * ZLIB
 * PNG
 * JPEG

-- Static libraries   will be built in /usr/local/src/fltk-1.4.x.git/build2/lib
-- Shared libraries   will not be built (set FLTK_BUILD_SHARED_LIBS=ON to build)
-- The forms library  will be built in /usr/local/src/fltk-1.4.x.git/build2/lib
-- The OpenGL library will be built in /usr/local/src/fltk-1.4.x.git/build2/lib
-- fluid              will be built in /usr/local/src/fltk-1.4.x.git/build2/bin/fluid
-- fltk-options       will be built in /usr/local/src/fltk-1.4.x.git/build2/bin/fltk-options
-- Test programs      will be built in /usr/local/src/fltk-1.4.x.git/build2/bin/test
-- Example programs   will not be built (set FLTK_BUILD_EXAMPLES=ON to build)
--
-- Build configuration     : <unspecified>
--
-- Image Libraries         : JPEG = System
--                         : PNG  = System
--                         : ZLIB = System
-- Use Wayland             : Yes (if available at run-time)
-- Use system libdecor     : No
-- All drawing uses Cairo  : Yes
-- Use Pango               : Yes
-- Fl_Cairo_Window support : No
-- Use std::               : No


-- End of Configuration Summary --

-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/fltk-1.4.x.git/build2

Tue 03/12/24 13:04:00 /usr/local/src/fltk-1.4.x.git/build2
[erco@harris] 364 : make -j 4


--
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/dc849623-fd67-455c-854c-8331aa950d8d%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.