Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[SCRIPTSET v2.6][02/28/2012] Build native GNU/Linux applications: the easy way

OP smitna

29th February 2012, 08:34 PM   |  #191  
Senior Member
Thanks Meter: 24
 
263 posts
Join Date:Joined: Dec 2007
Quote:
Originally Posted by smitna

It's a full featured version of QEMU. I have not tried to boot a complete distro, only some i386 programs, but yes, it should work. Don't expect high performance.

Awesome, thank you
22nd March 2012, 10:05 AM   |  #192  
tommytomatoe's Avatar
Recognized Developer
Flag Knoxville USA
Thanks Meter: 6,825
 
6,256 posts
Join Date:Joined: Dec 2010
Donate to Me
More
bump for pure awesomeness
The Following User Says Thank You to tommytomatoe For This Useful Post: [ View ]
28th March 2012, 09:31 PM   |  #193  
Junior Member
Thanks Meter: 0
 
22 posts
Join Date:Joined: Feb 2009
first may i say... this script is total awesomeness, thanks to the author..

I have used it to sucessfully compile DnsCrypt-proxy for android... and its working.

It should perhaps be added to the package list

I do have a question though.. i was unable to find the propper settings for my phone... so i used the ultra safe settings the readme suggests.. armv5 and whatnot.

It seems the program works fine, and its a pretty simple program it seems.. Is there any reason to figure out the settings for my phone, which i know to be armv7 cortex a8, but i dont know the other settings.
what would the benefit of compile with the propper settings be?

also... do i really need all that crap that is compiled by default? i dont really know why i would need... python, or openssl for example.. and the build readme for this dnscrypt program doesnt specify and dependencies..

it is the only program i need and is only a few hundred k.. i dont see why i need this 80 or so mb of other stuff in my /data/mysysroot folder.
29th March 2012, 10:32 PM   |  #194  
OP Senior Member
Thanks Meter: 111
 
161 posts
Join Date:Joined: Aug 2011
Donate to Me
Quote:
Originally Posted by enlight22

first may i say... this script is total awesomeness, thanks to the author..

I have used it to sucessfully compile DnsCrypt-proxy for android... and its working.

It should perhaps be added to the package list

I do have a question though.. i was unable to find the propper settings for my phone... so i used the ultra safe settings the readme suggests.. armv5 and whatnot.

It seems the program works fine, and its a pretty simple program it seems.. Is there any reason to figure out the settings for my phone, which i know to be armv7 cortex a8, but i dont know the other settings.
what would the benefit of compile with the propper settings be?

also... do i really need all that crap that is compiled by default? i dont really know why i would need... python, or openssl for example.. and the build readme for this dnscrypt program doesnt specify and dependencies..

it is the only program i need and is only a few hundred k.. i dont see why i need this 80 or so mb of other stuff in my /data/mysysroot folder.

Thanks for your post and feedback, I will add DnsCrypt-proxy in the next release.

The first step to check the proper setting for your phone is to open a terminal and type
cat /proc/cpuinfo
It will show you the arch/processor generation and the features (thumb/neon etc.). The benefit to use the "best" settings is a faster execution and other optimisations of the compiled binary. But I don't think that it's necessary for DnsCrypt-proxy to spend too much time to find all the right compiler switches. It's not a program for time critical usage like a packer, converter etc. If you want to compile other applications with the help of my script like ImageMagick or some script languages then you should of course use the best settings for your phone.
Just use the "safe settings" or take the settings for an ARM v7 generation phone (armv7-a, cortex-a8). You can see the full list with the possible options with
arm-none-linux-gnueabi-gcc --target-help
in the arm-2011.09/bin folder (CodeSourcery)

You don't need to compile any other packages from "ALWAYS NEEDED" if you are sure that there are no further dependencies. Simply set them to "no".
My goal was to exclude as much possible compile errors. Most of the packages in the script set needs the openssl, zlib and ncurses libraries to work.
But you need in any case the libraries (cs-sysroot.tar.bz2) because nearly all generated binaries use these libraries and not the standard libraries of the phone (bionic glibc etc.) and you must copy the files for the first time to your phone. The only way to circumvent this is to use the Android NDK (for bionic). Have a look in the build.sh script, section for bash. But this can lead in a LOT OF WORK to make the sources compatible with NDK to sucessful build the binaries and I can't recommend this.
4th April 2012, 11:50 AM   |  #195  
mai77's Avatar
Senior Member
Thanks Meter: 535
 
1,338 posts
Join Date:Joined: Nov 2011
Question bbsh
is it not easier to use botbrew or TerminalIDE

afaik u can achieve the same goals there with bash and bbsh
5th April 2012, 12:59 AM   |  #196  
OP Senior Member
Thanks Meter: 111
 
161 posts
Join Date:Joined: Aug 2011
Donate to Me
Quote:
Originally Posted by mai77

is it not easier to use botbrew or TerminalIDE

afaik u can achieve the same goals there with bash and bbsh

Yes, it's easier to choose the botbrew solution and get ready to use software with a package manager. But it's not the same.
8th August 2012, 12:16 PM   |  #197  
nyarnon's Avatar
Senior Member
Thanks Meter: 64
 
310 posts
Join Date:Joined: Apr 2007
This is ubercool. With the new devices like MK802 the command line will get important again. As soon as I see fit I will put up binaries for it. Kudossmitna.

Sent from my GT-I9000 using xda premium
8th August 2012, 02:54 PM   |  #198  
nyarnon's Avatar
Senior Member
Thanks Meter: 64
 
310 posts
Join Date:Joined: Apr 2007
Well that was to be expected, just to easy. Compiler stops at the first package NCurses, looks like I need a patches autoconf2.13 to make it happen.


checking for C compiler default output... configure: error: C compiler cannot create executables
sed: kan ./include/ncurses_cfg.h niet lezen: Bestand of map bestaat niet

checking for the file reveales ncurses_cfg.hin with the text

This is a template-file used to generate the "ncurses_cfg.h" file.
*
* Rather than list every definition, the configuration script substitutes the
* definitions that it finds using 'sed'. You need a patch (original date
* 971222) to autoconf 2.12 or 2.13 to do this.
*
* See:
* http://invisible-island.net/autoconf/
* ftp://invisible-island.net/autoconf/
16th September 2012, 12:50 PM   |  #199  
capslock66's Avatar
Senior Member
Flag Brussel
Thanks Meter: 1,114
 
664 posts
Join Date:Joined: Oct 2010
Donate to Me
redsocks
Hi.

I didn't checked all the applications, but do you have redsocks ? If not can you add it ?
Thanks in advance.

http://darkk.net.ru/redsocks/
https://github.com/darkk/redsocks
25th September 2012, 11:21 PM   |  #200  
OP Senior Member
Thanks Meter: 111
 
161 posts
Join Date:Joined: Aug 2011
Donate to Me
Quote:
Originally Posted by capslock66

Hi.

I didn't checked all the applications, but do you have redsocks ? If not can you add it ?
Thanks in advance.

http://darkk.net.ru/redsocks/
https://github.com/darkk/redsocks

Sorry for my late answer. I am very busy at the moment. But I am sure it's possible to add redsocks (I saw that ProxyDroid and sshtunnel use redsocks). Why don't you want to try it yourself? The script gives you all the ability (with help from the docus) to add the tool. But I add it to my "todo list".

Post Reply Subscribe to Thread

Tags
android, cross compiling, linux installer, native apps, script, shell
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes