Good afternoon everyone! I was working on some minor edits to the flwm source code and when I went to compile it, it errored out but didn't give any helpful info on why it failed. Just to test, I attempted to compile the official source (version 1.02) and it bombed the same way. I then decided to see if the TC version had any patches that should be applied and to my surprise I see that the version in the TC repo is version 1.14. I attempted to compile that version using the accompanying compile script. This one bombed too. Couple of questions...
1) What patches have been applied from the original version (1.02) and the TC version (1.14)?
2) I have included the compile script and the output below. Does anyone have any ideas? I have installed 'compiletc', 'xorg-proto', and 'fltk-1.3-dev'.
Thanks,
Dave
Compile Script:
#!/bin/sh
for C in "main.C" "Frame.C" "Rotated.C" "Menu.C" "FrameWindow.C" "Desktop.C" "Hotkeys.C"
do
g++ -mtune=generic -Os -fno-exceptions -fno-rtti -fpic -c "$C"
done
g++ -lfltk -lfltk_images -lfltk_forms -lpng -o flwm main.o Frame.o Rotated.o Menu.o FrameWindow.o Desktop.o Hotkeys.o
strip flwm
Output:
main.C: In member function 'virtual void Fl_Root::show()':
main.C:56:19: error: incomplete type 'Fl_X' used in nested name specifier
if (!shown()) Fl_X::set_xid(this, RootWindow(fl_display, fl_screen));
^
main.C: In function 'int flwm_event_handler(int)':
main.C:127:2: warning: 'KeySym XKeycodeToKeysym(Display*, KeyCode, int)' is deprecated (declared at /usr/local/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
XKeycodeToKeysym(fl_display, fl_xevent->xkey.keycode, 0);
^
main.C:127:57: warning: 'KeySym XKeycodeToKeysym(Display*, KeyCode, int)' is deprecated (declared at /usr/local/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
XKeycodeToKeysym(fl_display, fl_xevent->xkey.keycode, 0);
^
Frame.C: In constructor 'Frame::Frame(Window, XWindowAttributes*)':
Frame.C:278:3: error: incomplete type 'Fl_X' used in nested name specifier
Fl_X::set_xid(this, XCreateWindow(fl_display,
^
Rotated.C: In function 'void setrotfont(int)':
Rotated.C:364:30: error: 'fl_xfont' was not declared in this scope
if (font->xfontstruct == fl_xfont && font->dir == dir) return;
^
Rotated.C:367:35: error: 'fl_xfont' was not declared in this scope
font = XRotLoadFont(fl_display, fl_xfont, dir);
^
g++: error: main.o: No such file or directory
g++: error: Frame.o: No such file or directory
g++: error: Rotated.o: No such file or directory
strip: 'flwm': No such file