Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
134 user(s) are online (104 user(s) are browsing Forums)

Members: 1
Guests: 133

Georg, more...

Headlines

 
  Register To Post  

« 1 2 (3)
Re: Open Source cross-platform game engine
Home away from home
Home away from home


See User information
@Sinan
Quote:

How do I make the library for SDL2 ?

To build irrliht for SDL2 you need a bit change include/IrrCompileConfig.h. Find at the end where amigaos4 ifdefs placed and replace this:

#define _IRR_COMPILE_WITH_SDL_DEVICE_


by this:

#undef _IRR_COMPILE_WITH_SDL_DEVICE_
#define _IRR_COMPILE_WITH_SDL2_DEVICE_


And then rebuild it usually.


I do not 100% remember if SDL2 version is all good and fine, as it was experemental more or less, and everything irrlicht based is still was and are SDL1 based because official irrlicht devs still on SDL1, and that SDL2 addon is my own stuff for testing/future stuff. But that you can test to build SDL2 version of irrlicht and few examples for SDL2 (examples build just like you say : make -f Makefile.amigaos4 SDL2=1)


Quote:

For Clib2 version, do I add -mcrt=clib2 in the makefile.amigaos4 ?


Yes, and if i remember right, one function need to be commented out as it present in clib2 itself, but when you will compile you will see which one/where.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Open Source cross-platform game engine
Not too shy to talk
Not too shy to talk


See User information
@kas1e

As you said, it doesn't compile with SDL2.

Newlib / SDL1 compile is ok

Clib2 / SDL1 compile, I get this error

CIrrDeviceSDL.cppIn constructor ‘irr::CIrrDeviceSDL::CIrrDeviceSDL(const irr::SIrrlichtCreationParameters&):
CIrrDeviceSDL.cpp:89:9error‘putenv’ was not declared in this scopedid you mean ‘setenv’?
   
89 |         SDL_putenv("SDL_VIDEODRIVER=OS4");
      |         ^~~~~~~~~~


I managed to compile with commenting SDL_putenv.

I hope this is the correct way...
Can you share your irrlicht clib2 so that I can compare ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Open Source cross-platform game engine
Just popping in
Just popping in


See User information
I put it here since I guess this is the best place:

Janne Peräaho has published first information about his "Amiga Game Framework" and talked about it with Amiga-News.de:

https://www.amiga-news.de/en/news/AN-2023-08-00036-EN.html

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 550 / AmigaOS 4.1 Final Edition / MorphOS 3.17
Amiga1200 / Blizzard 1230 IV PiStorm32-lite / AmigaOS 3.9
Go to top

  Register To Post
« 1 2 (3)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project