WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Static flwm_topside  (Read 3779 times)

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Static flwm_topside
« on: March 10, 2016, 11:16:17 AM »
Is there any reason why the topside is static also i see from this topic only 28 kb ?

I checked the source from the git (0.25) and i think this topside doesn't need text rotation stuff like the left side so the static flag can be removed.
About the left side i don't know ,i'm not too comfortable anyway.

Just my curiousity,thanks
 

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Static flwm_topside
« Reply #1 on: March 10, 2016, 03:47:38 PM »
IIRC it wasn't the rotation code, but general code that used some private fltk symbol, requiring static linking.
The only barriers that can stop you are the ones you create yourself.

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Re: Static flwm_topside
« Reply #2 on: March 10, 2016, 06:38:26 PM »
IIRC it wasn't the rotation code, but general code that used some private fltk symbol, requiring static linking.

you're right about the rotation, i just downloaded the latest snapshot from Mr Bill and also bbidulock for comparison and Rotated.C has been removed from both.

Maybe you can check this:

I copied from commit 7dbb70 and didn't remove any line from Frame.C but filled the blank lines.
465-470
Code: [Select]
#if FL_MAJOR_VERSION < 2 && FL_MINOR_VERSION < 3
// fltk bug: it does not clear these pointers when window is deleted,
// causing flwm to crash on window close sometimes:
extern Fl_Window *fl_xfocus;
extern Fl_Window *fl_xmousewin;
#endif

480-485
Code: [Select]
#if FL_MAJOR_VERSION < 2 && FL_MINOR_VERSION < 3
  // fix fltk bug:
  fl_xfocus = 0;
  fl_xmousewin = 0;
  Fl::focus_ = 0;
#endif

compileit
Code: [Select]
#!/bin/sh -e

CXXFLAGS="$CXXFLAGS `fltk-config --cxxflags`"
CXXFLAGS="$CXXFLAGS -Wall -ffunction-sections -fdata-sections -Wno-strict-aliasing"
LDFLAGS="$LDFLAGS `fltk-config --ldflags --use-images`"
LDFLAGS="$LDFLAGS -Wl,-gc-sections"

echo Building flwm_topside...
g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -o flwm_topside -DTOPSIDE *.C $CXXFLAGS $LDFLAGS
sstrip flwm_topside

echo Building flwm...
g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti -o flwm *.C $CXXFLAGS $LDFLAGS
sstrip flwm


the last issue only for the left side , i have no idea
Code: [Select]
/tmp/ccHTkiVw.ltrans0.ltrans.o: In function `draw_rot90(char const*, int, int, int) [clone .lto_priv.58]':
ccHTkiVw.ltrans0.o:(.text._ZL10draw_rot90PKciii.lto_priv.58+0x37): undefined reference to `Fl_XFont_On_Demand::value()'
ccHTkiVw.ltrans0.o:(.text._ZL10draw_rot90PKciii.lto_priv.58+0x6f): undefined reference to `Fl_XFont_On_Demand::value()'
collect2: error: ld returned 1 exit status

 
Maybe you also can check this commit

Thanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Static flwm_topside
« Reply #3 on: March 11, 2016, 03:55:24 AM »
Oh, nice, Bill is back in dev. Those two changes should indeed allow linking dynamically with fltk 1.3.

I don't think I'll be doing those for a week or two at least, though.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Static flwm_topside
« Reply #4 on: March 11, 2016, 04:43:36 AM »
It'd be nice if we could look at flwm "classic" too  :)

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Re: Static flwm_topside
« Reply #5 on: March 11, 2016, 05:39:09 PM »
Oh, nice, Bill is back in dev. Those two changes should indeed allow linking dynamically with fltk 1.3.

I don't think I'll be doing those for a week or two at least, though.

No problem  :)

It'd be nice if we could look at flwm "classic" too  :)

Where i can see this classic ?

Offtopic:
This forum is fast yahoo can find it, i can't  imagine with google.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Static flwm_topside
« Reply #6 on: March 12, 2016, 05:01:50 AM »
By flwm classic, I mean the original flwm with the window title on the left-hand side.

Offline nimday

  • Jr. Member
  • **
  • Posts: 75
Re: Static flwm_topside
« Reply #7 on: April 11, 2016, 09:26:13 PM »
Thanks for the update,shared for both now.
Maybe you can update compileit too.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Static flwm_topside
« Reply #8 on: April 12, 2016, 04:25:19 AM »
It wasn't working with a non-xft build, I'm afraid.
The only barriers that can stop you are the ones you create yourself.