On 08/14/16 23:46, Greg Ercolano wrote:
> To install + build FLTK correctly on kubuntu 16.04, the apt commands
> I needed to get FLTK svn to compile correctly were:
>
> apt -y install g++
> apt -y install subversion
> apt -y install autoconf
> apt -y install libx11-dev
> apt -y install libxft-dev
>
> From there, the usual to checkout svn current and make it:
>
> cd /usr/local/src
> svn co
http://seriss.com/public/fltk/fltk/branches/branch-1.3/ fltk-1.3.x-svn
> make
>
> ..and that seemed to work.
I should add.. I did get the following warnings which I've seen before
and thought we addressed in r11810:
----
Compiling screen_xywh.cxx...
screen_xywh.cxx: In function �void screen_init()�:
screen_xywh.cxx:171:7: warning: variable �dpi_by_randr� set but not used [-Wunused-but-set-variable]
int dpi_by_randr = 0;
^
screen_xywh.cxx:172:9: warning: variable �dpih� set but not used [-Wunused-but-set-variable]
float dpih = 0.0f, dpiv = 0.0f;
^
screen_xywh.cxx:172:22: warning: variable �dpiv� set but not used [-Wunused-but-set-variable]
float dpih = 0.0f, dpiv = 0.0f;
^
Compiling fl_utf8.cxx...
Compiling ps_image.cxx...
----
I can make those go away if I install xinerama with:
apt -y install libxinerama-dev
So perhaps that should be added to the 'apt install' list above.
But we should maybe be more robust about preventing these warnings
by localizing the scope of those variables to the #ifdef sections
they're used in.
Also getting these warnings which I've also seen before:
----
Compiling filename_ext.cxx...
Fl_x.cxx: In function ���KeySym fl_KeycodeToKeysym(Display*, KeyCode, unsigned int)���:
Fl_x.cxx:1322:10: warning: ���KeySym XKeycodeToKeysym(Display*, KeyCode, int)��� is deprecated [-Wdeprecated-declarations]
return XKeycodeToKeysym(d, k, i);
^
In file included from ../FL/fl_utf8.h:65:0,
from ../FL/Fl.H:32,
from Fl_x.cxx:30:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^
Fl_x.cxx:1322:10: warning: ���KeySym XKeycodeToKeysym(Display*, KeyCode, int)��� is deprecated [-Wdeprecated-declarations]
return XKeycodeToKeysym(d, k, i);
^
In file included from ../FL/fl_utf8.h:65:0,
from ../FL/Fl.H:32,
from Fl_x.cxx:30:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^
Fl_x.cxx:1322:34: warning: ���KeySym XKeycodeToKeysym(Display*, KeyCode, int)��� is deprecated [-Wdeprecated-declarations]
return XKeycodeToKeysym(d, k, i);
^
In file included from ../FL/fl_utf8.h:65:0,
from ../FL/Fl.H:32,
from Fl_x.cxx:30:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^
Compiling filename_isdir.cxx...
----
IIRC we know about these, but haven't switched to the newer code they
want us to use, or some such.