10 December 2017, 16:42 | #181 |
Registered User
Join Date: Dec 2015
Location: USA
Posts: 2,902
|
There is a reference to AslBase in libauto.a under the MorphOS host but adding -lauto doesn't seem to help.
|
10 December 2017, 16:45 | #182 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
11 December 2017, 00:33 | #183 |
Registered User
Join Date: Dec 2015
Location: USA
Posts: 2,902
|
Yeah I've set -noixemul, to no effect.
I transferred everything over to the A4000 in case somehow it was grabbing things from the Morphos osinclude or something, it's basically the same. Here's where I'm at now: Code:
AslRequester.o(.text+0x3f4): undefined reference to `AllocAslRequestTags(unsigned long, unsigned long,...)' AslRequester.o(.text+0x40c): undefined reference to `AslRequestTags(void *, unsigned long,...)' Also this is what I changed which has not been cleaned up yet: Code:
#include "AslRequester.h" #include <stdio.h> #ifdef WARPOS #pragma pack(2) #endif #ifndef WARPOS #include <proto/exec.h> #include <proto/asl.h> #include <proto/dos.h> #endif struct AslIFace *IAsl; #define MAX_DOS_PATH 260 #ifdef WARPOS #include <proto/exec.h> #include <proto/dos.h> #include <proto/powerpc.h> #include <proto/asl.h> extern struct Library *AslBase; #pragma pack() #endif Last edited by grelbfarlk; 11 December 2017 at 01:36. |
11 December 2017, 02:27 | #184 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
|
|
11 December 2017, 08:12 | #185 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,994
|
You can't use 68k libs as the PPC can't jump to 68k code directly. Can't use MorphOS libs due to ABI and API differences.
You have a correct proto/asl.h for WarpOS? Steve House |
11 December 2017, 22:47 | #186 | |
Registered User
Join Date: Dec 2015
Location: USA
Posts: 2,902
|
Quote:
Ok Steve fixed it. struct AslIFace *IAsl =; struct Library *AslBase = NULL; Assuming because we don't have libauto this was necessary. Now just some missing functions which I'll try to piece together tonight which are: expf cosf sinf Last edited by grelbfarlk; 11 December 2017 at 23:23. |
|
12 December 2017, 00:29 | #187 |
Registered User
Join Date: Dec 2015
Location: USA
Posts: 2,902
|
Ok... so it compiled. I do not agree with the color choices in your program.
|
12 December 2017, 02:23 | #188 |
Registered User
Join Date: Dec 2015
Location: USA
Posts: 2,902
|
Looks correct on a BE screen. Doesn't seem to want to go fullscreen. I guess it's using the SDL audio driver instead of the AHI one, not sure which would be better. Sound is kinda bad. Looks like it's using 16-bit audio by default. File requester doesn't work when I hit open it says failed to allocate file requestor.
|
12 December 2017, 09:12 | #189 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
You need to change audio settings in the program under config. It by default tries to play 48.000Hz playback and minimal buffer. Changing it to 44.100Hz should probably make it better. The file requester is Asl, which is part of AmigaOS api, so you did not fix that part. :P Atleast it's getting closer to working as it should. At the moment it's hardcoded to run in 16bit graphics mode, which could be the reason for the weird graphics. You can change that inside src/tracker/sdl-1.2/CGX_main.cpp in the main function. |
|
12 December 2017, 09:41 | #190 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Hmm, I'm curious if I could use the MorphOS cross-toolchain to build WarpOS binaries. Like if I get the proper includes and libs for WarpOS, wouldn't it technically work? Or does the compiler itself do some 68k-PPC mixing when compiling? Maybe worth a try?
|
12 December 2017, 11:30 | #191 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,994
|
See gcc-wos4mos on Aminet.
|
12 December 2017, 11:32 | #192 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
|
12 December 2017, 13:06 | #193 | |
Registered User
Join Date: Dec 2015
Location: USA
Posts: 2,902
|
Quote:
If I force a BE screenmode the colors are correct. As Hedeon says below, get his package from Aminet and drop it in gg: Add -warpup to CFLAGS and LDFLAGS and that's pretty much it. |
|
12 December 2017, 13:09 | #194 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
Have you tried compiling this for WarpOS?: https://github.com/AmigaPorts/libSDL12 It's SDL-1.2.15 for Amiga platforms. I'm going to mess with Hedeon's package and see if I can set up a Linux cross-compiler with it. |
|
12 December 2017, 13:31 | #195 | |
Registered User
Join Date: Dec 2015
Location: USA
Posts: 2,902
|
Quote:
|
|
12 December 2017, 20:40 | #196 | |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
|
|
13 December 2017, 02:28 | #197 | |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,994
|
Quote:
Elf2exe2 needs warpcollect to convert output of gcc to input for elf2exe2. Maybe elf2hunk doesn't need that and can be called directly. Anyway, see specs file. Too bad they removed that functionality with gcc 4.6 I think. |
|
13 December 2017, 02:42 | #198 | ||
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Quote:
I found this here: Quote:
Code:
[marlon@hastur]:~/tmp/MilkyTracker/morphos-cross-toolchain$ ppc-morphos-gcc -v Using built-in specs. COLLECT_GCC=ppc-morphos-gcc COLLECT_LTO_WRAPPER=/opt/ppc-morphos/bin/../lib/gcc-lib/ppc-morphos/5.3.0/lto-wrapper Target: ppc-morphos Configured with: ../gcc-5.3.0/configure --target=ppc-morphos --enable-languages=c,c++,objc --prefix=/gg --with-sysroot=/gg --libexecdir=/gg/lib --oldincludedir=/gg/include --program-prefix=ppc-morphos- --program-suffix=-5 --enable-threads=morphos --disable-bootstrap --with-pkgversion=GCC/MorphOS --with-bugurl=http://www.morphos-team.net/ --enable-version-specific-runtime-libs --with-gmp=/home/marlon/tmp/MilkyTracker/morphos/gcc5/libs --with-mpfr=/home/marlon/tmp/MilkyTracker/morphos/gcc5/libs --with-mpc=../libs Thread model: morphos gcc version 5.3.0 (GCC/MorphOS) [marlon@hastur]:~/tmp/MilkyTracker/morphos-cross-toolchain/WarpOS$ ppc-morphos-gcc --specs=GG/lib/gcc-lib/ppc-morphos/4.4.5/specs -warpup test.cpp ppc-morphos-gcc: error trying to exec 'warpcollect': execvp: No such file or directory. Last edited by Marlon_; 13 December 2017 at 02:56. |
||
13 December 2017, 03:06 | #199 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
So, yeah, specs files still work:
Code:
[marlon@hastur]:~/tmp/MilkyTracker/morphos-cross-toolchain/WarpOS$ ppc-morphos-gcc -v -warpup test.cpp Reading specs from /opt/ppc-morphos/bin/../lib/gcc-lib/ppc-morphos/5.3.0/specs COLLECT_GCC=ppc-morphos-gcc COLLECT_LTO_WRAPPER=/opt/ppc-morphos/bin/../lib/gcc-lib/ppc-morphos/5.3.0/lto-wrapper ppc-morphos-gcc: error: unrecognized command line option ‘-warpup’ Target: ppc-morphos Configured with: ../gcc-5.3.0/configure --target=ppc-morphos --enable-languages=c,c++,objc --prefix=/gg --with-sysroot=/gg --libexecdir=/gg/lib --oldincludedir=/gg/include --program-prefix=ppc-morphos- --program-suffix=-5 --enable-threads=morphos --disable-bootstrap --with-pkgversion=GCC/MorphOS --with-bugurl=http://www.morphos-team.net/ --enable-version-specific-runtime-libs --with-gmp=/home/marlon/tmp/MilkyTracker/morphos/gcc5/libs --with-mpfr=/home/marlon/tmp/MilkyTracker/morphos/gcc5/libs --with-mpc=../libs Thread model: morphos gcc driver version 5.3.0 (GCC/MorphOS) executing gcc version 4.4.5 |
13 December 2017, 04:00 | #200 |
AmigaDev.com
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
|
Elf2exe2 usage:
./elf2exe2 file.elf file.hunk Exactly the same way elf2hunk works. So it should work just the same with warpcollect. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sdl-1.2.15 | Marlon_ | Coders. C/C++ | 40 | 13 March 2018 14:43 |
UAE for WarpOS 0.8.12 | grelbfarlk | request.Apps | 0 | 23 November 2016 01:14 |
WarpOS Programming Help? | esc | support.Other | 8 | 21 October 2015 10:37 |
WinUAE w/SDL | mangamuscle | request.UAE Wishlist | 8 | 31 January 2007 11:41 |
What do you know about Amiga SDL? | Tolismlf | Amiga scene | 6 | 15 November 2004 18:54 |
|
|