|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/8 20:43
#61 |
---|---|---|
Just popping in
![]() ![]() Joined:
2012/10/17 19:42 Posts: 88
|
Don't know if it has already been said, but it may be easier to install all this in a VM and provide a link to download it.
Kamelito |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/8 22:06
#62 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/1/26 21:48 From New Zealand
Posts: 2196
|
@MickJT
Well, you're more experienced than me in this stuff... That said, someone really needs to clarify the terminology and make sure that configure scripts stick to it. Because even what you said doesn't match the document you linked to 100%, which says: Quote: the machine you are building on (build), the machine that you are building for (host), and the machine that GCC will produce code for (target) and Quote: Specifying the host without specifying the build should be avoided, as configure may (and once did) assume that the host you specify is also the build, which may not be true. I've seen conflicting examples too. SOme use --target, others --host, and some set all three including this one for SDL2. Hans |
|
_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. https://keasigmadelta.com/ - more of my work |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/8 23:21
#63 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/4 23:15 Posts: 2145
|
@Hans
Quote:
Mick is wrong in this case, no disrespect intended, he tends to build libraries and apps where 'host' and 'target' are effectively the same thing. For a cross compiler they aren't, as that's actually the whole point. Quote:
If you are building a cross compiler for amigaos the target will stay fixed as ppc-amigaos, I'd say the build and host would usually be the same, unless you are attempting to cross compile the cross compiler!!! Quote:
It may not be true but would be a common case for build a cross compiler on the machine you intend to cross compile on. NB I haven't read the thread as a whole and the title does suggest this may be one case where all three are different... Quote:
There is no conflict there, SDL2 is library so it's host and target will always be the same and so the meaning of build, host and target in the above description are completely consistant with the example at the link you gave. |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/9 1:07
#64 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/1/26 21:48 From New Zealand
Posts: 2196
|
@broadblues
Thanks. In this case we're trying to help AmigaBlitter get SDL2 compiled on his cross-compiler setup. So your input is helpful. Hans |
|
_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. https://keasigmadelta.com/ - more of my work |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/9 11:19
#65 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 591
|
@stonecracker
Stonecracker , could you please shed some Light on what is happening here, why the wrong compiler is picked up? |
|
_________________
Retired |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/9 11:20
#66 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 591
|
@stonecracker
Stonecracker , could you please shed some Light on what is happening here, why the wrong compiler is picked up? |
|
_________________
Retired |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/9 14:57
#67 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2009/4/28 3:57 From Adelaide, Australia
Posts: 929
|
@broadblues
Eh, just going by what I've read (and my interpretation of it) and seen elsewhere. Thanks for clarifying things a bit. All I know is I have to use --host in order for the ppc-amigaos toolchain to be used. |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/10 2:35
#68 |
---|---|---|
Just popping in
![]() ![]() Joined:
2008/4/30 4:49 From UK
Posts: 170
|
@MickJT
Build is your (fast) system/compiler that gets files (do shopping). Host is system that can access builds files and prepares/builds the cross compiler. (chops the vegetables). Target system is system that access host/build files and compiles/builds the files into targets format. (cooks the food). Target is always your final machine eg PPC Amiga. Thats my basic understanding. |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/11 6:04
#69 |
---|---|---|
Just popping in
![]() ![]() Joined:
2017/8/8 20:17 From Canada
Posts: 43
|
Sorry folks. Been swamped, and will be some more, for remainder of the year.
I'll try to answer everyone's questions shortly. And, yes, building a download repo for all the pre-built binaries was always my intention. These posts are just to explain everything I learned for my own (and all future developers' sakes). |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/12 12:26
#70 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 591
|
@stonecracker
thank you. I hope to do some compilation's test soon. |
|
_________________
Retired |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/13 19:42
#71 |
---|---|---|
Just popping in
![]() ![]() Joined:
2017/8/8 20:17 From Canada
Posts: 43
|
I'm entirely unfamiliar with SDL.
If anyone can inform me what they're trying to compile/build, the sources for same (I just downloaded a couple of .lha's, one called SDL2_SDK_r177.lha and another SDL2_user_r177.lha. Not sure if that's even what I'm looking for. I don't even know what a "hello, world" looks like with this library/toolkit. If someone can provide that, too, so I can confirm things are working that'd be hugely helpful. Basically, I don't know anything about it, so I just need a starting point to see if I can get things to compile/build/Hello World. If I can, I'll report back on what I find. |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/14 8:13
#72 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 591
|
@stonecracker
Hello, you can try to configure and compile the SDL2 source itself. ./configure --prefix=/sdk/local/newlib --host=ppc-amigaos --disable-altivec then make install It's seems that in my case the compiler used is not the correct compiler. Can you suggest me some check to do, maybe some symbolic link? |
|
_________________
Retired |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/14 8:19
#73 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/1/26 21:48 From New Zealand
Posts: 2196
|
@AmigaBlitter
He needs the SDL2 source-code first (link). BTW, have you tried using --target instead of --host? Or, the SDL2 cross-compiling procedure described here? Hans |
|
_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. https://keasigmadelta.com/ - more of my work |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/14 13:13
#74 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 591
|
@Hans
Thank you for the link, Hans. Very interesting. I haven't tried yet using --target option. Btw, as i said in a previous post, one installation of the UWin environment worked fine. I used this installation to configure the SDL R188 and the configure report was OK. As for the math, for example, the summary reported no assembly math, just as i had specified using the flag --disable-altivec. The compilation of the SDL2 started OK, until the compiler hitted the Amiga SDK requirements (i used the version 53.24). For this reason i reinstalled everthing from scratch, trying to use the SDK 53.30. But since then, i never been able again to put cross compiler environment to work. Now, if i try to configure the SDL2, even specifying the --disable-altivec flag, i get in the summary that i have MMX, 3DNOW, SSE, SSE2 as math options. This is the first indication that the cross compiler is configured for x86 machine. The second indication that tell me that i have a wrong CC setup is that as soon as i start the make command for the SDL2, i get in reply -strict -align error. |
|
_________________
Retired |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/14 22:53
#75 |
---|---|---|
Home away from home
![]() ![]() Joined:
2007/1/26 21:48 From New Zealand
Posts: 2196
|
@AmigaBlitter
Quote:
I've been told that --host isn't guaranteed to do what you want (as in, has been known to choose the wrong compiler). Regardless, trying out --target can't take more than a few minutes. So just try it, and see if it works. The same goes for the other instructions I linked to. Hans |
|
_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. https://keasigmadelta.com/ - more of my work |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/14 23:24
#76 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/4 23:15 Posts: 2145
|
@AmigaBlitter
Did you look at the makefile generated? What does it set CC etc to? Try setting both --host and --target to ppc-amigaos configure should work out --build for itself on any sane system. |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/14 23:29
#77 |
---|---|---|
Home away from home
![]() ![]() Joined:
2006/12/4 23:15 Posts: 2145
|
@Hans
Quote:
Sorry, thought the thread was still about compiling the compiler, that's what I get for not reading the whole thread and jumping at the end. The example SDL config you linked too earlier is surely the way to do it then. or without variables ./configure --host=ppc-amigaos --target=ppc-amigaos configure should work out --build for itself on any sane system (assuming you intend to run the resulting make on the system you ran configure on) |
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/15 2:39
#78 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2009/4/28 3:57 From Adelaide, Australia
Posts: 929
|
I don't know if it's been mentioned yet, but SDL2 can't be compiled with SDK 53.24 which is what is installed by the adtools Makefiles. You need 53.30.
|
|
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/15 8:06
#79 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 591
|
@MickJT
"I don't know if it's been mentioned yet, but SDL2 can't be compiled with SDK 53.24 which is what is installed by the adtools Makefiles. You need 53.30." Yes, that's the reason why i burned out my (sigh) unique functional UWin installation, cause SDL2 needed the 53.30 version of the SDK. The first installation of the UWin worked fine and configured SDL2 ok, targeting ppc machines. The SDL2 compile started ok, but halted showing errors related to the SDK version. I think the problem is not related to SDL2 only. The problem is related to the UWin installation. The problem could be related to symlink and paths. I will post the EXPORT, PATH and SET outputs asap. |
|
_________________
Retired |
||
|
Re: Building Cross-Compiling adtools for Amiga OS4 PowerPC (ppc) with Cygwin/Bash on Ubuntu on Windows |
Posted on: 2017/11/15 18:12
#80 |
---|---|---|
Quite a regular
![]() ![]() Joined:
2006/11/22 17:57 From Italy, Rome
Posts: 591
|
@AmigaBlitter
PATH
amidev@DESKTOP-C279FRF:~/Software/Development/sdl2-amigaos4-code-199-trunk$ echo $PATH
EXPORT
amidev@DESKTOP-C279FRF:~/Software/Development/sdl2-amigaos4-code-199-trunk$ export
ENV
amidev@DESKTOP-C279FRF:~/Software/Development/sdl2-amigaos4-code-199-trunk$ env
SDL2 configure output:
amidev@DESKTOP-C279FRF:~/Software/Development/sdl2-amigaos4-code-199-trunk$ sudo ./configure --prefix=/sdk/local/newlib --host=ppc-amigaos --disable-altivec
Edited by AmigaBlitter on 2017/11/15 19:00:52
|
|
_________________
Retired |
||