WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: compiletc  (Read 6082 times)

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
compiletc
« on: April 04, 2009, 05:41:15 AM »
compiletc description declares to contain fltk-1.1.9 but AFAK it does not (or peraphs not a complete dev pkg)

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: compiletc
« Reply #1 on: April 04, 2009, 08:16:08 AM »
The one I have has the headers, but doesn't seem to have fltk-config, which I suspect is probably needed to build some fltk applications.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: compiletc
« Reply #2 on: April 04, 2009, 08:31:45 AM »
Here are some workarounds:

Calls to fltk-config --cflags, --libs, or --cxxflags can be removed.
Calls to fltk-config --ldflags can be replaced with
Quote
-L/usr/local/lib -lfltk -ldl -lm -lXext -lX11
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: compiletc
« Reply #3 on: April 04, 2009, 10:40:43 AM »
Give me a day or two and I'll have a look..

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: compiletc
« Reply #4 on: April 07, 2009, 03:55:03 AM »
the static libs and fltk-config were missing - fixed now

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: compiletc
« Reply #5 on: April 07, 2009, 08:58:57 AM »
There was nary a complaint from me because using the default fltk-config builds static executeables, too large for Tiny Core.
10+ Years Contributing to Linux Open Source Projects.

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
Re: compiletc
« Reply #6 on: April 07, 2009, 09:12:55 AM »
There was nary a complaint from me because using the default fltk-config builds static executeables, too large for Tiny Core.

try this, it works for me and do not link statically fltk library:

Code: [Select]
g++ $name.cxx -o $name -L/usr/lib -lflt

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
Re: compiletc
« Reply #7 on: April 07, 2009, 09:23:08 AM »
the static libs and fltk-config were missing - fixed now

I think fluid should be included too, however I prepared a specific extension.


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: compiletc
« Reply #8 on: April 07, 2009, 09:36:44 AM »
There was nary a complaint from me because using the default fltk-config builds static executeables, too large for Tiny Core.
Does it make sense to change fltk-config to the version you use for tc?

Quote
I think fluid should be included too, however I prepared a specific extension.
Well, the idea behind compiletc was to include only that which is required to compile against the libs in the base tc - I thought (I could be wrong) that fluid did not fall into this category?

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
Re: compiletc
« Reply #9 on: April 07, 2009, 09:56:07 AM »
Quote
I think fluid should be included too, however I prepared a specific extension.
Well, the idea behind compiletc was to include only that which is required to compile against the libs in the base tc - I thought (I could be wrong) that fluid did not fall into this category?
[/quote]

No one fluid needs to compile cpanel, exittc and all others fltk applets that tc distro carries in because there are fluid project and generated sources too. However if someone, like me, would like to modify fluid project and recompile it then fluid is indispensable. I think compiletc should be able to modify and compile all fltk applets contained in, at least  ;)

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: compiletc
« Reply #10 on: April 07, 2009, 10:07:55 AM »
I think we had been promised FLDev.
I thought fluid was already an extension, but if not, then if robang wants to submit one that would be great!
10+ Years Contributing to Linux Open Source Projects.

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
Re: compiletc
« Reply #11 on: April 07, 2009, 10:12:22 AM »
I think we had been promised FLDev.
I thought fluid was already an extension, but if not, then if robang wants to submit one that would be great!


http://www.roberto.foglietta.name/pub/tinycore/

fltk-fluid.tce
fltk-fluid.tce.dep
fltk-fluid.tce.info
fltk-fluid.tce.md5.txt

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: compiletc
« Reply #12 on: April 07, 2009, 10:31:10 AM »
Quote
Does it make sense to change fltk-config to the version you use for tc?
I don't use fltk-config. You can call the compiler from within fliud.
10+ Years Contributing to Linux Open Source Projects.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: compiletc
« Reply #13 on: April 07, 2009, 04:22:18 PM »
I don't use fltk-config. You can call the compiler from within fliud.

i'm not sure what is needed that we don't have in the repository (i'm not saying there isn't, i'm saying i don't know) but i agree that whatever is needed to compile the f/lua apps like appbrowser, it would be nice to have extension(s) to compiletc for that.