Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
42 user(s) are online (23 user(s) are browsing Forums)

Members: 0
Guests: 42

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows

Subject: Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows
by AmigaBlitter on 2017/10/19 19:19:44

@stonecracker

I have prepared a simple script to auto install the environment.

https://drive.google.com/file/d/0B1kXS ... wM2hFcDA/view?usp=sharing

from the UWin home directory run:

chmod a+x amidev.sh

then run

sudo ./amidev.sh

Should do most of the work automatically.

reporting here the content of the file for completeness.
Any improvement is welcome.

cd $home
clear
echo ENTER YOUR SUDO PASSWORD:
sudo
sudo apt-get -y install bison
sudo apt-get -y install bzip2
sudo apt-get -y install flex
sudo apt-get -y install gcc
sudo apt-get -y install g++
sudo apt-get -y install git
sudo apt-get -y install git-svn
sudo apt-get -y install libgmp-dev
sudo apt-get -y install libmpc-dev
sudo apt-get -y install libmpfr-dev
sudo apt-get -y install lhasa
sudo apt-get -y install make
sudo apt-get -y install nano
sudo apt-get -y install python-minimal
sudo apt-get -y install python3
sudo apt-get -y install python3-dev
sudo apt-get -y install texinfo
sudo apt-get -y install unzip
sudo apt-get -y install zip
ln -s /usr/local/amiga/adtools-ppc-uwin64-20170623-404 /usr/local/amiga/adtools
export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools/bin
sed 'export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools/bin' ~/.bashrc
sudo mkdir /usr/local/amiga
sudo chown amidev:users /usr/local/amiga
sudo mkdir /usr/local/amiga/adtools
sudo chown amidev:users /usr/local/amiga/adtools
echo GCC VERSION
gcc -v
echo G++ VERSION
g++ -v
cd $home
git clone https://github.com/sba1/adtools.git
cd ~/adtools/gild
git submodule init
git submodule update
cd ~/adtools
gild list
gild clone
gild checkout binutils 2.23.2
gild checkout coreutils 5.2
gild checkout gcc 5
make -C native-build gcc-cross CROSS_PREFIX=/usr/local/amiga/adtools-ppc-uwin64-20170623-404
cd ~
ppc-amigaos-gcc -v

note: replace amidev with your own unix user name
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project