Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: Roberto A. Foglietta on April 04, 2009, 05:41:15 AM

Title: compiletc
Post by: Roberto A. Foglietta 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)
Title: Re: compiletc
Post by: mikshaw 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.
Title: Re: compiletc
Post by: curaga 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
Title: Re: compiletc
Post by: Juanito on April 04, 2009, 10:40:43 AM
Give me a day or two and I'll have a look..
Title: Re: compiletc
Post by: Juanito on April 07, 2009, 03:55:03 AM
the static libs and fltk-config were missing - fixed now
Title: Re: compiletc
Post by: roberts 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.
Title: Re: compiletc
Post by: Roberto A. Foglietta 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
Title: Re: compiletc
Post by: Roberto A. Foglietta 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.

Title: Re: compiletc
Post by: Juanito 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?
Title: Re: compiletc
Post by: Roberto A. Foglietta 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  ;)
Title: Re: compiletc
Post by: roberts 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!
Title: Re: compiletc
Post by: Roberto A. Foglietta 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
Title: Re: compiletc
Post by: roberts 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.
Title: Re: compiletc
Post by: tobiaus 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.