WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to install a custom FLWM  (Read 6294 times)

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #15 on: June 29, 2018, 06:34:43 AM »
Used command for symlink
Code: [Select]
sudo rm /usr/local/bin/flwm_topside
sudo ln -s /home/tc/new_flwm_topside /usr/local/bin/flwm_topside
Exited to command prompt, then
Code: [Select]
statxDispaly with black background, no mouse pointer. Yes Wbar is there.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: How to install a custom FLWM
« Reply #16 on: June 29, 2018, 01:11:13 PM »
It doesn't start because you made it a shared library with "-shared", not a binary.
The only barriers that can stop you are the ones you create yourself.

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #17 on: June 29, 2018, 11:30:05 PM »
Hi Curaga,
Without "-shared" generating 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'
...
/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
And with this 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 errors are...
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, what am I missing?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: How to install a custom FLWM
« Reply #18 on: June 30, 2018, 12:27:47 AM »
Hi ipmeel
Try adding:
Code: [Select]
-lX11to your command.

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #19 on: June 30, 2018, 01:42:28 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.

Offline Pats

  • Sr. Member
  • ****
  • Posts: 322
Re: How to install a custom FLWM
« Reply #20 on: June 30, 2018, 09:16:45 AM »
Quote
Also may I ask how to disable "Ctrl+Esc" for closing/terminating GUI apps.


Short-cut do'nt know.

Posible solution may be :
1) use xmodmap, which maps keys , and xev, which traps key events and prints to the screen. Xev shows mappings for each key pressed. Need to change the .xmodmap file, in /home directory. If not there ,  create one or you can find it in /etc/x11, however, altering this file will change the system for every user.....

2) xbindkey allows advanced mapping of keysyms to actions independently of the Desktop Environment.

Offline ipmeel

  • Jr. Member
  • **
  • Posts: 59
Re: How to install a custom FLWM
« Reply #21 on: June 30, 2018, 04:34:01 PM »
Hi Pats,
Successfully used xmodmap. Thank you very much for help.
Quote
Result: no title bar on GUI windows.
resolved by editing *.C files.