Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
180 user(s) are online (98 user(s) are browsing Forums)

Members: 0
Guests: 180

more...

Headlines

Forum Index


Board index » All Posts (AmigaBlitter)




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


Thank you for the replies.

I think that the configure script and make are picking the wrong compiler.

Something went wrong during the UWin environment setup. I tried all my best but, i'm sure, i get lost somewhere during the initial configuration. As pe SDL2 packages, i'm sure it works correctly (hey, capehill is doing the magic here). I already correctly configured and (almost) compiled with my previous UWin installation. Now i'm trying to reinstall everything from scratch, following the correct steps.

Retired
Go to top


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


@stonecracker

Last time i succeded installing the Uwin environment, i was able to compile for AmigaOS. I tried to compile the SDL2 and the compilation was ok. Just the SDK 53_30 was needed.

Now i reinstalled the UWin environment with the SDK 53_30, following your instructions.

Btw, when i try to compile the SDL2, as soon as compilation starts, i get an error: can't find -strict -align (sort of).

I will post the correct error message asap.

Someone told me that the the correct compiler is not executed in this case.

Any hint?



Retired
Go to top


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


@stonecracker

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu

Is this correct?

Retired
Go to top


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


@stonecracker
amidev@AmigaOne:~/adtools$ ppc-amigaos-gcc -v
ppc-amigaos-gcc: command not found
amidev@AmigaOne:~/adtools$

I think that the error resides in the make command line and in a symbolic link

[fixed]


Edited by AmigaBlitter on 2017/11/1 17:07:31
Retired
Go to top


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


Sigh,

i reinstalled again from scratch, followed all the steps and again, it doesn't work

Retired
Go to top


Re: Using Visual Studio 2017 to Cross-Compile PowerPC Amiga OS4 Code via Cygwin-based adtools Toolchain
Quite a regular
Quite a regular


@stonecracker

Thank you for this isntructions too.

Btw, last time i used Visual Studio, the software was relatively a little package (1 DVD that i still have).

Now the entire Development System reached 150 GB!!!


Retired
Go to top


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


@stonecracker

Nothing to apologize.

The tutorial is great.

I even automated the process of installation thanks to your tips.

Moreover i re-opened my Linux Window (what a word's joke)

Retired
Go to top


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


@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

Retired
Go to top


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


@stonecracker

Thank you.

This is the output on my desktop (i have two setup)

amidev@DESKTOP-C279FRF:~$ ls -hal /usr/local/amiga
total 0
drwxr-xr-x 0 amidev users 512 Oct 16 20:21 .
drwxr-xr-x 0 root root 512 Oct 16 20:20 ..
drwxr-xr-x 0 amidev users 512 Oct 16 20:22 adtools
amidev@DESKTOP-C279FRF:~$ ls -hal /usr/local/amiga/adtools
total 0
drwxr-xr-x 0 amidev users 512 Oct 16 20:22 .
drwxr-xr-x 0 amidev users 512 Oct 16 20:21 ..
lrwxrwxrwx 1 root root 47 Oct 16 20:22 adtools-ppc-cyg64-20170623-404 -> /usr/local/amiga/adtools-ppc-cyg64-20170623-404
amidev@DESKTOP-C279FRF:~$ ls -hal /usr/local/amiga/adtools-ppc-uwin-20170623-404
ls: cannot access '/usr/local/amiga/adtools-ppc-uwin-20170623-404': No such file or directory
amidev@DESKTOP-C279FRF:~$

and this is from my laptop

amidev@AmigaOne:~$ ls -hal /usr/local/amiga
total 0
drwxr-xr-x 0 amidev users 512 Oct 18 21:04 .
drwxr-xr-x 0 root root 512 Oct 18 19:54 ..
drwxr-xr-x 0 amidev users 512 Oct 18 19:57 adtools
drwxrwxrwx 0 amidev amidev 512 Oct 18 22:08 adtools-ppc-uwin64-20170623-404
amidev@AmigaOne:~$ ls -hal /usr/local/amiga/adtools
total 0
drwxr-xr-x 0 amidev users 512 Oct 18 19:57 .
drwxr-xr-x 0 amidev users 512 Oct 18 21:04 ..
lrwxrwxrwx 1 root root 46 Oct 18 19:57 adtools-ppc-uwin-20170623-404 -> /usr/local/amiga/adtools-ppc-uwin-20170623-404
amidev@AmigaOne:~$ ls -hal /usr/local/amiga/adtools-ppc-uwin-20170623-404
ls: cannot access '/usr/local/amiga/adtools-ppc-uwin-20170623-404': No such file or directory
amidev@AmigaOne:~$


Perhaps this line in the first post:
ln -s /usr/local/amiga/adtools-ppc-cyg64-20170623-404 /usr/local/amiga/adtools

should be:

ln -s /usr/local/amiga/adtools/ppc-cyg64-20170623-404 /usr/local/amiga/adtools

Note the slash beetween "adtools" and "ppc-cyg64-20170623"

and the same for the UWin part, as follow

this line:
sudo ln -s /usr/local/amiga/adtools-ppc-uwin-20170623-404 /usr/local/amiga/adtools

should be:
sudo ln -s /usr/local/amiga/adtools/ppc-uwin-20170623-404 /usr/local/amiga/adtools

Just a guess.

If this is not correct, i will edit the post to avoid confusion



Edited by AmigaBlitter on 2017/10/19 17:52:54
Retired
Go to top


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


@stonecracker

Thank you stonecracker, you're doing a wonderful work here.

Any suggestion for this issue?

"The only strange thing i noticed is that looking at the directories i have in the /usr/local/amiga/, i see two main directories as follow:

1) adtools/adtools-ppc-uwin-20170623-404
2) adtools-ppc-uwin-20170623-404
"

which ppc-amigaos-gcc points to: 2) adtools-ppc-uwin-20170623-404


Retired
Go to top


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


@stonecracker
OK, done some tests now. Seems to work nicely, but found out that the SDK is not updated. Some compilations return error on new struct GraphicsIFace and so on...


Edited by AmigaBlitter on 2017/10/17 14:59:58
Retired
Go to top


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


@stonecracker

Thank you.

Retired
Go to top


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


@thread

could someone give me some hint on how to configure the Amiga SDL2 installation in the Uwin setup?

Which files should i copy and where exactly?

thank you in advance

Retired
Go to top


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


@stonecracker


It works now!

As DStastny pointed out:

"
export PATH=:$PATH:~/adtools/bin:/usr/local/amiga/adtools-ppc-uwin-20170623-404/bin

should be

export PATH=$PATH:~/adtools/bin:/usr/local/amiga/adtools-ppc-uwin-20170623-404/bin
"

The only strange thing i noticed is that looking at the directories i have in the /usr/local/amiga/, i see two main directories as follow:

1) adtools/adtools-ppc-uwin-20170623-404
2) adtools-ppc-uwin-20170623-404

now, the directories seems the same to me. Is this correct?

Now, as i asked previously, since i use SDL2 in my main Amiga, my SDK contains the SDL2 config and headers, as well as the SDL2 images headers, SDL2 Mixer headers and so on... should i copy these files in the UWin SDK installation?
Where exactly should i copy these files?

Thank you in advance


Edited by AmigaBlitter on 2017/10/16 15:30:28
Retired
Go to top


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


sigh, i get:

amidev@AmigaOne:~$ ls -hal /usr/local/amiga/adtools/bin
ls: cannot access '/usr/local/amiga/adtools/bin': No such file or directory

Retired
Go to top


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


@stonecracker

Yes, it is.


i checked all the steps, correcting the paths as suggested, but i still get: ppc-amigaos-gcc -v
ppc-amigaos-gcc: command not found


Edited by AmigaBlitter on 2017/10/12 13:20:10
Retired
Go to top


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


@DStastny

Thank you for the reply!

At the moment i'm focused to setup the cygwin part. Is the sudo apt-get install python-minimal related to cygwin?
I guess not, cause sudo isn't mentioned in the cygwin part and isn't even installed.

P.S.
i sent you a PM

regards
Davide C.



Edited by AmigaBlitter on 2017/10/11 11:25:20
Retired
Go to top


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


Could a handy soul give me a hand on this?

/me shows his cutiest face expression ever :P

Retired
Go to top


Re: Cross-Compiling for Amiga OS4 PPC from Cygwin / Bash on Ubuntu on Windows 10+
Quite a regular
Quite a regular


@AmigaBlitter

Moved a little forward. The error related to this line still:

"ln -s /usr/local/amiga/adtools-ppc-cyg64-20170623-404 /usr/local/amiga/adtools"


i typed in the line after packages installation and cygwin accept the line.

The test ppc-amigaos-gcc -v fails as follow:
-bash: ppc-amigaos-gcc: command not found

Retired
Go to top


Re: Cross-Compiling for Amiga OS4 PPC from Cygwin / Bash on Ubuntu on Windows 10+
Quite a regular
Quite a regular


@stonecracker

"ln -s /usr/local/amiga/adtools-ppc-cyg64-20170623-404 /usr/local/amiga/adtools"

this step fails, showing an error as follow:

"$ ln -s /usr/local/amiga/adtools-ppc-cyg64-20170623-404 /usr/local/amiga/adtools
ln: creazione del collegamento simbolico '/usr/local/amiga/adtools' non riuscita: No such file or directory"


This part doesn't work as expected:

"cd ~/adtools/gild

git submodule init
git submodule update

cd ~/adtools

gild list

Should show:

binutils 2.23.2
coreutils 5.2
gcc 4.9
gcc 5
gcc 6"

The command: "cd ~/adtools/gild" using the ~ doesn't work. If i remove the ~ the command works.

"gild list" doesn't work too. Show an error as follow:
-bash: gild: comando non trovato (command nof found)


Reading the https://github.com/sba1/adtools read me:

Should we perform the part in "Debian-based Linux distributions"?




Edited by AmigaBlitter on 2017/10/8 10:21:02
Edited by AmigaBlitter on 2017/10/8 10:23:24
Retired
Go to top



TopTop
« 1 2 3 4 (5) 6 7 8 ... 30 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project