FL_TREE_REASON_RESELECTED was not declared
The following error is encountered while buiding gmsh:
[ 47%] Building CXX object CMakeFiles/gmsh.dir/Fltk/visibilityWindow.cpp.o /gmsh/Fltk/visibilityWindow.cpp: In function 'void tree_cb(Fl_Widget*, void*)': /gmsh/Fltk/visibilityWindow.cpp:1211:33: error: 'FL_TREE_REASON_RESELECTED' was not declared in this scope; did you mean 'FL_TREE_REASON_DESELECTED'? 1211 | if(tree->callback_reason() == FL_TREE_REASON_RESELECTED && Fl::event_clicks()) {
This arose while trying to build a Singularity image:
export DEBIAN_FRONTEND=noninteractive apt-get -y update && apt-get -y upgrade apt-get -y install libfreetype-dev apt-get -y install libocct-foundation-dev libocct-data-exchange-dev apt-get -y install libfltk1.3-dev apt-get -y install xorg apt-get -y install build-essential cmake apt-get -y install git
git clone http://gitlab.onelab.info/gmsh/gmsh.git cd gmsh mkdir build && cd build cmake .. -DCMAKE_INSTALL_PREFIX=/opt make -j 4 make install