WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: compiling FLWM not working  (Read 7539 times)

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: compiling FLWM not working
« Reply #15 on: August 01, 2017, 08:58:26 AM »
Oh that's good to know thanks!

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: compiling FLWM not working
« Reply #16 on: August 01, 2017, 12:03:11 PM »
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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: compiling FLWM not working
« Reply #17 on: August 01, 2017, 02:31:48 PM »
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.
The only barriers that can stop you are the ones you create yourself.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: compiling FLWM not working
« Reply #18 on: August 02, 2017, 09:00:32 AM »
Ok great thanks!

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: compiling FLWM not working
« Reply #19 on: June 27, 2018, 02:30:24 AM »
I have tried to compile on TC9x and TC8x.
Sources...
http://git.tinycorelinux.net/flwm
https://github.com/tinycorelinux/flwm
Loaded extensions...
Code: [Select]
tce-load -i git fltk-1.3-dev Xorg-7.7-dev sstrip compiletcApplied patch
http://www.tinycorelinux.net/8.x/x86/tcz/src/fltk/
Commands..
http://tinycorelinux.net/7.x/x86/tcz/src/flwm/compile_flwm
getting following errors...
Code: [Select]
/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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: compiling FLWM not working
« Reply #20 on: June 28, 2018, 06:27:22 AM »
Using the instructions here:

http://tinycorelinux.net/7.x/x86/tcz/src/flwm/compile_flwm

..things worked fine for me...

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: compiling FLWM not working
« Reply #21 on: June 29, 2018, 11:25:23 PM »
Hi Juanito,
I have tried many option, but without a success...
Command..
Code: [Select]
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...
Code: [Select]
/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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: compiling FLWM not working
« Reply #22 on: June 30, 2018, 12:22:56 AM »
Hi ipmeel
Try adding:
Code: [Select]
-lX11to your command.

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: compiling FLWM not working
« Reply #23 on: June 30, 2018, 01:50:05 AM »
Hi Rich,
Thank you very much for the hit...
Only adding "-lX11" to command has not worked.
Following command worked for me..
Code: [Select]
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
Code: [Select]
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
Code: [Select]
#define DESKTOP 0
But when "./flwm/config.h" is modified as (either or both)..
Code: [Select]
#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.