A lot of what I was thinking, why this would be so simple, is that a lot of old SDL programs are compiled with GCC 2.95.3, including what hopefully might come out of this the version of ScummVM 0.11.1 for OS4, but compiled for WarpOS. Maybe just maybe if we get a working shared lib for SDL someone takes up the Dosbox challenge too, or a few other interesting apps for WarpOS.
And uh the SDL TV commercials say just use SDL, simple adjustments to makefiles and the programs work, 100% money back guarantee. |
-warpup invokes warpcollect and elf2exe2 i think.
|
A very simple program like:
main(); SetExcMMU(); return(); Returns with unknown symbol SetExcMMU. I guess we are missing some include or lib |
Quote:
Quote:
"unreferenced ...." is missing include or declaration. #1) or the other way around. |
compiling that SetExcMMU program with GCC from StormC4 with amiga603.lib works.
|
Was missing powerpc/powerpc_protos.h and powerpc/warpup_macros.h
Now that small program compiles correctly with GCC 2.95.3.... |
I did a 'grep -ir amiga603 *' in the stormc4 source code, and found it
only as a dependency in the project files. so they are cheating with the gcc license, not providing everything? even if we can build the gcc/g++ from that source, I think we need those link libs too, right? |
Quote:
Damnit-*booting up a4000* |
I got the libSDL_wos compiled like Gerbilfark. When I link the SDL test files to it with the
-lSDL_wos parameter after the -o <targetfile> it finds the SDL functions. However, within those SDL functions are AmigaOS calls. These functions are not compiled correctly and result in undefined symbols like AllocMem. So I did a small program again with OpenLibrary() and compiled it with ppc-amigaos-gcc but no matter what include I add (clib/inlines/proto) I cannot do an AmigaOS call from a WarpOS program build with gcc (or g++). What am I missing? |
Say what do I need to include to get something like:
int main() { Enable(); return(0); } Going for WarpOS on gcc. |
@Hedeon: build it and look for the linker messages/errors.
@grelbfarlk: yep, give it a try, maybe it isn't that bad. |
Quote:
Somewhere needs to be defined how the PPC can context-switch to AmigaOS 68K functions...but I don't know where. vbcc has a .lib for AmigaOS calls by the PPC, for example. StormC too. So what does gcc need is the question... |
Quote:
but look what's provided in the link lib folder(s). there was a start.o and end.o in grelbfarlk toolchain. which got added as 1st and last object in the object link chain. maybe something like that you have there too. and do a 'grep Enable lib/*' to find the lib which hold that function. maybe better results with nm, ar and objdump on those link libs. try those options with gcc/g++: Code:
-dumpspecs Display all of the built in spec strings |
while looking at the stormc4 src code (again), searching for noixemul, I found
Code:
#define SYSTEM_INCLUDE_DIR "/gg/os-include" did they use gg == geekgadget's stuff? if so, we can try to build that gcc/g++ and use the things provided with the already available link libs from grelbfarlk's toolchain. #1) gcc/NEWS lists 2.8.1 as highest version number. not entirely sure, but is it that version of stormc4 ? @Hedeon: what says: gcc -dumpversion ? |
So what happened is that somewhere along the way I botched my ppc-amigaos-gcc install. I had compiled a few WarpOS Q2 mods about a year ago which I can't compile any more, just get those undefined symbols. Not sure what I broke and when. Comparing to my backup a year ago... that's in an even worse state.
|
oh, yes, I know that.
you want build something usefull, but instead you have to fight with the tools. that's sort of frustrating ... :) |
Quote:
|
tell them , they are now in amigaland, where things are slow and offten weird :spin
|
It finally compiled correctly. Also the sdl examples compiled. Not sure if they are good examples as they are missing some resources.
Both open a screen and in example 2 a 640x480 window is opened and closed again after a delay. In the end, the gcc/g++ install was botched. Also had to add some stuff here and there. Victory at last :-D |
Quote:
Quote:
|
All times are GMT +2. The time now is 22:34. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.