Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: mbertrand on July 28, 2017, 03:42:22 PM
-
I'm trying to recompile FLWM and I'm getting these errors:
Rotated.C: In function 'void setrotfont(int)':
Rotated.C:364:46: error: 'fl_X_core_font' was not declared in this scope
Rotated.C:367:50: error: 'fl_X_core_font' was not declared in this scope
I have compiletc git fltk-1.3-dev Xorg-7.7-dev sstrip
I download source from http://git.tinycorelinux.net/flwm
I run ./compileit and get those errors
-
Maybe your fltk-1.3.tcz or -dev is out of date? Or are you trying to compile on an older TC? That particular feature was added in fltk 1.3.4.
-
There's also a patch for it here:
http://www.tinycorelinux.net/7.x/x86/tcz/src/fltk/
..are you using a tc version earlier than 7.x?
-
I'm using Version 5.4. Where can I get the 1.3.4.tcz? Should I get flwm from TC or from original?
Currently I'm compiling against http://git.tinycorelinux.net/flwm and fltk-1.3-dev.tcz.
-
So I got fltk from http://distro.ibiblio.org/tinycorelinux/8.x/x86/tcz/ and this is version 1.3.4.
I'm using flwm from http://git.tinycorelinux.net/flwm and getting many undefined references errors.
-
the instructions here work:
http://tinycorelinux.net/7.x/x86/tcz/src/flwm/compile_flwm
-
Actually this is what I followed. I have to add that I'm on TC version 5.4 but have all required dependencies Or I think I do
-
It could be an issue with gcc-4.7.2, but I kind of doubt it since I compiled flwm on tc-5.x back then - I compiled flwm with tc-8.x 15 minutes ago and it worked fine...
-
I think i see my problem but not sure the best way to deal with it. I'm on TC 5.4 and I need to stay at this version for now and I've added the fltk 1.3 -dev to build but my TC is still using fltk1.1. `fltk-config --ldflags --use-images` is telling me that it should link to -lfltk and this points to /tmp/tcloop/fltk-1.1.10/usr/local/lib/libfltk.so. So it is pointing to 1.1 and not the 1.3 I've added to build.
I have this dependency because like I mentioned I'm developing on TC 5.4 and it has for runtime FLTK 1.1.
-
Using extensions from newer versions of TC will likely not work, since they were compiled against newer libraries.
Replace -lfltk with the full path to the libfltk you want (replace the command with its output first). If you have nothing else using fltk 1.3, you could link flwm statically.
Alternatively, use an older, 1.1-compatible flwm from the git history.
-
Thanks this is what I'm working one.
-
I'm down to this one error:
/usr/local/lib/libfltk_images.so.1.3: undefined reference to `operator delete(void*, unsigned int)@CXXABI_1.3.9'
I'm stuck now.
-
That's one of the "using extensions from a newer TC" issues. No way around it except compiling fltk 1.3 on your system.
-
My goal here was to disable the CTRL-F# shortcuts. I guess there is no other way around this other then recompiling FLWM.
Also I'm confused between FLWM and FLWM_topside? Is topside a modified FLWM?
-
Hi mbertrand
FLWM_topside has the windows titlebar and controls along the top edge while FLWM has them along the left edge.
-
Oh that's good to know thanks!
-
Ok I managed to recompile FLTK 1.3.4 and recompile TCs FLWM against these libs on my TinyCore 5.4. But I have other dependencies like xprogs and wbar that still need the old fltk1.1.10. So I have to versions of fltk. I would like to try maybe to compile an older source of FLMW that is compiltable with FLTK 1.1.10. Anyone know where I can find it?
-
It's all in the git history. If you have a git clone, you can check out different versions with git commands. If you downloaded a zip/tgz from github, you can do that for the old versions too - click on "27 commits", on the commit you want click the "<>" on the right, then download the zip like you did before.
-
Ok great thanks!
-
I have tried to compile on TC9x and TC8x.
Sources...
http://git.tinycorelinux.net/flwm (http://git.tinycorelinux.net/flwm)
https://github.com/tinycorelinux/flwm (https://github.com/tinycorelinux/flwm)
Loaded extensions...
tce-load -i git fltk-1.3-dev Xorg-7.7-dev sstrip compiletc
Applied patch
http://www.tinycorelinux.net/8.x/x86/tcz/src/fltk/ (http://www.tinycorelinux.net/8.x/x86/tcz/src/fltk/)
Commands..
http://tinycorelinux.net/7.x/x86/tcz/src/flwm/compile_flwm (http://tinycorelinux.net/7.x/x86/tcz/src/flwm/compile_flwm)
getting following errors...
/tmp/ccnotk6r.ltrans4.ltrans.o: In function `request_menu_refresh(int)':
<artificial>:(.text+0xb): undefined reference to `wmx_time'
/tmp/ccnotk6r.ltrans4.ltrans.o: In function `arg(int, char**, int&)':
<artificial>:(.text+0x15a): undefined reference to `fl_open_display()'
<artificial>:(.text+0x16a): undefined reference to `fl_display'
<artificial>:(.text+0x172): undefined reference to `XGetVisualInfo'
<artificial>:(.text+0x17c): undefined reference to `fl_visual'
<artificial>:(.text+0x18c): undefined reference to `Fl::fatal'
<artificial>:(.text+0x194): undefined reference to `fl_visual'
<artificial>:(.text+0x19c): undefined reference to `fl_display'
<artificial>:(.text+0x1a4): undefined reference to `fl_screen'
...
...
/tmp/ccnotk6r.ltrans3.ltrans.o: In function `Frame::draw()':
<artificial>:(.text+0x179): undefined reference to `Fl_Window::draw()'
/tmp/ccnotk6r.ltrans3.ltrans.o: In function `Frame::set_size(int, int, int, int, int)':
<artificial>:(.text+0xa09): undefined reference to `XSync'
collect2: error: ld returned 1 exit status
Please suggest a solutions.
-
Using the instructions here:
http://tinycorelinux.net/7.x/x86/tcz/src/flwm/compile_flwm
..things worked fine for me...
-
Hi Juanito,
I have tried many option, but without a success...
Command..
tc@box:~/flwm$ g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti /usr/local/lib/libfltk_images.so.1.3 /usr/local/lib/libfltk_f
orms.so.1.3 /usr/local/lib/libfltk.so.1.3 -o ./../new_flwm_topside -DTOPSIDE *.C $CXXFLAGS $LDFLAGS
The error...
/usr/local/bin/ld: /tmp/ccgYXdlb.ltrans0.ltrans.o: undefined reference to symbol 'XConfigureWindow'
/usr/local/lib/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Please guide.
-
Hi ipmeel
Try adding:
-lX11
to your command.
-
Hi Rich,
Thank you very much for the hit...
Only adding "-lX11" to command has not worked.
Following command worked for me..
g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti /usr/local/lib/libfltk_images.so.1.3 /usr/local/lib/libfltk_forms.so.1.3 /usr/local/lib/libfltk.so.1.3 /usr/local/lib/libX11.so.6.3.0 -o ./../new_flwm_topside -DTOPSIDE *.C $CXXFLAGS $LDFLAGS
and this also worked
g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti /usr/local/lib/libfltk_images.so.1.3 /usr/local/lib/libfltk_forms.so.1.3 /usr/local/lib/libfltk.so.1.3 -lX11 -o ./../new_flwm_topside -DTOPSIDE *.C $CXXFLAGS $LDFLAGS
The new "flwm_topside" is working fine with modified "./flwm/config.h" as
#define DESKTOP 0
But when "./flwm/config.h" is modified as (either or both)..
#define WMX_MENU_ITEMS 0
#define XTERM_MENU_ITEM 0
Result: no title bar on GUI windows.
Also, may I ask how to disable "Ctrl+Esc" for closing/terminating GUI apps.