Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

convert tcl in a standalone application thanks to MinGw

256 views
Skip to first unread message

CKL

unread,
Aug 3, 2009, 10:24:04 AM8/3/09
to
Hello all.

My question should have been asked many times, but even I tried
already many proposed solution, I didn't find the right solution.
Many years ago, I written some nice tcl/tk applications, that I
compiled thanks to cygwin and mktclapp.
I found it cool to combine C and tcl.

Now I wanted to do the same with the last tcl release
I got the last tcl/tk version tcl8.6, have to compile it with MinGw
(Doesn't work with cygwin anymore), and after that, tried to use again
mktclapp
I tried with the hello.c example given on http://www.hwaci.com/sw/mktclapp/mktclapp.html
the compilation of hello.h and hello.c doesn't work .

Please, could anybody help me to show me how to compile the hello.c
thanks to MinGW
Or in other words, to convert tcl in a standalone application thanks
to MinGw

Many thanks

Christian

Harald Oehlmann

unread,
Aug 3, 2009, 11:20:16 AM8/3/09
to

On 3 Aug., 16:24, CKL <christian.klugesh...@gmail.com> wrote:
> My question should have been asked many times, but even I tried
> already many proposed solution, I didn't find the right solution.
> Many years ago, I written some nice tcl/tk applications, that I
> compiled thanks to cygwin and mktclapp.
> I found it cool to combine C and tcl.

If wish (or tclsh) is combined with c using the load command, you may
use a starpack.
Then, you only have to compile your c extension and any C compiler may
be used for this task.
Afterwars, you may bind the .tcl and .c files to a precompiled wish/
tclsh exe of any version.

http://wiki.tcl.tk/starkit

Hope this helps,
Harald

CKL

unread,
Aug 3, 2009, 11:48:58 AM8/3/09
to

Thank you Harald.

But I didn't understand what you mean with "load command".
Years ago it was so simple to combine C and tcl thanks to mktclapp.
Recently for a pure tcl application a tried freewrap, but the code was
not portable to another PC, the were problems with paths, that I never
could resolve (Document is not clear)

What is crazy, is that it is so complicate to convert a simple tcl
code, in a executable

All the way, many thanks, and if you could have some tricks, I would
appreciate

Christian

Robert Heller

unread,
Aug 3, 2009, 1:21:29 PM8/3/09
to
At Mon, 3 Aug 2009 08:48:58 -0700 (PDT) CKL <christian....@gmail.com> wrote:

>
> On 3 ao=FBt, 17:20, Harald Oehlmann <wortka...@yahoo.de> wrote:
> > On 3 Aug., 16:24, CKL <christian.klugesh...@gmail.com> wrote:
> >
> > > My question should have been asked many times, but even I tried
> > > already many proposed solution, I didn't find the right solution.
> > > Many years ago, I written some nice tcl/tk applications, that I
> > > compiled thanks to cygwin and mktclapp.
> > > I found it cool to combine C and tcl.
> >
> > If wish (or tclsh) is combined with c using the load command, you may
> > use a starpack.
> > Then, you only have to compile your c extension and any C compiler may
> > be used for this task.
> > Afterwars, you may bind the .tcl and .c files to a precompiled wish/
> > tclsh exe of any version.
> >
> > http://wiki.tcl.tk/starkit
> >
> > Hope this helps,
> > Harald
>
> Thank you Harald.
>
> But I didn't understand what you mean with "load command".

You create an 'extension' coded in C/C++. Assuming you have actual
C/C++ code as part of your application. If your application is *purely*
coded in Tcl, you don't need to do this. You use the SDX 'kit' along
with a suitable Tclkit to create a StarPack.

> Years ago it was so simple to combine C and tcl thanks to mktclapp.
> Recently for a pure tcl application a tried freewrap, but the code was
> not portable to another PC, the were problems with paths, that I never
> could resolve (Document is not clear)

Freewrap is a early, somewhat primitive forerunner to StarPack's.

>
> What is crazy, is that it is so complicate to convert a simple tcl
> code, in a executable

With StarPack technology, it has become very easy.

>
> All the way, many thanks, and if you could have some tricks, I would
> appreciate

If you want some examples of how to work with SDX, Tclkits, and these
utilities to create StarPack, check out Deepwoods Software's Model
Railroad System -- this package uses this technology quite successfully
and painlessly. The URL is in my signature.

>
> Christian
>

--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
hel...@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/

Harald Oehlmann

unread,
Aug 3, 2009, 1:37:37 PM8/3/09
to
On 3 Aug., 17:48, CKL <christian.klugesh...@gmail.com> wrote:
> On 3 août, 17:20, Harald Oehlmann <wortka...@yahoo.de> wrote:
> > On 3 Aug., 16:24, CKL <christian.klugesh...@gmail.com> wrote:
>
> > > My question should have been asked many times, but even I tried
> > > already many proposed solution, I didn't find the right solution.
> > > Many years ago, I written some nice tcl/tk applications, that I
> > > compiled thanks to cygwin and mktclapp.
> > > I found it cool to combine C and tcl.
>
> > If wish (or tclsh) is combined with c using the load command, you may
> > use a starpack.
> > Then, you only have to compile your c extension and any C compiler may
> > be used for this task.
> > Afterwars, you may bind the .tcl and .c files to a precompiled wish/
> > tclsh exe of any version.
>
> >http://wiki.tcl.tk/starkit
> But I didn't understand what you mean with "load command".

Make a c extension to tcl.
Compile it will give you a dll
Create a tcl file which loads the extension using: "load
<filename>.dll".

Prepare a folder "app.vfs" including: main.tcl, lib.dll
Download a tclkit.exe and a tclsh.exe and sdx.kit

Execute (I use batch files):

tclkitsh857.exe sdx.kit wrap app.exe -runtime tclkit857.exe

Contents of main.tcl:
package require starkit
load [file join $starkit::topdir app.dll]
... any following code

> Years ago it was so simple to combine C and tcl thanks to mktclapp.

I am sorry, I can imagine, it is no fun if something does not work any
more.

> Recently for a pure tcl application a tried freewrap, but the code was
> not portable to another PC, the were problems with paths, that I never
> could resolve (Document is not clear)

I first used freewrap either. Anyway, I have a setup with starpacks,
wich:
- uses a wish interpreter for development.
- may be transfered into windows, ce and linux executeables using sdx
- may use tcl, dll and so files

The magic is to have all files in a folder "appname.vfs" and have a
small starter wrapper for each mode which sets folder names into
global variables (only for advanced functionality).

It is relatively complicated to understand the starpack system:
Example:
Developpment in :myapp.vfs -> files: myapp.vfs/main.tcl, myapp.vfs/
lib.dll, ...
Wrapped into: myapp.exe (Windows) myapp (Linux)
Now we rename the exe file to "beauty.exe" and move it to "C:\test
\" (only for demonstration what happens).
When the application is started, tcl sees its own files with the
following paths:

C:/test/beauty.exe/main.tcl
C:/test/beauty.exe/lib.dll

The variable $starkit::topdir contains "C:/test/beauty.exe".

If the file "main.tcl" is started by a normal wish, "package require
starkit" will fail.
So you need a mechanism to make this mode working too (for example by
checking, if package starkit is available:
if {[catch {package require starkit} ] } {
set rootdir .
} else {
set rootdir $starkit::topdir
}
load [file join $rootdir app.dll]


> What is crazy, is that it is so complicate to convert a simple tcl
> code, in a executable

I am sorry if you feel frustrated.

Regards,
Harald

Will Parsons

unread,
Aug 3, 2009, 6:18:10 PM8/3/09
to
Robert Heller wrote:
> At Mon, 3 Aug 2009 08:48:58 -0700 (PDT) CKL <christian....@gmail.com> wrote:
>
>>
>> On 3 ao=FBt, 17:20, Harald Oehlmann <wortka...@yahoo.de> wrote:
>> > On 3 Aug., 16:24, CKL <christian.klugesh...@gmail.com> wrote:
>> >
>> > > My question should have been asked many times, but even I tried
>> > > already many proposed solution, I didn't find the right solution.
>> > > Many years ago, I written some nice tcl/tk applications, that I
>> > > compiled thanks to cygwin and mktclapp.
>> > > I found it cool to combine C and tcl.
>> >
>> > If wish (or tclsh) is combined with c using the load command, you may
>> > use a starpack.
>> > Then, you only have to compile your c extension and any C compiler may
>> > be used for this task.
>> > Afterwars, you may bind the .tcl and .c files to a precompiled wish/
>> > tclsh exe of any version.
>> >
>> > http://wiki.tcl.tk/starkit
>>
>> Thank you Harald.
>>
>> But I didn't understand what you mean with "load command".
>
> You create an 'extension' coded in C/C++.

And of course, the point of mktclapp is that you didn't have to go thru the
hassle of figuring out how to create an extension, which made it so easy.

> Assuming you have actual
> C/C++ code as part of your application. If your application is *purely*
> coded in Tcl, you don't need to do this. You use the SDX 'kit' along
> with a suitable Tclkit to create a StarPack.
>
>> Years ago it was so simple to combine C and tcl thanks to mktclapp.
>> Recently for a pure tcl application a tried freewrap, but the code was
>> not portable to another PC, the were problems with paths, that I never
>> could resolve (Document is not clear)
>
> Freewrap is a early, somewhat primitive forerunner to StarPack's.

Unfortunately Tclkit is not (last time I checked) distributed in the form
of nice source tarball, which is all right if you can use one of the
pre-built binaries, but good luck if you want to use on an "unusual"
platform.

>> What is crazy, is that it is so complicate to convert a simple tcl
>> code, in a executable
>
> With StarPack technology, it has become very easy.

*If* you're on the right platform.

--
Will

Robert Heller

unread,
Aug 3, 2009, 9:58:16 PM8/3/09
to

There is a *broad* selection of tclkits available for download. What
platform is missing? I know that Win32, MacOSX Universal (ppc +
x86_64), Linux x86 (32-bit), and Linux X86_64 (64-bit) are all
available. Plus BSD (x86[_64]) and Solaris as well. Are you targeting
Linux-ARM or something? You don't need to compile the tclkit itself.
If you have C/C++ code you create an extension, compiling it against the
tcl/tk stub libraries, using the tcl.h and tk.h files. This is done
with the TEA framework. Or you might use SWIG or some combination of
the two. Then the tcl code, the .dll/.so files, with pgkIndex.tcl files
are bundled up with the sdx utility and presto, a nice fat
self-contained executable.

Gerald W. Lester

unread,
Aug 4, 2009, 12:32:18 AM8/4/09
to

Check again -- there is a TclKit build, check KBS (see
http://wiki.tcl.tk/23813).


--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+

CKL

unread,
Aug 4, 2009, 3:37:29 AM8/4/09
to
Many Thank for all you answer.

It seems that I have to try Tclkit, and unfortunately give up the way
mktclapp :-((

Relative to


> > And of course, the point of mktclapp is that you didn't have to go thru the
> > hassle of figuring out how to create an extension, which made it so easy.

I don't understand why the solution mktclapp, which was so easy to
use, has been given up :-((

Regards

Christian

CKL

unread,
Aug 4, 2009, 3:49:25 AM8/4/09
to

Ohooooo, :-)))))))

I just discover that:
http://www.softpedia.com/get/Programming/Other-Programming-Files/Mktclapp.shtml
Has any body tested ??

I will test is asap ....

Christian

CKL

unread,
Aug 4, 2009, 3:57:23 AM8/4/09
to
On 4 août, 09:49, CKL <christian.klugesh...@gmail.com> wrote:
> On 4 août, 09:37, CKL <christian.klugesh...@gmail.com> wrote:
>
> > Many Thank for all you answer.
>
> > It seems that I have to try Tclkit, and unfortunately give up the way
> > mktclapp :-((
>
> > Relative to> > And of course, the point of mktclapp is that you didn't have to go thru the
> > > > hassle of figuring out how to create an extension, which made it so easy.
>
> > I don't understand why the solution mktclapp, which was so easy to
> > use, has been given up :-((
>
> > Regards
>
> > Christian
>
> Ohooooo, :-)))))))
>
> I just discover that:http://www.softpedia.com/get/Programming/Other-Programming-Files/Mktc...

> Has any body tested ??
>
> I will test is asap ....
>
> Christian

Excuse me, unfortunately, it is the same version as: http://www.hwaci.com/sw/mktclapp/
I was duped, about
the date:: Last update, March 13th, 2008, 23:32 GMT [view history],
and
the author: Eric Taylor

Larry W. Virden

unread,
Aug 4, 2009, 8:39:36 AM8/4/09
to

Over the years, I've seen many pieces of code used within the Tcl
community eventually grow stale and become unusable by a segment of
the community. Typically the issue is a change in priority by the
creator of the code.

Occasionally, some other person will come along to revitalize a
package, but that is the exception rather than the rule.
And, in a few cases, the attempts to revitalize the package also run
into prioritization issues (or conflict with the original author) and
turn quiet.

Several things have occurred since mktclapp. The community of that
package was not highly visible, the creator of freewrap was pretty
visible for a while. The tclkit/starpack community was pretty active
for a while.

Because the tclkit/starpack method did not require a person to have an
installed compiler to build applications, it seemed to gather more
users than the other technologies.

Despite the historical reasons, none of this would prevent someone
from picking up mktclapp if they wanted to see things improved.
However, it would require that person to either do the work, or to at
least entice someone else to do the work in some way. Typically, the
tcl community has more than enough projects to keep it busy, so there
are not a lot of people sitting around looking for some old code to
improve.

I'm certain that if there is someone reading this usenet group who has
an interest in working with you to improve things, they will let you
know.

Will Parsons

unread,
Aug 4, 2009, 12:13:40 PM8/4/09
to
Robert Heller wrote:
> At 3 Aug 2009 22:18:10 GMT Will Parsons <oud...@nodomain.invalid> wrote:
>
>>
>> Robert Heller wrote:
>> > You create an 'extension' coded in C/C++.
>>
>> And of course, the point of mktclapp is that you didn't have to go thru the
>> hassle of figuring out how to create an extension, which made it so easy.
>>
>> > Freewrap is a early, somewhat primitive forerunner to StarPack's.
>>
>> Unfortunately Tclkit is not (last time I checked) distributed in the form
>> of nice source tarball, which is all right if you can use one of the
>> pre-built binaries, but good luck if you want to use on an "unusual"
>> platform.
>>
>> >> What is crazy, is that it is so complicate to convert a simple tcl
>> >> code, in a executable
>> >
>> > With StarPack technology, it has become very easy.
>>
>> *If* you're on the right platform.
>
> There is a *broad* selection of tclkits available for download. What
> platform is missing? I know that Win32, MacOSX Universal (ppc +
> x86_64), Linux x86 (32-bit), and Linux X86_64 (64-bit) are all
> available. Plus BSD (x86[_64]) and Solaris as well. Are you targeting
> Linux-ARM or something?

QNX4.

> You don't need to compile the tclkit itself.
> If you have C/C++ code you create an extension, compiling it against the
> tcl/tk stub libraries, using the tcl.h and tk.h files. This is done
> with the TEA framework. Or you might use SWIG or some combination of
> the two. Then the tcl code, the .dll/.so files, with pgkIndex.tcl files
> are bundled up with the sdx utility and presto, a nice fat
> self-contained executable.

And if you're not on one of the supported platforms, none of this easy.
QNX4 doesn't (easily) support creation of .dll/.so files, for example.

--
Will

Will Parsons

unread,
Aug 4, 2009, 12:29:27 PM8/4/09
to
Gerald W. Lester wrote:
> Will Parsons wrote:
>> Robert Heller wrote:
>>> At Mon, 3 Aug 2009 08:48:58 -0700 (PDT) CKL <christian....@gmail.com> wrote:
>>>
>>>> Years ago it was so simple to combine C and tcl thanks to mktclapp.
>>>> Recently for a pure tcl application a tried freewrap, but the code was
>>>> not portable to another PC, the were problems with paths, that I never
>>>> could resolve (Document is not clear)
>>> Freewrap is a early, somewhat primitive forerunner to StarPack's.
>>
>> Unfortunately Tclkit is not (last time I checked) distributed in the form
>> of nice source tarball, which is all right if you can use one of the
>> pre-built binaries, but good luck if you want to use on an "unusual"
>> platform.
>
> Check again -- there is a TclKit build, check KBS (see
> http://wiki.tcl.tk/23813).

OK - I checked, but I don't see what I would like to see - a nice source
tarball (e.g., "tclkit-src.tar.gz"). Wrong URL or misunderstanding?

--
Will

Larry W. Virden

unread,
Aug 4, 2009, 2:38:26 PM8/4/09
to
On Aug 4, 12:29 pm, Will Parsons <w...@nodomain.invalid> wrote:
> Gerald W. Lester wrote:
> > Will Parsons wrote:
> >> Robert Heller wrote:
> >>> At Mon, 3 Aug 2009 08:48:58 -0700 (PDT) CKL <christian.klugesh...@gmail.com> wrote:
>
> >>>> Years ago it was so simple to combine C and tcl thanks to mktclapp.
> >>>> Recently for a pure tcl application a tried freewrap, but the code was
> >>>> not portable to another PC, the were problems with paths, that I never
> >>>> could resolve (Document is not clear)
> >>> Freewrap is a early, somewhat primitive forerunner to StarPack's.  
>
> >> Unfortunately Tclkit is not (last time I checked) distributed in the form
> >> of nice source tarball, which is all right if you can use one of the
> >> pre-built binaries, but good luck if you want to use on an "unusual"
> >> platform.
>
> > Check again -- there is a TclKit build, check KBS (see
> >http://wiki.tcl.tk/23813).
>
> OK - I checked, but I don't see what I would like to see - a nice source
> tarball (e.g., "tclkit-src.tar.gz").  Wrong URL or misunderstanding?
>
> --
> Will- Hide quoted text -
>
> - Show quoted text -

Perhaps it was an oblique reference to the kbs script, which when
executed on a system with internet, will fetch all the source
necessary to build a tclkit-like executable suitable for building
stand alone applications.

Shaun Deacon

unread,
Aug 4, 2009, 8:42:22 PM8/4/09
to
On Aug 3, 7:24 am, CKL <christian.klugesh...@gmail.com> wrote:
> Hello all.
>
> My question should have been asked many times, but even I tried
> already many proposed solution, I didn't find the right solution.
> Many years ago, I written some nice tcl/tk applications, that I
> compiled thanks to cygwin and mktclapp.
> I found it cool to combine C and tcl.
>
> Now I wanted to do the same with the last tcl release
> I got the last tcl/tk version tcl8.6, have to compile it with MinGw
> (Doesn't work with cygwin anymore), and after that, tried to use again
> mktclapp
> I tried with the hello.c example given onhttp://www.hwaci.com/sw/mktclapp/mktclapp.html

> the compilation of hello.h and hello.c doesn't work .
>
> Please, could anybody help me to show me how to compile the hello.c
> thanks to MinGW
> Or in other words, to convert tcl in a standalone application thanks
> to MinGw
>
> Many thanks
>
> Christian

What is the actual error/problem that you are seeing ?
You might just need to tweak the compiler options a little...

Shaun

rene

unread,
Aug 5, 2009, 2:22:51 AM8/5/09
to
On 4 Aug., 18:29, Will Parsons <w...@nodomain.invalid> wrote:
> OK - I checked, but I don't see what I would like to see - a nice source
> tarball (e.g., "tclkit-src.tar.gz").  Wrong URL or misunderstanding?
kbs will fetch the sources on demand. Try
./kbs.tcl -r install kbskit8.5
and yo find the sources in the dir 'sources' and the created binaries
under 'build*' (depending on your system). To get some online help try
./kbs.tcl
and to get the programming documentation
./kbs.tcl doc

HTH
rene

CKL

unread,
Aug 5, 2009, 6:58:53 AM8/5/09
to

>
> What is the actual error/problem that you are seeing ?
> You might just need to tweak the compiler options a little...
>
> Shaun

tcl/tk8.5.7 has been compiled without issue with MinGw
as mktclapp.c
when I test the hello.tcl example in: http://www.hwaci.com/sw/mktclapp/mktclapp.html

I got

make
mktclapp -f hello.mta > hello.c
mktclapp -header > hello.h
gcc -c hello.c -o hello.o \
-I. -I/opt/tcl/include -I/opt/tcl/include/X11
hello.c:1818: warning: initialization from incompatible pointer type
hello.c: In function `Et_DoInit':
hello.c:2051: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
hello.c:2064: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
hello.c:2089: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
hello.c: In function `Et_Local_Init':
hello.c:2152: warning: passing arg 2 of `Tcl_Merge' from incompatible
pointer type
gcc hello.o -o hello.exe \
-L/opt/tcl/bin -ltcl85 -ltk85 -lm -mwindows
hello.o:hello.c:(.text+0x2200): undefined reference to
`TclStatInsertProc'
hello.o:hello.c:(.text+0x220c): undefined reference to
`TclAccessInsertProc'
hello.o:hello.c:(.text+0x2218): undefined reference to
`TclOpenFileChannelInsertProc'
collect2: ld returned 1 exit status
make: *** [hello.exe] Error 1

You can find the example under: http://dl.free.fr/getfile.pl?file=/V0VWg9Gi

Many thanks in advance

Gerald W. Lester

unread,
Aug 5, 2009, 9:28:10 AM8/5/09
to

Yes, it was a reference to the KBS script. I assumed the OP could/would
follow links and try it -- seems that is not really the case.

Don Porter

unread,
Aug 5, 2009, 11:37:49 AM8/5/09
to
CKL wrote:
> gcc hello.o -o hello.exe \
> -L/opt/tcl/bin -ltcl85 -ltk85 -lm -mwindows
> hello.o:hello.c:(.text+0x2200): undefined reference to
> `TclStatInsertProc'
> hello.o:hello.c:(.text+0x220c): undefined reference to
> `TclAccessInsertProc'
> hello.o:hello.c:(.text+0x2218): undefined reference to
> `TclOpenFileChannelInsertProc'
> collect2: ld returned 1 exit status
> make: *** [hello.exe] Error 1

From the release notes of Tcl 8.5.0
https://sourceforge.net/project/shownotes.php?release_id=562516 :

"Issues for users of the private interfaces:
...
* The pre-8.4 private interface hooks into Tcl's filesystem support have
been removed. Extensions and programs are expected to have migrated
to Tcl 8.4's public Tcl_Filesystem interface."

--
| Don Porter Mathematical and Computational Sciences Division |
| donald...@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|

Cameron Laird

unread,
Aug 5, 2009, 8:54:35 PM8/5/09
to
In article <83b5bdf5-a136-477f...@b14g2000yqd.googlegroups.com>,

Larry W. Virden <lvi...@gmail.com> wrote:
>On Aug 4, 3:37�am, CKL <christian.klugesh...@gmail.com> wrote:
>> Many Thank for all you answer.
>>
>> It seems that I have to try Tclkit, and unfortunately give up the way
>> mktclapp :-((
.
.

.
>> I don't understand why the solution mktclapp, which was so easy to
>> use, has been given up :-((
>>
>
>Over the years, I've seen many pieces of code used within the Tcl
>community eventually grow stale and become unusable by a segment of
>the community. Typically the issue is a change in priority by the
>creator of the code.
.
.

.
>Several things have occurred since mktclapp. The community of that
>package was not highly visible, the creator of freewrap was pretty
>visible for a while. The tclkit/starpack community was pretty active
>for a while.
.
.

.
>I'm certain that if there is someone reading this usenet group who has
>an interest in working with you to improve things, they will let you
>know.
>

Note, please, that mktclapp's creator didn't just *leave*, he
moved (mostly) to TOBE <URL: http://wiki.tcl.tk/tobe >.

CKL

unread,
Aug 6, 2009, 6:19:13 AM8/6/09
to

> >know.
>
> Note, please, that mktclapp's creator didn't just *leave*, he
> moved (mostly) to TOBE <URL:http://wiki.tcl.tk/tobe>.

Unfortunately TOBE is former that mktclapp :-(((

Will Parsons

unread,
Aug 6, 2009, 12:21:40 PM8/6/09
to
Gerald W. Lester wrote:
> Larry W. Virden wrote:
>> On Aug 4, 12:29 pm, Will Parsons <w...@nodomain.invalid> wrote:
>>> Gerald W. Lester wrote:
>>>> Will Parsons wrote:
>>>>> Robert Heller wrote:
>>>>>> At Mon, 3 Aug 2009 08:48:58 -0700 (PDT) CKL <christian.klugesh...@gmail.com> wrote:
>>>>>>> Years ago it was so simple to combine C and tcl thanks to mktclapp.
>>>>>>> Recently for a pure tcl application a tried freewrap, but the code was
>>>>>>> not portable to another PC, the were problems with paths, that I never
>>>>>>> could resolve (Document is not clear)
>>>>>> Freewrap is a early, somewhat primitive forerunner to StarPack's.
>>>>> Unfortunately Tclkit is not (last time I checked) distributed in the form
>>>>> of nice source tarball, which is all right if you can use one of the
>>>>> pre-built binaries, but good luck if you want to use on an "unusual"
>>>>> platform.
>>>> Check again -- there is a TclKit build, check KBS (see
>>>> http://wiki.tcl.tk/23813).
>>> OK - I checked, but I don't see what I would like to see - a nice source
>>> tarball (e.g., "tclkit-src.tar.gz"). Wrong URL or misunderstanding?
>>
>> Perhaps it was an oblique reference to the kbs script, which when
>> executed on a system with internet, will fetch all the source
>> necessary to build a tclkit-like executable suitable for building
>> stand alone applications.
>
> Yes, it was a reference to the KBS script. I assumed the OP could/would
> follow links and try it -- seems that is not really the case.

I think you are probably referring to me rather than the OP, but why do
think I didn't? I did indeed try it and doesn't run. There are various
errors but probably the critical one is not being able to find cvs. True
enough, the system I'm on doesn't have cvs. So, while kbs/tclkits may be
"easy" for common platforms, it requires jumping through hoops on others.
What would be good is if it were packaged in a nice source tarball, as I
said.

--
Will

rene

unread,
Aug 7, 2009, 3:01:08 AM8/7/09
to
On 6 Aug., 18:21, Will Parsons <w...@nodomain.invalid> wrote:
> I think you are probably referring to me rather than the OP, but why do
> think I didn't?  I did indeed try it and doesn't run.  There are various
> errors but probably the critical one is not being able to find cvs.  True
> enough, the system I'm on doesn't have cvs.  So, while kbs/tclkits may be
> "easy" for common platforms, it requires jumping through hoops on others.
> What would be good is if it were packaged in a nice source tarball, as I
> said.
You need the following to create your own tarball.
- internet connection
- cvs, tar, gzip, unzip
- compiler and make (case A) or
- tclsh (case B)

For case B ou always need to call '/your/path/o/tclsh kbs.tcl' and or
case A
just './kbs.tcl'. I imply se case A now.

1. Get a list of available packages:
.kbs.tcl list
2. Get the sources of the needed packages:
./kbs.tcl -r sources ...
p.e. all sources to build kbskit's and tksqilte executables:
./kbs.tcl -r sources kbskit8.5 tksqlite0.5.8
3. Create your tarball:
tar cf your_tarball.tar sources kbs.tcl

Please always include tcl/tk and kbskit sources. The above example
should be enough.

HTH
rene

If you have at least one computer with compiler, cvs an
>
> --
> Will

0 new messages