A new issue popped up when testing accelerated (OpenGL) renderer. It cannot open all necessary functions so it fails. glBlendFuncSeparate is the first failure. I am not sure at the moment what else might be missing - list is here (used functions are the ones with SDL_PROC macro):
I'm having trouble building SDL2 (svn r63). When linking the .so:
build/.libs/SDL_cpuinfo.o:(.got2+0x14): undefined reference to `IExec' build/.libs/SDL_os4events.o:(.got2+0x0): undefined reference to `IExec' build/.libs/SDL_os4framebuffer.o:(.got2+0x0): undefined reference to `IExec' build/.libs/SDL_os4messagebox.o:(.got2+0x0): undefined reference to `IExec' build/.libs/SDL_os4modes.o:(.got2+0x0): undefined reference to `IExec' build/.libs/SDL_os4mouse.o:(.got2+0x0): more undefined references to `IExec' follow /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub_iconv_open.o): In function `iconv_open': (.text+0xa): undefined reference to `INewlib' /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub_iconv_open.o): In function `iconv_open': (.text+0x26): undefined reference to `INewlib' /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub___NewlibCall.o): In function `__NewlibCall': (.text+0x2): undefined reference to `INewlib' /usr/local/amiga/ppc-amigaos/SDK/newlib/lib/libc.a(stub___NewlibCall.o): In function `__NewlibCall': (.text+0x6): undefined reference to `INewlib'
Any ideas? I'm using gcc 5.3.0 in Cygwin, and base/newlib/clib from SDK 53.30
I'll try again with an earlier compiler (just stock non-cross SDK) later on.
Edited by MickJT on 2016/2/24 15:28:45 Edited by MickJT on 2016/2/24 15:36:55
With GCC4.something, I can't build .so without modifying the makefile. I remove -no-undefined for libtool _and_ gcc and then I get the lib. I don't know why these switches exist in buildsystem, but also SDL1 has -no-undefined switch for libtool at least:
Looks like we can use just glBlendMode for "none" and "blend", while "add" and "mod" can be a little bit funky.
EDIT: forgot the issue of NPOT textures. This can be a showstopper for MiniGL renderer. EDIT2: damn, it's good to be wrong. Looks like internally SDL2 uses POT textures.
I removed -no-undefined in a few places in the Makefile, and was able to build the .so and .a
I then compiled SDL2_image. Both the static and shared versions worked (note that there are source code changes that are needed to build a functional .so of SDL_image).
I tested showimage on a .pcx image, and set the stack to 1000000. It freezes shortly after displaying the image, and the window cannot close.
If I had serial log, I might be able to help. At the moment I have hands full with the core lib so I'm not going to compile satellite libs this week...
Source code of showimage doesn't look buggy. It relies on implicit initialization and quitting of video system so it's a bit "lazy" though. But at least it calls SDL_Quit.
I've compiled the SDL2_Image previously and worked fine. Haven't tried a PCX, tho.
SDL2_TTF compiled too. SDL2_Mixer compiled removing the libmodplug option atm. It causes the SDL2_mixer compilation failure, cause it come from a previously wrong compilation (from SDL 1.2