Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
179 user(s) are online (117 user(s) are browsing Forums)

Members: 0
Guests: 179

more...

Headlines

Forum Index


Board index » All Posts (SinanSam460)




Re: Porting astromenace to AmigaOS4
Not too shy to talk
Not too shy to talk


@beworld

Ok..thank you..

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Porting astromenace to AmigaOS4
Not too shy to talk
Not too shy to talk


@beworld

So the version @ https://www.morphos-storage.net/?id=1950214 is another fork ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Porting astromenace to AmigaOS4
Not too shy to talk
Not too shy to talk


@all

BSzili and Beworld has ported Astromenace to MOS.
https://github.com/BeWorld2018/astromenace/tree/MorphOS

Now I have cloned MorphOS branch and trying to build on CMake
(I am using amigagccondocker on Ubuntu 22)

First I did this:

cmake -DCMAKE_SYSTEM_NAME=GENERIC -DUSE_SDL2=-DCMAKE_SYSTEM_VERSION=-DLIBCXX_ENABLE_THREADS=ON -DCMAKE_C_COMPILER="/opt/ppc-amigaos/bin/ppc-amigaos-gcc" -DCMAKE_CXX_COMPILER="/opt/ppc-amigaos/bin/ppc-amigaos-g++" -DCMAKE_LINKER="/opt/ppc-amigaos/bin/ppc-amigaos-ld" -DCMAKE_AR="/opt/ppc-amigaos/bin/ppc-amigaos-ar" -DCMAKE_RANLIB="/opt/ppc-amigaos/bin/ppc-amigaos-ranlib" -DCMAKE_FIND_ROOT_PATH="/opt/ppc-amigaos/ppc-amigaos/" -DSDL2_INCLUDE_DIR="/opt/sdk/local/newlib/include/SDL2/" -DSDL2_LIBRARY="/opt/sdk/local/newlib/lib/libSDL2.a" -DOPENGL_INCLUDE_DIR="/opt/sdk/local/newlib/include/EGL/" -DOPENGL_opengl_LIBRARY="/opt/sdk/local/newlib/lib/libGL.a" -DOPENGL_glx_LIBRARY="/opt/sdk/local/newlib/lib/libGL.a" -DOPENAL_INCLUDE_DIR="/opt/sdk/local/newlib/include/AL/" -DOPENAL_LIBRARY="/opt/sdk/local/newlib/lib/libopenal.a" -DALUT_LIBRARY="/opt/sdk/local/newlib/lib/libalut.a" -DALUT_INCLUDE_DIR="/opt/sdk/local/newlib/include/AL/" -DOGG_LIBRARY="/opt/sdk/local/newlib/lib/libogg.a" -DOGG_INCLUDE_DIR="/opt/sdk/local/common/include/ogg/" -DVORBIS_LIBRARY="/opt/sdk/local/newlib/lib/libvorbis.a" -DVORBIS_INCLUDE_DIR="/opt/sdk/local/common/include/vorbis/" -DVORBISFILE_LIBRARY="/opt/sdk/local/newlib/lib/libvorbisfile.a" -DVORBISFILE_INCLUDE_DIR="/opt/sdk/local/common/include/vorbis/" -DFREETYPE_LIBRARY="/opt/sdk/local/newlib/lib/freetype.a" -DFREETYPE_INCLUDE_DIRS="/opt/sdk/local/common/include/freetype/" ..
System is unknown to cmakecreate:
Platform/AMIGAOS4 to use this systemplease post your config file on discourse.cmake.org so it can be added to cmake
Your CMakeCache
.txt file was copied to CopyOfCMakeCache.txtPlease post that file on discourse.cmake.org.
-- 
Found alut: /opt/sdk/local/newlib/lib/libalut.a
-- Found alut headers: /opt/sdk/local/newlib/include/AL
-- Found ogg: /opt/sdk/local/newlib/lib/libogg.a
-- Found ogg headers: /opt/sdk/local/common/include/ogg
-- Found vorbis: /opt/sdk/local/newlib/lib/libvorbis.a
-- Found vorbisfile: /opt/sdk/local/newlib/lib/libvorbisfile.a
-- Found vorbisfile headers: /opt/sdk/local/common/include/vorbis
-- Found freetype2 headers: /opt/sdk/local/common/include/freetype/
-- 
CMAKE_CXX_FLAGS:  -std=c++11 -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wshadow -Winit-self -Wcast-align -Winline -Wunreachable-code -Wmissing-include-dirs -Wmain -Wextra -Wall -Weffc++ -Wno-attributes -Wzero-as-null-pointer-constant
Game data dir
: /opt/Desktop/astromenace/gamedata/
-- 
Configuring done
-- Generating done
-- Build files have been written to: /opt/Desktop/astromenace/build


When I try "make":

root@6d0fe1651822:/opt/Desktop/astromenace/build# make
[  0%] Building CXX object CMakeFiles/astromenace.dir/src/assets/audio.cpp.obj
cc1plus
warning: /opt/sdk/local/newlib/include/SDL2No such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/newlib/include/EGLNo such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/newlib/include/ALNo such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/common/include/oggNo such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/common/include/vorbisNo such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/common/include/freetypeNo such file or directory [-Wmissing-include-dirs]
[  
1%] Building CXX object CMakeFiles/astromenace.dir/src/assets/loading.cpp.obj
cc1plus
warning: /opt/sdk/local/newlib/include/SDL2No such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/newlib/include/EGLNo such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/newlib/include/ALNo such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/common/include/oggNo such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/common/include/vorbisNo such file or directory [-Wmissing-include-dirs]
cc1pluswarning: /opt/sdk/local/common/include/freetypeNo such file or directory [-Wmissing-include-di


Why does it use cc1plus instead of "ppc-amigaos-g++" ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: New EGL_Wrap library is OUT!!! with support GLEW and shaders...
Not too shy to talk
Not too shy to talk


@Hunoppc

BeWorld has released MorphOS port of Astromenace

And he uploaded his fixes on Github.

https://github.com/BeWorld2018/astromenace/tree/MorphOS

I attempted to build this for AmigaOS4 with my own makefile. But it fails with ITimer function in egl_wrap while linking.

Maybe my makefile was wrong.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@HunoPPC

Are you still working on Quake 4 ? :)

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk



Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@HunoPPC

For educational purposes, it would be great if you can share your changes when it is finished.

Thanks.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@HunoPPC

How do you compile with pure-shaders ?

Are you using your new beta egl_wrapper ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@kas1e

Probably it is debug version. I think I forgot to disable it.
I will try a recompile tonight.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: Trouble building GCC 11 cross-compiler on Ubuntu
Not too shy to talk
Not too shy to talk


@Hans

What about using Walkero's amigagccondocker Ubuntu ?

https://hub.docker.com/r/walkero/amigagccondocker

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@HunoPPC

I have compiled using your libraries and with my change in platform_sdl.c and it seems to be working on Sam460 (not yet tested on X5000)

Resized Image


Executable link for testing:

https://we.tl/t-dN9ANCsfOR

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@jabirulo

Can you share what you added in object.h ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@kas1e

Thanks for explanation.

Can this be the cause of why some textures aren't displayed ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@samo79

Game is already running on Linux Power PC and MorphOS:

https://github.com/phoboslab/wipeout-rewrite/issues/56

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@HunoPPC

I also use gcc11. (Cross compiling on Ubuntu, amigagccondocker Docker image).

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@HunoPPC

From my experience when you change following line, it will work on X5000 and Sam460.

line 366 as follows (in platform_sdl.c)

sdl_path_userdata = SDL_GetPrefPath("", "wipeout");

Btw:
How does it work on X1000 when it doesn't work on Sam460/X5000 ?
Altivec ?

And does it work with correct colors and all textures ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@kas1e

Yes I am using data files:

https://phoboslab.org/files/wipeout-data-v01.zip

I think I tried resetting EGL_Wrapper, but I will try again..

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@kas1e

Everything is up-to-date at the moment.
I am compiling with newlib. Compiling with clib2 makes no changes.

I am using walkero's docker image (amigagccondocker).

I will zip sources of 3 different version and share you the link, so you can check where I am doing wrong...

Thank you.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@all

in render_gl_legacy.c

I currently compile with this:

//Amigaos
#elif defined(__amigaos4__)
#include "SDL2/SDL.h"
#include "SDL2/SDL_opengl.h"

Is this correct for if the game is using OGLES2 ?

Probably I am mixing things but;

If I change it like follows:

//Amigaos
#elif defined(__amigaos4__)
#include "SDL2/SDL.h"
#include "SDL2/SDL_opengles2.h"

I get following error:
src/render_gl_legacy.c:262:16: error: ‘GL_MODELVIEW’ undeclared (first use in this function)
262 | glMatrixMode(GL_MODELVIEW);
| ^~~~~~~~~~~~
src/render_gl_legacy.c: In function ‘render_set_view_2d’:
src/render_gl_legacy.c:274:16: error: ‘GL_PROJECTION’ undeclared (first use in this function)
274 | glMatrixMode(GL_PROJECTION);
| ^~~~~~~~~~~~~
src/render_gl_legacy.c:276:16: error: ‘GL_MODELVIEW’ undeclared (first use in this function)
276 | glMatrixMode(GL_MODELVIEW);
| ^~~~~~~~~~~~

I guess I am missing some basic knowledge :(

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top


Re: have you seen this?
Not too shy to talk
Not too shy to talk


@jabirulo

I have 3 versions at the moment.

To get rid of alignment error:

I had to change line 366 as follows (in platform_sdl.c)

sdl_path_userdata = SDL_GetPrefPath("", "wipeout");

I can compile smarkusg's version without any other changes.

Game runs but

-No Texture on ships
-No transparency on trees.
-No sky texture
-No fonts

Second:
For BeWorld's version, I had to change __MORPHOS__ to __AMIGAOS4__ in and make similar changes..Same problems.

Third:
Based on mrneo240 and applying BeWorld changes one by one.


In all 3 version result is same.

-No Texture on ships
-No transparency on trees.
-No sky texture
-No fonts

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top



TopTop
« 1 (2) 3 4 5 ... 22 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project