Tcl/Tk 8.5 has been released

classic Classic list List threaded Threaded
16 messages Options
Francois Vogel-2 Francois Vogel-2
Reply | Threaded
Open this post in threaded view
|

Tcl/Tk 8.5 has been released

Hi all,


Tcl/Tk 8.5 has been officially released, by the Tcl Core Team as a
source package:

http://sourceforge.net/project/showfiles.php?group_id=10894
http://www.tcl.tk/software/tcltk/8.5.html

and by ActiveState as a binary package:

http://www.activestate.com/Products/activetcl/


Allan Cornet wrote that

"Scilab 5.x will use Tcl/Tk 8.5 by default when Tcl/Tk 8.5 will be
released"

in

http://wiki.scilab.org/Linking_Scilab_with_Tcl/Tk_8.5

therefore I thought you would be interested to know that this happened.


Full announcements at c.l.t are here (for the TCT):

http://groups.google.fr/group/comp.lang.tcl/browse_thread/thread/747fcc9df3274310

and here (for ActiveState):

http://groups.google.fr/group/comp.lang.tcl/browse_thread/thread/f5d67936e5809e04


An interesting reference for grasping quickly what's new against 8.4
is the "Busy Developer's Guide to Tcl/Tk 8.5" that can be found here:

http://www.markroseman.com/tcl/guide85.html


Merry Christmas to those who feel concerned.
Francois


Sylvestre Ledru Sylvestre Ledru
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released


Hello,

Thanks for the information Francois !
I am going to add the management of TCL/TK 8.5 under Linux too.

Tile sounds very promising :
http://wiki.tcl.tk/13636
and also the "Better platform look and feel".

Did you tried this version on Scipad under Linux ? Can we have a screenshot
? :|

Cheers,
Sylvestre


On Mon, 24 Dec 2007 10:44:17 +0100, François Vogel <[hidden email]>
wrote:

> Hi all,
>
>
> Tcl/Tk 8.5 has been officially released, by the Tcl Core Team as a
> source package:
>
> http://sourceforge.net/project/showfiles.php?group_id=10894
> http://www.tcl.tk/software/tcltk/8.5.html
>
> and by ActiveState as a binary package:
>
> http://www.activestate.com/Products/activetcl/
>
>
> Allan Cornet wrote that
>
> "Scilab 5.x will use Tcl/Tk 8.5 by default when Tcl/Tk 8.5 will be
> released"
>
> in
>
> http://wiki.scilab.org/Linking_Scilab_with_Tcl/Tk_8.5
>
> therefore I thought you would be interested to know that this happened.
>
>
> Full announcements at c.l.t are here (for the TCT):
>
>
http://groups.google.fr/group/comp.lang.tcl/browse_thread/thread/747fcc9df3274310
>
> and here (for ActiveState):
>
>
http://groups.google.fr/group/comp.lang.tcl/browse_thread/thread/f5d67936e5809e04

>
>
> An interesting reference for grasping quickly what's new against 8.4
> is the "Busy Developer's Guide to Tcl/Tk 8.5" that can be found here:
>
> http://www.markroseman.com/tcl/guide85.html
>
>
> Merry Christmas to those who feel concerned.
> Francois


Francois Vogel-2 Francois Vogel-2
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

Sylvestre Ledru said on 24/12/2007 12:11:
> Tile sounds very promising :
> http://wiki.tcl.tk/13636
> and also the "Better platform look and feel".

Funny you speak about better look and feel after you op. team have
removed gtk support from Scilab in favor of xaw.

Yes I know, java, java, and also java will do everything.


> Did you tried this version on Scipad under Linux ? Can we have a screenshot
> ? :|

There is a screenshot of Scipad on both Linux and Windows with Tcl/Tk
8.5 at:
http://wiki.scilab.org/Linking_Scilab_with_Tcl/Tk_8.5

Scipad does not use Tile but only the vanilla widgets from Tk (yes,
with minor exceptions).

Francois

Sylvestre Ledru Sylvestre Ledru
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released




> Yes I know, java, java, and also java will do everything.
Actually, we will probably use the Java/GTK rendering under Linux. We have
some prototypes and they are very nice.

> There is a screenshot of Scipad on both Linux and Windows with Tcl/Tk
> 8.5 at:
> http://wiki.scilab.org/Linking_Scilab_with_Tcl/Tk_8.5
Thanks.
Can you confirm that Scipad will still work under TCL/TK 8.4 ?
At least under Linux, I don't see TCL/TK 8.5 as mandatory right now.

Sylvestre



Francois Vogel-2 Francois Vogel-2
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

Sylvestre Ledru said on 24/12/2007 17:04:
> Can you confirm that Scipad will still work under TCL/TK 8.4 ?

The present Scipad that you have in trunk (Scipad 6.132) works
transparently with either 8.4 or 8.5.

If 8.5 is found by Scipad then it uses 8.5 because 8.5 has many new
features, bug fixes, speed improvements, and so on (again, see what
8.5 features are used by Scipad by reading the top of
http://wiki.scilab.org/Linking_Scilab_with_Tcl/Tk_8.5).

For the future of Scipad I can't say anything. For the moment I have
stopped committing my developments in Scilab's trunk.

Francois


Sylvestre Ledru Sylvestre Ledru
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released


> If 8.5 is found by Scipad then it uses 8.5 because 8.5 has many new
> features, bug fixes, speed improvements, and so on (again, see what
> 8.5 features are used by Scipad by reading the top of
> http://wiki.scilab.org/Linking_Scilab_with_Tcl/Tk_8.5).

I am working on it.
I have a question about that.
We have 3 execution modes :
* normal
* nw - no window, ie no console but the possibility to launch rendering
plot3d for example
* nwni - no window, ni interactive, ie an ultra basic console.

I thought (maybe wrongly) that the TCL event loop should be disabled in
the nwni mode.
Should it be the case or not ? (it is quite unclear in the code)

For example, scilab 4.1.2 uicontrol() is "working" (thanks Bruno btw).

Sylvestre


signature.asc (189 bytes) Download Attachment
mottelet mottelet
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

Sylvestre Ledru a écrit :

>> If 8.5 is found by Scipad then it uses 8.5 because 8.5 has many new
>> features, bug fixes, speed improvements, and so on (again, see what
>> 8.5 features are used by Scipad by reading the top of
>> http://wiki.scilab.org/Linking_Scilab_with_Tcl/Tk_8.5).
>>    
>
> I am working on it.
> I have a question about that.
> We have 3 execution modes :
> * normal
> * nw - no window, ie no console but the possibility to launch rendering
> plot3d for example
> * nwni - no window, ni interactive, ie an ultra basic console.
>
> I thought (maybe wrongly) that the TCL event loop should be disabled in
> the nwni mode.
> Should it be the case or not ? (it is quite unclear in the code)
>
> For example, scilab 4.1.2 uicontrol() is "working" (thanks Bruno btw).
>
> Sylvestre
>
>  
As far as I remember (at least for Unix/Linux version) in -nw and -nwni
mode, the TCL event
loop is disabled by default, but started on demand (together with the
X11 event loop) when
e.g. the very first TCL_EvalStr is issued. This allows to use Scilab as
a transparent engine
(no visible console but keeping all other graphical features).

S.

Sylvestre Ledru Sylvestre Ledru
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released


> >  
> As far as I remember (at least for Unix/Linux version) in -nw and -nwni
> mode, the TCL event
> loop is disabled by default, but started on demand (together with the
> X11 event loop) when
> e.g. the very first TCL_EvalStr is issued. This allows to use Scilab as
> a transparent engine
> (no visible console but keeping all other graphical features).
OK, thanks for the information.
If tcl8.4 and tcl8.5 are available on the system, it will use (or at
least try) the version 8.5 under Linux/Unix.
I also made some cleanup. I may have broke some stuff.

Sylvestre



signature.asc (189 bytes) Download Attachment
Francois Vogel-2 Francois Vogel-2
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

Sylvestre Ledru said on 26/12/2007 23:59:
> If tcl8.4 and tcl8.5 are available on the system, it will use (or at
> least try) the version 8.5 under Linux/Unix.
> I also made some cleanup. I may have broke some stuff.

Did you try to actually compile with Tcl/Tk 8.5 on Linux or did you
stop at updating the configure scripts?

For me, I configure the following way (those directories contain
version 8.5 of Tcl and Tk):

./configure --with-tcl-library=/usr/local/lib
--with-tk-library=/usr/local/lib
--with-tcl-include=/usr/local/include --with-tk-include=/usr/local/include

and configure is happy with this AFAIK. Here is the relevant part of
the config.log:

checking for header file tcl.h... found in /usr/local/include
checking if tcl is version 8.4 or later... (8.5) yes
checking for tcl library tcl8.5... found /usr/local/lib/libtcl8.5.so using
-L/usr/local/lib -ltcl8.5
checking for Tcl_DoOneEvent in -ltcl8.5... yes
checking for header file tk.h... found in /usr/local/include
checking if tk is version 8.4 or later... (8.5) yes
checking for tk library tk8.5... found /usr/local/lib/libtk8.5.so using
-L/usr/local/lib -ltk8.5
checking for Tk_BindEvent in -ltk8.5... yes


Then make all runs (for ages) and finally ends with:

make[1]: Leaving directory `/home/francois/scilab/trunk/scilab/modules'
make[1]: Entering directory `/home/francois/scilab/trunk/scilab'
./bin/scilab -ns -nwni -f
modules/functions/scripts/buildmacros/buildmacros.sce
/home/francois/scilab/trunk/scilab/.libs/lt-scilab-bin: error while
loading
shared libraries: libtk8.5.so: cannot open shared object file: No such
file or
directory
make[1]: [macros] Error 127 (ignored)
make[1]: Leaving directory `/home/francois/scilab/trunk/scilab'


But libtk8.5.so really is in /usr/local/lib
The configure script found it and I checked manually that it is here.

So what could be wrong?

Thanks,
Francois

Sylvestre Ledru Sylvestre Ledru
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

Le jeudi 27 décembre 2007 à 21:10 +0100, François Vogel a écrit :
> Sylvestre Ledru said on 26/12/2007 23:59:
> > If tcl8.4 and tcl8.5 are available on the system, it will use (or at
> > least try) the version 8.5 under Linux/Unix.
> > I also made some cleanup. I may have broke some stuff.
>
> Did you try to actually compile with Tcl/Tk 8.5 on Linux or did you
> stop at updating the configure scripts?
Yep, I did.


> /home/francois/scilab/trunk/scilab/.libs/lt-scilab-bin: error while
> loading
> shared libraries: libtk8.5.so: cannot open shared object file: No such
> file or
> directory
> make[1]: [macros] Error 127 (ignored)
> make[1]: Leaving directory `/home/francois/scilab/trunk/scilab'

if you do :
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
# ./bin/scilab -ns -nwni -f modules/functions/scripts/buildmacros/buildmacros.sce

Is it working for you ?

TCL/TK features may be broken in the current revision of the trunk.

Sylvestre


signature.asc (189 bytes) Download Attachment
Francois Vogel-2 Francois Vogel-2
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

Sylvestre Ledru said on 28/12/2007 11:46:
> # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
> # ./bin/scilab -ns -nwni -f modules/functions/scripts/buildmacros/buildmacros.sce
>
> Is it working for you ?

Yes indeed it does.


> TCL/TK features may be broken in the current revision of the trunk.

Yes. Scipad doesn't even start any more while it did before.

Francois

Sylvestre Ledru Sylvestre Ledru
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

Le vendredi 28 décembre 2007 à 13:48 +0100, François Vogel a écrit :
> Sylvestre Ledru said on 28/12/2007 11:46:
> > # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
> > # ./bin/scilab -ns -nwni -f modules/functions/scripts/buildmacros/buildmacros.sce
> >
> > Is it working for you ?
>
> Yes indeed it does.
It is weird. By default, your Ubuntu should look for libs in the
directory /usr/local/lib

Under Debian - Lenny at least - (and then most probably under Ubuntu),
you should have this file :
/etc/ld.so.conf.d/libc.conf
containing the path "/usr/local/lib"

>
> > TCL/TK features may be broken in the current revision of the trunk.
>
> Yes. Scipad doesn't even start any more while it did before.
I am guilty... Sorry for this.

Sylvestre

signature.asc (189 bytes) Download Attachment
Francois Vogel-2 Francois Vogel-2
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

Sylvestre Ledru said on 28/12/2007 14:49:
> It is weird. By default, your Ubuntu should look for libs in the
> directory /usr/local/lib
>
> Under Debian - Lenny at least - (and then most probably under Ubuntu),
> you should have this file :
> /etc/ld.so.conf.d/libc.conf
> containing the path "/usr/local/lib"

This file exists at the location above, and contains exactly the
following two lines:

# libc default configuration
/usr/local/lib


So I guess this is OK.
Then why should I export the path...?


>>> TCL/TK features may be broken in the current revision of the trunk.
>> Yes. Scipad doesn't even start any more while it did before.
> I am guilty... Sorry for this.

I'll have a look at this issue.

Francois

Francois Vogel-2 Francois Vogel-2
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

>>> Scipad doesn't even start any more while it did before.
>> I am guilty... Sorry for this.
>
> I'll have a look at this issue.

Here are my findings, all with the Scipad you have currently in trunk,
i.e. 6.132.

0. Executing Scipad completely outside of Scilab, i.e. directly in
wish8.5 works OK.

a. Scilab trunk up-to-date linked with Tcl/Tk 8.5 : Doesn't work. By
this I mean that the Scipad window correctly opens but the text
widget, menues, status bar, scrollbars, etc are not visibly packed in
that window. It looks like Scipad is stuck somewhere during its launch
process.

b. Scilab trunk up-to-date linked with Tcl/Tk 8.4 : works OK. The
Scipad window opens completely OK.

c. Scilab trunk r21301 linked with Tcl/Tk 8.5 : same as a.

d. Scilab trunk r21189 linked with Tcl/Tk 8.5 : same as a.

e. Situation described in a. happens on Kubuntu Gutsy and OpenSuse
10.3 as well.

In case a, c and d, TCL_EvalStr("isscilabbusy","scipad") returns true.
Without entering into the details of the Scilab/Tcl interface, this
means that Scipad is waiting for Scilab to finish some job. The Tcl
global variable sciprompt from the Tcl interpreter named scipad has -1
as a value. When done, Scilab should set the Tcl global variable
sciprompt back to 0 (actually back to the pause level, 0, 1 or more).

One can interact with Scipad through different commands, say:
TCL_EvalStr("opensourceof","scipad")
TCL_EvalStr("closecur","scipad")   (this one will close Scipad)

Moreover, if you try to force the Tcl event loop to run through, say,
the following command:

TCL_EvalStr("tk_messageBox -message $sciprompt","scipad")

then after clicking on OK in the dialog showing the value of sciprompt
you get the packing of the widgets in Scipad. This means that the
event loop ran once. However, Scipad is still not fully available, as
clicking on any menu proves it.

I think that all this in fact bug 2514:
http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2514

The Tcl event loop doesn't seem to run unless it is forced to do so.
It really looks like the problem is in the Scilab/Tcl interface, as
described in bug 2514.

Francois

Francois Vogel-2 Francois Vogel-2
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

François Vogel said on 28/12/2007 23:21:
>
> I think that all this in fact bug 2514:
> http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2514
>
> The Tcl event loop doesn't seem to run unless it is forced to do so. It
> really looks like the problem is in the Scilab/Tcl interface, as
> described in bug 2514.

Well... trying to debug Scilab with gdb segfaults three times simply
during the startup of Scilab, even before anything is entered in the
Scilab shell.

Enough for me.

Francois

Sylvestre Ledru Sylvestre Ledru
Reply | Threaded
Open this post in threaded view
|

Re: Tcl/Tk 8.5 has been released

In reply to this post by Francois Vogel-2
[...]

> I think that all this in fact bug 2514:
> http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2514
>
> The Tcl event loop doesn't seem to run unless it is forced to do so.
> It really looks like the problem is in the Scilab/Tcl interface, as
> described in bug 2514.
Thanks for your investigation. We will soon have a look on this issue.

Sylvestre


signature.asc (189 bytes) Download Attachment