Cxxdroid -> no sdl_image ?

Hello my name is Patrick
All is hobby…and i have a big Problem:


In the past i use the Android Compiler: c4droid + sdl2_plugin and all was fine, code works, you can
Export as apk, too… and so on…

Now they delete this app from playstore
So you muss have an another compiler … :frowning:


→ i found this cxxdroid because it has an sdl2 support :grinning:


I buy this app
I set up SDL2 (install)
And start

Problem:

blackscreen with Sdl_Rederer AND sdl_blitsurface

→ if i change linker with -lSDL2image
Not found…

→ if i remove it, i muss install the app new !!!
because than comes: error in qlang9 no file or dir
in " "


I need realy help


→ first i make a new folder in emulated/0/documents/test
→ copy image.jpg and image.bmp inside

→ than i open cxxdroid, press new:
→ Copy a simple sdl2-image exsample code
inside…

→ save in emulated/0/documents/test
As: test.cxx AND THAN create as project select
same directory , save as “main.cpp”


Run…
Code works, but blackscreen äh now bluescreen :laughing:

*i use simple bmp load!!
not img_load from image.h cause dosnt work too -.-

#include <stdio.h>
#include <SDL2/SDL.h>

int main(int argc, char *argv[])
{
 SDL_Init(SDL_INIT_EVERYTHING);

SDL_Window *window =   SDL_CreateWindow("Hello SDL2", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, 0);
	
 SDL_Surface *image1 =  
 SDL_LoadBMP("Image.bmp");

 SDL_Surface *screenSurface =   
 SDL_GetWindowSurface(window);
	
 
 SDL_FillRect(screenSurface, NULL, 
  SDL_MapRGB(screenSurface->format, 0x00, 0xFF, 0xFF));

 // SDL_BlitSurface(image1, NULL, 
 // screenSurface, NULL);
	
	SDL_UpdateWindowSurface(window);
	SDL_Delay(5000);
	
	SDL_DestroyWindow(window);
	SDL_FreeSurface(image1);
	SDL_Quit();
	
	return 0;
}