Android Terminal-IDE: terminal-gcc error: arm-eabi-gcc not found

I use Terminal-IDE as a development environment. ( Google code site is here. )

I am running Terminal-IDE v 2.02 - the most recent. My Android versions:

  • Android 4.0.3
  • Software Version 2.14.531.3 71ORD
  • (the rest is hardly appropriate, but more on request)

I am in a suitable development directory with a fairly simple source code for the c file and run make.

I have never received compilation for successful work. Most likely, there is an incorrect version of the version regarding which executable file is available in comparison with what the software is looking for.

Here's the command message and errors:

terminal-gcc -c -Wall -I/data/data/com.spartacusrex.spartacuside/files/local/include tester.c -o tester.o /data/data/com.spartacusrex.spartacuside/files/system/bin/terminal-gcc[43]: arm-eabi-gcc: not found make: *** [tester.o] Error 127 

Snaf, of course. I'm not quite sure how to find out what the correct compiler file names should be, because on this non-root phone I do not have permissions to search through PATH and search for actual executable files.

It is also possible that PATH is set incorrectly. All input is evaluated.

+6
source share
2 answers

... I'm not sure what should happen, but I found the file in the Terminal-IDE directory tree:

 $IDESYSTEM/android-gcc-4.4.0.tar.gz 

I also found that terminal-gcc is a bash script. Looking inside, it seemed that the gcc tree should exist in "$ HOME" , which is the installation directory. So I unpacked, then cleared the file above and put the resulting directory tree as a top-level subdirectory.

OK, what do you know? Success.

I went a little further and created soft links to the actual compiler in ~ / bin for gcc and only cc , and suddenly all my previously created "Makefile" scripts used in other projects that I wanted to move started to work fine.

Apparently, although I thought I did everything right, I forgot to run this script:

 ./system/bin/install_gcc 

It extracts tar, just like me, but does not create the links you might need.

Hey, if you're glad I got to you, give him a thumbs up!

+8
source

The loan is owned by @Richard T for his enthusiasm for the Terminal IDE. The answer is intended to list the steps required to run C code.

To run C code

  • Launch the terminal IDE and extract the gcc package by running

    install_gcc

  • Create a directory for your projects in the directory tree of the IDE terminal. Then create a .c file in the directory with the code (filename.c here). Compile it

    terminal-gcc -c filename.c

  • Create an executable file

    terminal-gcc filename.o -o filename.out

  • Run the output file

    ./filename.out


If you want to use a PC keyboard (laptop), you can use the telnet Terminal IDE.

For Telnet IDE

  • From the IDE terminal, run telnetd deamon by doing

    Telnetd

  • Connect your Android device to PC (laptop) and enter

    adb forward tcp: [port] tcp: 8080

    telnet 127.0.0.1 [port]

PS The default Telnet port is 23.

+2
source

All Articles