Tiny Core Extensions > TCE Q&A Forum

Static flwm_topside

(1/2) > >>

nimday:
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
 

curaga:
IIRC it wasn't the rotation code, but general code that used some private fltk symbol, requiring static linking.

nimday:

--- Quote from: curaga on March 10, 2016, 12:47:38 PM ---IIRC it wasn't the rotation code, but general code that used some private fltk symbol, requiring static linking.

--- End quote ---

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: ---#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

--- End code ---

480-485

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

--- End code ---

compileit

--- Code: ---#!/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


--- End code ---

the last issue only for the left side , i have no idea

--- Code: ---/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

--- End code ---

 
Maybe you also can check this commit

Thanks

curaga:
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.

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

Navigation

[0] Message Index

[#] Next page

Go to full version