LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-06-2014, 06:43 PM   #1
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 285

Rep: Reputation: Disabled
make command on android


Is it possible to manually install/build the make command on an android device. Before you suggest it, botbrew doesn't want to work for my Nexus 5 or TMO SGS4. Thanks in advanced!
 
Old 07-08-2014, 06:33 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,159

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
what is the goal of it?
 
Old 07-10-2014, 12:44 AM   #3
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 285

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
what is the goal of it?
I would like to be able to build native C software and run it on my android(Nexus 5). It's a tarball with header and C files. Also a make and configure file. Someone suggested to cross compile. If this is the case, then where would I start? I know nothing about cross compilation. Thanks!

EDIT:
The Nexus uses the Armv7 I'm doing this on my Mint Mate machine.

Last edited by amboxer21; 07-10-2014 at 12:46 AM.
 
Old 07-10-2014, 01:15 AM   #4
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,159

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
yes, usually it is made on a "normal" pc using cross compiler. what kind of linux do you have (ubuntu, suse...?)
 
Old 07-10-2014, 10:47 AM   #5
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 285

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
yes, usually it is made on a "normal" pc using cross compiler. what kind of linux do you have (ubuntu, suse...?)
I'll be building on Linux Mint Mate. I was looking into it last night and seen cmake could be used to CC. Think you could point me in the right direction?
 
Old 07-11-2014, 01:24 AM   #6
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,159

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
You can start for example here: http://wiki.osdev.org/GCC_Cross-Compiler or here, but it is not so simple....
 
Old 07-11-2014, 07:03 PM   #7
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 285

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
You can start for example here: http://wiki.osdev.org/GCC_Cross-Compiler or here, but it is not so simple....
Maybe my post is a bit ambiguous. What I am trying to do is port over a Linux userspace keylogger. It's called LKL and can be found on SourceForge. It is written in the C programming language. I recently have figured out how to pull my SQL formatted SMS/MMS DB from my rooted Nexus 5 and retrieve deleted text messages. I am kind of taking it one step further and going to try and port a keylogger. I needed a project and data forensics is very interesting!!

So far I have found that I needed to install the Android NDK, which I did. I also had to set up a standalone toolchain. The use of Cmake is a must!!

Now that I have everything up and running, I think I need to port the linux x86 specific calls from libs like io.h over to armv7 or find equivalent calls.

One of the errors I am getting.

ERROR
Code:
In file included from /home/anthony/Documents/tar_gz/lkl/lkl.h:25:0,
                 from /home/anthony/Documents/tar_gz/lkl/lkl.c:29:
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h: In function 'ioperm':
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:33:35: error: expected declaration specifiers before '__THROW'
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:38:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW'
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:44:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:53:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:62:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:71:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:80:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:89:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:97:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:103:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/home/anthony/android-toolchain/sysroot/usr/include/sys/io.h:110:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
The ioperm function is apart of the sys/io header. Defined there. I guess sys/io is not supported on armv7.

Any advice?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make: CC: Command not found make: *** [main.o] Error 127 on opensuse 11.3 Leo89 Linux - Newbie 6 11-30-2012 06:13 PM
LXer: Look Before You Make the Leap to Hulu Plus for Android LXer Syndicated Linux News 0 04-20-2012 04:20 PM
My error in mkisofs command to make a command line iso mg92865 Linux - Newbie 1 06-20-2008 12:43 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 08:55 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 10:58 AM


All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration