**Features to be added to AndroWish** [MG] would love to see support for the [vfs] package, a requirement for loading [starkit]s. [chw] the [vfs] package is now included starting with the ''"James Joyce"'' edition (2014-01-13). [MG] Brilliant, thanks for the quick response. [MG] Follow-up: I installed the newer version of AndroWish in the emulator, did a ====== package require starkit ====== which worked (1.3.3). I then tried to [source] my starkit, but that failed with the error ====== can't find package vfs::mkcl while executing "package require vfs::mkcl" (procedure "::vfs::mk4::Mount" line 4) invoked from within "::vfs::mk4::Mount /storage/sdcard/Download/starkit.kit /storage/sdcard/Download/starkit.kit -readonly" ("eval" body line 1) invoke from within "eval [list ::vfs::${driver}::Mount $self $self} $args" ====== [chw] so there's something missing in the CVS version of vfs. Can you please point me to where I can fetch a complete vfs source archive including the required stuff for starkits? There must also be some C code which needs to be adapted for Android which I didn't find on the web, either. [MG] It looks like it tries to load vfs::mkcl as a fallback when the [Mk4tcl] package isn't available. I can't actually find any info about vfs::mkcl, but it seems [Mk4tcl] can be obtained from [http://equi4.com/metakit/tcl.html] [chw] 2014-01-18: hopefully fixed with the ''"Amphetamine"'' edition which includes the read-only tclkit vqtcl module. [MG] 99%! It errors out when trying to [cd] to a directory in a starkit (complains it's not a directory, while under other OSes you can CD into the file structure of a starkit without a problem). Curiously, though, it has created images with `image create photo -file ...` which are located inside the starkit. Anyway, I removed the [cd] and it loaded the starkit, which seems to be running perfectly. Thank you :) [chw] 2014-01-21: when I try this on /storage/sdcard0/clock.kit ====== package require vfs::mkcl vfs::mkcl::Mount /storage/sdcard0/clock.kit /mystarkit ====== it is possible to cd into the mounted startkit on /mystarkit, to glob, and to open files. ---- [ramsan] I would like to see a short tutorial in how to compile a simple tcl package that contains c/c++ code [chw] unfortunately unsupported as a standalone piece since everything is built as a whole and finally packaged into an APK. So your best option is to fetch the complete source, add your tcl package containing native code to the .../jni subdirectory of the source tree, pick one of the Android.mk makefiles from the many ported extensions, adapt it to your package, add an appropriate pkgIndex.tcl to the .../assets subdirectory, and build the beast using Android NDK/SDK and "ant". A short recipe is in [Tcl/Tk on android poll]. [ramsan] But then ... I cannot offer the package to other users. In my specific case, I have RamDebugger running ok on Androwish. But some parts of this program are made in c++ to instrument and colorize files faster. How can I create the dynamic library for this code in order for RamDebugger to run properly? [chw] 2014-01-21: glimpsed over RamDebugger-source8.1.zip and saw many DLLs and shared libraries but no source code. As stated above, you should fetch the AndroWish sources, put your sources of those DLLs/shared libraries below the .../jni subdirectory and create appropriate Android.mk makefiles. Finally, you might want to call your application "RamDebugger": you have to subclass from tk.tcl.wish.AndroWish (an empty class body should do) in order to give the application another package/class name. That java stuff is below the .../src subdirectory. Adapt the AndroidManifest.xml to that package/class name and change the resources in .../res (strings, icons) to your needs. That should give you your RamDebugger APK at the end. [ramsan] 2014-01-22: You are describing how to create an application only for myself. But this is not the objective. The objective is to create a package, an editor and debugger, that can be used by any user of androwish. (NOTE: the source code is at: scripts/RamDebuggerInstrumenter.cc). You can access the fossil source code at: [http://www.compassis.com/c/ramdebugger/index] [chw] 2014-01-23: then package RamDebugger into a starkit. I'm afraid, however, that for the shared libraries you have to carry out the above mentioned steps (get AndroWish sources, Android NDK, put C/C++ sources below .../jni, create Android.mk, use ndk-build to generate shared libraries). Another point to watch out for is that AndroWish builds for ARM and x86 processors, i.e. there are two versions of each shared library which you have to put into the starkit. And the package specific Tcl load command must use $tcl_platform(machine) to find out which library to load (I've never tested loading native code from a starkit, BTW). ---- [PO] would like to have an Android theme and the possibility to simulate right clicks (if possible). ---- [jima] 2014-01-14 As asked for in the Tcler's Chat: Do you know if/how a script can be started with AndroWish instead of starting it with an interactive console and a tk default window? This question has also arised in comp.lang.tcl: https://groups.google.com/forum/#!topic/comp.lang.tcl/m9A6bWKPi_8 [chw] that is were the "borg" command comes into play as mentioned in [AndroWish]: borg shortcut add The last parameter can be left out in which case Aladdin's magic device is shown. However, YMMV depending on Android version. On my 4.x devices it worked but the opposite (borg shortcut delete) did not. The must be given as an absolute path and it must be readable by the user id under which the AndroWish package has been registered by the Android installer. ---- '''[ES] - 2014-02-12 02:24:31''' 1.BTL/RBC, please! 2.I am assuming things like complex/fourier can be simply included, as they are completely self contained and require no hardware access, is this right? Still, is there a place one can place such common tools? On Linux it would be /usr/share/tcl or something similar, could we have a /storage/sdcard0/AndroWish take up the same role? This would also be a good place to contain .androwishrc, to be executed at startup, if present (default font sizes, etc.). User scripts would also be placed there, and I would also write a little script that looks through this space, finds all file.tcl (and the matching file.png, if available) and create buttons associated with launching each of these (Borg shortcut ...). <>Android|AndroWish