WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
compiling FLWM not working
« 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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: compiling FLWM not working
« Reply #1 on: July 29, 2017, 05:42:38 AM »
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.
The only barriers that can stop you are the ones you create yourself.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14787
Re: compiling FLWM not working
« Reply #2 on: July 30, 2017, 04:13:17 AM »
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?

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: compiling FLWM not working
« Reply #3 on: July 31, 2017, 10:01:41 AM »
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.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: compiling FLWM not working
« Reply #4 on: July 31, 2017, 10:33:50 AM »
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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14787
Re: compiling FLWM not working
« Reply #5 on: July 31, 2017, 10:52:28 AM »

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: compiling FLWM not working
« Reply #6 on: July 31, 2017, 10:57:05 AM »
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
« Last Edit: July 31, 2017, 10:59:27 AM by mbertrand »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14787
Re: compiling FLWM not working
« Reply #7 on: July 31, 2017, 11:26:23 AM »
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...

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: compiling FLWM not working
« Reply #8 on: July 31, 2017, 12:14:22 PM »
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: compiling FLWM not working
« Reply #9 on: July 31, 2017, 01:04:57 PM »
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.
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 #10 on: July 31, 2017, 01:19:12 PM »
Thanks this is what I'm working one.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: compiling FLWM not working
« Reply #11 on: July 31, 2017, 03:44:19 PM »

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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: compiling FLWM not working
« Reply #12 on: August 01, 2017, 03:37:44 AM »
That's one of the "using extensions from a newer TC" issues. No way around it except compiling fltk 1.3 on your system.
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 #13 on: August 01, 2017, 08:43:07 AM »
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?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11570
Re: compiling FLWM not working
« Reply #14 on: August 01, 2017, 08:49:47 AM »
Hi mbertrand
FLWM_topside has the windows titlebar and controls along the top edge while FLWM has them along the left edge.