SCIRun User Mailing List

Text archives Help


[SCIRUN-USERS] Re: Problems starting SCIRun


Chronological Thread 
  • From: Ayla Khan <ayla@sci.utah.edu>
  • To: Josef.Barnes@student.griffith.edu.au
  • Cc: scirun-users@sci.utah.edu
  • Subject: [SCIRUN-USERS] Re: Problems starting SCIRun
  • Date: Wed, 17 Jun 2009 13:24:01 -0600

Hi Josef,

The SCIRun thirdparty version distributed with SCIRun 4.1 is incompatible with the newer X11 API that is available with many Linux distributions. We are working on a new SCIRun release that will fix this problem. In the meanwhile, you can attempt to patch the Tk code in SCIRun/thirdparty.bin/src with:

--- generic/tk.h.orig   2001-10-03 16:04:52.000000000 -0600
+++ generic/tk.h        2009-05-03 15:38:53.000000000 -0600
@@ -553,17 +553,15 @@
 *
*---------------------------------------------------------------------------
 */
-#define VirtualEvent       (LASTEvent)
-#define ActivateNotify     (LASTEvent + 1)
-#define DeactivateNotify    (LASTEvent + 2)
-#define MouseWheelEvent     (LASTEvent + 3)
-#define TK_LASTEVENT       (LASTEvent + 4)
+#define VirtualEvent       (MappingNotify + 1)
+#define ActivateNotify     (MappingNotify + 2)
+#define DeactivateNotify    (MappingNotify + 3)
+#define MouseWheelEvent     (MappingNotify + 4)
+#define TK_LASTEVENT       (MappingNotify + 5)

#define MouseWheelMask      (1L << 28)
-
#define ActivateMask        (1L << 29)
#define VirtualEventMask    (1L << 30)
-#define TK_LASTEVENT       (LASTEvent + 4)

Let me know if this doesn't work for you.

Ayla

On Jun 16, 2009, at 7:43 PM, Josef.Barnes@student.griffith.edu.au wrote:

Hi,
This morning when i tried to run SCIRun, I got this error message. Can anyone help me with it. Im running ubuntu as my OS.

thanks
Joe

-------------------------------------------------------------------------------------------------------------------------------
Loading Tcl,Tk,Tk_Init failed: Can't find a usable tk.tcl in the following directories:
/home/joe/SCIRun/thirdparty.bin/lib/tk8.3 /home/joe/SCIRun/lib/ tk8.3 /home/joe/lib/tk8.3 /home/joe/SCIRun/library /home/joe/ library /home/joe/tk8.3/library /home/joe/PhD/tk8.3/library

/home/joe/SCIRun/thirdparty.bin/lib/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
"bind Listbox <MouseWheel> {
    %W yview scroll [expr {- (%D / 120) * 4}] units
}"
(file "/home/joe/SCIRun/thirdparty.bin/lib/tk8.3/listbox.tcl" line 182)
    invoked from within
"source [file join $tk_library listbox.tcl]"
    invoked from within
"if {[string compare $tcl_platform(platform) "macintosh"] && \
    [string compare {} $tk_library]} {
    source [file join $tk_library button.tcl]
    so..."
    (file "/home/joe/SCIRun/thirdparty.bin/lib/tk8.3/tk.tcl" line 336)
    invoked from within
"source /home/joe/SCIRun/thirdparty.bin/lib/tk8.3/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $file]"


This probably means that tk wasn't installed properly.

In most case, this means your DISPLAY environment variable is not set correctly.
-----------------------------------------------------------------------------------------------------------------------------


-----------------------------
Ayla Khan
(801) 585-0333
ayla@sci.utah.edu







Archive powered by MHonArc 2.6.16.

Top of page