Hello. I've been given a private source of a final OS4 version of software which includes the main program and support libraries. Although it once compiled on OS4 the final version I received needed many changes to makefiles and missing or incomplete headers files just to compile. After some weeks work I finally got to the point where I could compile the main code but am now stuck in a support library.
I am trying to load an image 128x128 with an alpha channel ilbm format made with sketchblock into a piece of code using datatypes library. I have never done anything before with datatypes, and thus I am at lack of knowledge of how to make it look and work properly. The problem is, if I load an image without alpha channel, it is displayed correctly, but the alpha image I want is displayed with solid alpha and just as a black box. The image is a black to white gradient with alpha corresponding, so that could be the issue here.
The static SDL_mixer library seems to have built with a bunch of other static libraries. It looks like that in order to use the SDL_mixer functions I need to link SDL_mixer library and all those other libraries to my program.
The question is what are those other libraries?
I'm using CodeBench and I've added the following linker objects to my project:
Some libraries are still missing from the list because I get a lot of linker errors.
currently I do all my AOS-coding in a (hopefully) AOS3.x compatible way. Thus I use OpenLibrary() and CloseLibrary() in order to make use of Lib-Functions for example from asl.library, graphics.library, intuition.library, gadtools.library, diskfont.library, layers.library and so on. I'm also always set __USE_INLINE__ as a Compiler flag (-D for GCC). I don't use IFaces or sth. else special in AOS4 at all.
Does anyone have a working example of how to create a library with CreateLibraryTags?? I have successfully created two exec Interfaces (with MakeInterfaceTags), but when I call CreateLibraryTags, I get a NULL pointer no matter how hard I try... Help?
As you may know I'm working on wxWidgets for Amiga. It's a C++ lib and can get pretty big, so making it shared is clearly desirable. OS 4 shared objects should be straightforward enough, but I'm wondering about normal resident libraries:
Has anyone done a resident C++ library before?
I'd be interested in experiences and sample code if possible. Both for ppc and m68k.
Are people using C++ on Amiga to any extent btw? Or is it still mainly C and other languages?
Is there a maximum string length for newlib stdio functions? I am getting weird crashes of db101 possibly because of strings of about 12000 bytes in the stabs section... The question is: Is there a limit? How can one know this limit? What is the best workaround for strings longer than this limit?