Termux repository with cctools packages (gcc with fortran support etc)

From CCTools
(Difference between revisions)
Jump to: navigation, search
(Created page with "== CCTools packages for termux == '''Current gcc version: 10.2.0''' '''Current binutils version: 2.34''' Add cctools packages public key: wget -O - https://cctools.info/pu...")
 
Line 7: Line 7:
 
Add cctools packages public key:
 
Add cctools packages public key:
  
wget -O - https://cctools.info/public.key | apt-key add -
+
<code><nowiki>wget -O - https://cctools.info/public.key | apt-key add -</nowiki></code>
  
 
Create new repository list:
 
Create new repository list:
  
echo "deb https://cctools.info termux cctools" > $PREFIX/etc/apt/sources.list.d/cctools.list
+
<code><nowiki>echo "deb https://cctools.info termux cctools" > $PREFIX/etc/apt/sources.list.d/cctools.list</nowiki></code>
  
 
Update packages lists:
 
Update packages lists:
  
apt update
+
<code>apt update</code>
  
Install package gcc-cctools:
+
Install package gcc-cctools(it will install binutils-cctools automatically):
  
apt install gcc-cctools
+
<code>apt install gcc-cctools</code>
  
 
Install NDK package for your android architecture, use latest one, for example for aarch64:
 
Install NDK package for your android architecture, use latest one, for example for aarch64:
  
apt install ndk-sysroot-cctools-api-24-aarch64
+
<code>apt install ndk-sysroot-cctools-api-26-aarch64</code>
 +
 
 +
To show all ndk sysroots for aarch64:
 +
 
 +
<code>apt search ndk-sysroot-cctools | grep aarch64</code>
  
 
Add directory with new compilers to PATH:
 
Add directory with new compilers to PATH:
  
export PATH=$PREFIX/../cctools-toolchain/bin:$PATH
+
<code>export PATH=$PREFIX/../cctools-toolchain/bin:$PATH</code>
  
 
Check it:
 
Check it:
  
gcc -v
+
<code>gcc -v</code>

Revision as of 07:25, 31 August 2020

CCTools packages for termux

Current gcc version: 10.2.0

Current binutils version: 2.34

Add cctools packages public key:

wget -O - https://cctools.info/public.key | apt-key add -

Create new repository list:

echo "deb https://cctools.info termux cctools" > $PREFIX/etc/apt/sources.list.d/cctools.list

Update packages lists:

apt update

Install package gcc-cctools(it will install binutils-cctools automatically):

apt install gcc-cctools

Install NDK package for your android architecture, use latest one, for example for aarch64:

apt install ndk-sysroot-cctools-api-26-aarch64

To show all ndk sysroots for aarch64:

apt search ndk-sysroot-cctools | grep aarch64

Add directory with new compilers to PATH:

export PATH=$PREFIX/../cctools-toolchain/bin:$PATH

Check it:

gcc -v

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox