Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 26, 2012 9:36:48 GMT 1
FYI I was able to compile BaCon with bacon.bash on my Ubuntu 12.04 LTS ARM chroot image hosted by Android Linux on my SGT2_10.1 tablet. root@localhost:~/bacon# ./bacon.bash bacon.bac Converting 'bacon.bac'... done. Compiling 'bacon.bac'... done. Program 'bacon' ready. root@localhost:~/bacon# ls -l total 1100 -rwxr-xr-x 1 root root 446122 Aug 26 09:30 bacon -rw-rw-r-- 1 root root 239705 Aug 26 09:18 bacon.bac -rwxr-xr-x 1 root root 207844 Aug 26 09:18 bacon.bash -rw-rw-r-- 1 root root 212168 Aug 26 09:16 bacon.ksh root@localhost:~/bacon# ./bacon -h
USAGE: bacon [options] program[.bac]
OPTIONS:
-c <compiler> Compiler to use (default: cc) -l <flags> Pass libraries to linker -o <options> Pass compiler options -i <include> Add include file to C code -d <tmpdir> Temporary directory (default: .) -x Extract gettext strings -f Create Shared Object -n Do not compile, only convert -j Invoke C Preprocessor -p Preserve temporary files -b Execute from shebang -v Show version -h Show help
root@localhost:~/bacon#
This HUG fractal example was a good stress test for my VNC client.
|
|
|
Post by Pjot on Aug 27, 2012 12:03:51 GMT 1
Nice, thanks for letting know!
Regards Peter
|
|
shauns
Junior Member
Posts: 50
|
Post by shauns on Aug 27, 2012 21:40:31 GMT 1
This looks great. Here you see the value of writing BaCon in Bash.
I'm thinking that you were also trying to port BaCon directly to Android (can't seem to find that post) can you say how this compares?
So here you have Ubuntu, presumably running from an image file, using the VNC process to get access to the GUI. Can you say what the origin is. What I mean is there are a number of Linux on Android apps so is this 'Complete Linux Installer' and can you say what it's like.
So, is it slow, is it difficult to press the buttons if they're small. Could you try compiling Bacon GUI and try it out for writing programs?
I'd like to set up something like this but I'm not convinced it's worthwhile. I tend to think that VNC would have difficulties like lack of colours or slowness. So if you had a program compiled by BaCon to run in Linux on an Android tablet (looks like ICS), would there be difficulties in comparison to a program compiled to run directly on Android after porting BaCon itself directly to Android as an app? So what I'm asking is are we in emulation mode here or is it running at full speed?
Thanks - Shaun.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 29, 2012 0:54:21 GMT 1
This looks great. Here you see the value of writing BaCon in Bash. I started out with this proof of concept under Android Linux using bash and busybox to generate a native Android Linux executable of the BaCon converter. Both Android and Ubuntu use ARM gcc. They are configured differently and use different system libraries like libc. My first attempt at using a chroot image under Android was LXDE. (too buggy) I then tried Backtrackr5. (Ubuntu 10.04 LTS - taylored towards security) That ended up a PITA trying to find libraries in the repo. I ended up going with Ubuntu 12.05 LTS (Precise) as my development environment for Ubuntu and Android Linux on my tablet. It works great and VERY usable. (don't use anything other then Jump VNC) The Linux AutoLoader app (Play) is the easiest way to configure and run your chroot images. Your own fears are your only obstacle. You won't be wasting your time. Don't try this on anything other than a dual core tablet.
|
|
shauns
Junior Member
Posts: 50
|
Post by shauns on Aug 29, 2012 12:40:25 GMT 1
Thanks for your replies.
The tablet I have is a cheap Yarvik, and sadly it is single core. That's overclocked to 1.2Ghz (probably not a good way of doing things). Clearly one interest in Android is the use of Java (OK... fake Java) for programming as I have studied that a little. Java is better than C from my point of view (and Objective C doesn't adhere to my monolithic programming standard).
Android has a lack of decent software, while Linux has a surplus of command line only software, which I have to say sounds absolutely ideal where it's a tablet or phone (but the keyboard becomes the issue). To get something like GIMP on Android is very difficult, but on Linux that's easy. At least I have FFmpeg on Android but haven't tested it yet. The concern is that Linux is not designed for tablets and touch screens, so it's a bit of a last resort. If Android can't cut it in the real world then perhaps Linux will replace it (and that could happen in any case as Android is a linux OS).
If someone produced an Android windows system like X11 only native Android using the Java, and if that could then be accessed by linux software then you would have the beginnings of something like Mac Ports only it would be Android Ports. Lots of scope here.
Thanks - Shaun.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 29, 2012 17:53:32 GMT 1
You may want to keep an eye on SB4J. (ScriptBasic for Java) I'm not a Java programmer and just getting my feet wet. When I feel comfortable about talking SB4J, I'll post something over on the SB project forum.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Aug 30, 2012 16:45:02 GMT 1
|
|