|
Post by Pjot on Sept 11, 2015 4:40:51 GMT 1
Thanks Bigbass,
This is very interesting! I will check it out shortly.
BR Peter
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 11, 2015 5:46:35 GMT 1
C4Droid is still the best C/C++ development environment for native Android (non-root) out there. You will spend tons of time trying to make many of these other attempts to work. I'm able to use SDL and Qt and even compiled a version of DOSBox for Android using C4Droid. Let us know how KBox works out.
|
|
|
Post by bigbass on Sept 11, 2015 16:48:54 GMT 1
murlengine.com/news/?murlnews=2014-08-12_android_x86_supportHey vovchik we are in the same boat wit the tablets I also have a dell venue 7 which share the same atom x86 chip So I am working on the solution too I will try the bacon bin and see if it works on the tablet I don't care at the moment it would be slower I just want it to work.... Good luck Joe
|
|
|
Post by Pjot on Sept 11, 2015 17:26:46 GMT 1
Well, I disagree. It is not the case for BaCon. The only thing you can do with this environment is compiling. But the actual conversion of BaCon code has to be done on a different system, and then you must upload the resulting files with C code to your tablet. Only then you can start using C4Droid. This is a pretty tedious procedure.
The TerminalIDE app is a self containing environment, allowing you to login to a shell, and within this shell you can convert BaCon itself from scratch, or other programs, after which compilation is possible also. Furthermore it has a simple ability to execute programs from the command line and work interactively with a shell.
Unfortunately, TerminalIDE does not work in Android 5.x, and therefore I will take a serious look into KBOX, because it has all the tools to make BaCon work (e.g. ZShell and GCC) and they claim that it can be used with any terminal emulator in Playstore.
BR Peter
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 12, 2015 4:05:52 GMT 1
Peter, I have my own custom C4droid setup for console compiling using ConnectBot as my terminal / shell environment. I have a full boat install of BusyBox for my common linux tools Android doesn't provide. C4Droid has addressed many of the shortcomings with gcc on Android. The only time I use the C4Droid IDE is for C++ compiling of SDL or Qt apps.
|
|
|
Post by Pjot on Sept 13, 2015 3:27:42 GMT 1
Hi jrs,
So could you show us how you have setup your Android to use BaCon conversion from BASIC to C?
Thanks Peter
|
|
|
Post by Pjot on Sept 13, 2015 3:55:19 GMT 1
All, The suggestion of bigbass is worth gold, the KBOX3 package works very well and provides a complete environment to run BaCon. It works with my Nexus7 tablet which uses Android 5.1.1. I have added some tweaks to the autoconf scripts from BaCon to optimize the setup, please use the latest beta to make life easy for yourself. These are the steps I had to do to make it work. (1) Install a terminal shell from Playstore. To keep things easy, install the one used by KBOX3 which is the Terminal Emulator for Android. (2) Follow the installation instructions carefully and do exactly as they say. For example, when copying the base installer from the download area on your tablet, use the 'cat' command and do not use 'cp'. (3) After installation, I was unable to start KBOX3 because of a 'dlopen' error. This problem is mentioned at the development diary at June 30. I had to download and install a patched version of 'libfakechroot.so' to fix it. (4) When the installation of the base system is ready, and KBOX3 can startup, apply the last KBOX installation step 9 also, so the Terminal Emulator will startup using KBOX3 by default. (5) Now download and install the following packages from the KBOX3 website: ncurses, zsh, gcc, make and gawk. (6) Create the following symlink in '/usr/bin' so the BaCon configure script works properly: # cd /usr/bin # ln -s gawk awk (7) Download the BaCon source package from the beta section and run the 'configure' script with the options shown below: # tar xzf bacon-3.1.1.tar.gz # cd bacon-3.1.1 # ./configure --with-zsh --disable-gui (8) Run 'make' and compilation starts. Ignore the warnings on 'Unused DT entry', these are harmless. (9) Run 'make install' as usual. (10) For subsequent compilations, you have to specify the location of the BaCon library: # bacon -l-L/usr/local/lib <prog.bac> This setting can be made persistent by using the '-w' switch one time: # bacon -l-L/usr/local/lib -w <prog.bac> From now on, BaCon automatically will add the location to the compilation flags. Note that the KBOX3 binaries 'as' and 'ld' may emit warnings about "unused DT entry". This is not a problem caused by BaCon, they are caused by the development tools in an ARM environment. These warnings are harmless, and the binaries will be created properly. BR Peter
|
|
|
Post by bigbass on Sept 13, 2015 16:15:55 GMT 1
Hey guys
First I want to say congratulations Peter for the detailed How to for kbox and getting around all the problems Namely bash
*The problem with bash is they have a cut down version and the kbox_shell would need to be modified for the real bash to work maybe we could suggest a full bash 4 terminal To the author of kbox and ask the source for kbox_shell
Thanks again Bacon on android has a new start!
|
|
|
Post by bigbass on Sept 13, 2015 16:20:35 GMT 1
Hey guys
Special note to vovchik and your samsung tab3
I am very happy announce that x86 atom intel Can compile and run bacon code I compiled the bacon bin on a x86 intel atom! Using a dell venue 7 android tablet
And this allows a full debian root With apt-get download anything you need You dont need to root your tablet the app is called root But no rooting needed
There is a apk from the app store called debian x86 root And another apk called GNU root that allows you to Install debiain I will do a how to but it is just as if you set up a new debian box the standard way
When all the needed packages were installed bash 4 Made it possible to do the old way of compiling bacon # ./bacon.sh bacon.bac When I have some time later today I will build it using make And the official tar.gz source package of bacon
Joe
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 13, 2015 18:42:20 GMT 1
Hi jrs, So could you show us how you have setup your Android to use BaCon conversion from BASIC to C? Thanks Peter Sure! Let me gather my notes and examples and I will share where I'm at with using native Android as a gcc / Linux development environment. (root like privileges account on a stock device)
|
|
|
Post by bigbass on Sept 13, 2015 19:52:34 GMT 1
Some images of the dell 7 Android x86 running Debian and compiling bacon 3.1.1 from the Source tar.gz Finally I can use this tablet for linux and BaCon Joe Next post with the how to
|
|
|
Post by vovchik on Sept 13, 2015 20:13:37 GMT 1
Dear Joe (and Peter), Great progress, guys. I will be trying to get my Samsung tablet baconized soon. Right now, I just completed an in-situ upgrade from Mint 16 to Mint 17.x and it WORKED (although it took a few hours)! I am now checking little things now to see that everything really works - but I recompiled bacon and it is fine, as are all sorts of additional libs that I sometimes use in some BaCon progs. With kind regards, vovchik
|
|
|
Post by bigbass on Sept 13, 2015 20:58:45 GMT 1
X86 Android atom To install and compile bacon Debian baseroot launch Then use apt-get apt-get update apt-get upgrade apt-get install build-essential Download the new bacon source from the beta folder beta.basic-converter.org/bacon-3.1.1.tar.gzcat /sdcard/Download/bacon-3.1.1.tar.gz > bacon-3.1.1.tar.gz # tar xzf bacon-3.1.1.tar.gz # cd bacon-3.1.1 # ./configure --disable-gui make make install No errors no warnings very clean Joe
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 14, 2015 2:02:16 GMT 1
Peter,
It seems the latest version of C4Droid's directory structures are protected from my ConnectBOT terminal. (could be new Android lock down)
I have a tablet that is rooted that has C4Droid installed. I can move it to my ConnectBOT account on the non-rooted tablet. I'm pretty sure I can create a gcc distribution from C4Droid without copying their product specific files. I'll let you know how this works out.
|
|
|
Post by bigbass on Sept 14, 2015 18:50:26 GMT 1
bacon-x86-android.zip (222.02 KB) Here is the x86 BaCon bin for Android 4.4.2 There are several tablets that use the Intel atom * I compiled this to save you some time This has BaCon and libbacon.a BaCon beta 3.1.1 This was done with a full Debian wheezy From inside Android use the old way Just bacon yourapp.bac Without any extra compiler options Because you are not in a shell when Using the Debian no root It would be possible to do this in a phone with "arm" instead of the x86 wheezy in the appstore same author by Corbin Champion If you had enough internal space the only difference Would be is selcect arm instead You can compile now with bacon yourprogram.bac * Originally all Android™ devices were typically equipped with an ARM CPU. Since 2012 also Android™ devices with Intel x86 Atom CPUs are available. Some examples of Android™ devices running on Intel Architecture are: Samsung Galaxy Tab 3 10.1, Asus MemoPad FHD 10, Dell Venue 7/8, Motorola Razr I, Lenovo K900 or more recently the HP 7. Intel developed a Binary Translator called Houdini which allows existing Android™ apps with native ARM code to run also on Android™ devices with Intel architecture. The Binary Translator reads native ARM code and on the fly translates it into equivalent x86 code.
|
|