Tcl/Tk problems


Silent-Hunter

Hardcore Member
Joined
May 29, 2010
Messages
3,485
I'm attempting to package Trebuchet into a PND. It starts, but the complains about a missing tk::AmpWidget.

I have the contents of pnd_out here:


=======================================================================================
PND : /media/2/build/trebtk.pnd
PND_FSTYPE : Squashfs
APPDATADIR : /media/2/pandora/appdata/trebtk
APPDD_FSTYPE : ext3
PND_CPUSPEED : <unset>
EXENAME : scripts/run.sh
ARGUMENTS : <unset>
=======================================================================================
[ START ]--- Mount the PND ----------
Mounting : mount -t squashfs -o ro "/dev/loop3" "/mnt/utmp/trebtk"
Mounting the Union FS : mount -t aufs -o exec,dirs="/media/2/pandora/appdata/trebtk=rw+nolwh":"/mnt/pnd/trebtk=rr" none "/mnt/utmp/trebtk"
[SUCCESS]--- Mount the PND ----------
[ START ]--- Starting the application ( scripts/run.sh ) ----------
Application initialization failed: Can't find a usable tk.tcl in the following directories:
/mnt/utmp/trebtk/lib/tcl8.4/tk8.4 /mnt/utmp/trebtk/lib/tk8.4 /usr/lib/tk8.4 /mnt/utmp/lib/tk8.4 /mnt/utmp/trebtk/library /mnt/utmp/library /mnt/utmp/tk8.4.19/library /mnt/tk8.4.19/library

/mnt/utmp/trebtk/lib/tk8.4/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
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] uni..."
(file "/mnt/utmp/trebtk/lib/tk8.4/listbox.tcl" line 181)
invoked from within
"source /mnt/utmp/trebtk/lib/tk8.4/listbox.tcl"
(in namespace eval "::" script line 1)
invoked from within
"namespace eval :: [list source [file join $::tk_library $file.tcl]]"
(procedure "SourceLibFile" line 2)
invoked from within
"SourceLibFile listbox"
(in namespace eval "::tk" script line 4)
invoked from within
"namespace eval ::tk {
SourceLibFile button
SourceLibFile entry
SourceLibFile listbox
SourceLibFile menu
SourceLibFile panedwindow
SourceLibFile ..."
invoked from within
"if {$::tk_library ne ""} {
if {$tcl_platform(platform) eq "macintosh"} {
proc ::tk::SourceLibFile {file} {
if {[catch {
namespace eval :: ..."
(file "/mnt/utmp/trebtk/lib/tk8.4/tk.tcl" line 407)
invoked from within
"source /mnt/utmp/trebtk/lib/tk8.4/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $file]"


This probably means that tk wasn't installed properly.

/usr/pandora/scripts/pnd_run.sh: line 522: 14237 Terminated "./$EXENAME" $ARGUMENTS "$@"
[ FAILED]--- Starting the application ( scripts/run.sh ) ----------
[ START ]--- Restoring the frame buffer status ----------
[SUCCESS]--- Restoring the frame buffer status ----------
[ START ]--- uMount the PND ----------
[ START ]--- Waiting the Union to be available ----------
[SUCCESS]--- Waiting the Union to be available ----------
auplink:plink.c:223: AUFS_CTL_PLINK_MAINT: Inappropriate ioctl for device
rmdir: failed to remove `/mnt/utmp/trebtk': Device or resource busy
[ START ]--- Waiting the PND mount dir to be free ----------
[SUCCESS]--- Waiting the PND mount dir to be free ----------
cleanup done
[SUCCESS]--- uMount the PND ----------
=======================================================================================
Return code is : 3

I have to terminate the process, since attempting to close it normally causes the AmpWidget complain again.

The PND is here if anyone want's to try it out. Maybe someone can help me.

trebtk.pnd
 

Attachments

  • trebtk.pnd
    1.2 MB · Views: 255
Oh OK. I hope I can figure out how to use it. So far, I've been using the Debian extends, and then copying the compiled packages and dependencies into a folder and making a PND out of that. It worked for the other 3 things I packaged.
 
Where is that? I've not heard of Pandoralive.

EDIT: Never mind, I see it.
 
Last edited by a moderator:
OK, I did that, and now the entire folder that I have the PND's structure in has been made read only. Not even root can change it. I've never seen anything like it! When I do "chown -R silent:silent trebtk", it says Read Only Filesystem for each and every file and folder within it. Am I screwed?

EDIT: That was REALLY weird. I rebooted the Pandora and it fixed it.
 
Last edited by a moderator:
Read only *filesystem*? It's possible you may have had filesystem corruption and it's remounted it as read only, though normally when I've done that the message is fairly obvious and I don't get as far as trying to chmod or chown stuff before the system becomes obviously unusable. Type 'mount' (as any user) to see how the filesystem is mounted.


If it is still mounted read/write, I don't see why you shouldn't be able to chown stuff as root. Is there any more detail in the error log?
 
I got it to work, I don't really know WHAT I did. It seems to have something to do with the order in which I built stuff. But thanks for the help everyone!
 
Back
Top