Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
108 user(s) are online (72 user(s) are browsing Forums)

Members: 2
Guests: 106

rjd324, smarkusg, more...

Headlines

Forum Index


Board index » All Posts (SinanSam460)




Re: SDL2
Not too shy to talk
Not too shy to talk


@all

I know they are seperate, but would it be possible to have a complete SDL2 Developer Suite with SDL2_Mixer, SDL2_Image, e.t.c for both clib2 and newlib ?

I already compiled SDL_Mixer for clib2, but I am still having problems with Modplug, Mikmod .

It would be great if we can use the same libraries and SDK for SDL2 based ports ?

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


Re: WebKit based browser initiative
Not too shy to talk
Not too shy to talk


@walkero

Congrulations. It will be very exciting to monitor the progress :)

I guess the port will be clib2 based ?

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


Re: Porting Augustus (Caesar 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


@levellord

Thanks..that's good to hear

I have uploaded the new updated version to OS4Depot.net

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


Re: Porting Augustus (Caesar 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


@levellord

I looked at the sources and saw a definition
PLATFORM_USE_SOFTWARE_CURSOR

So, I have compiled augustus with this definition enabled, I have made no hacks or changes in other sources.

Can you share you save files ?

AmigaOS4 port which I have based on MorphOS port is older than the current version on Github


https://github.com/BeWorld2018/augustu ... ...Keriew:augustus:master

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


Re: Attemping FallOut2-Community Edition Port
Not too shy to talk
Not too shy to talk


@LiveForIt

I have unpacked .dat files and tried this way.It is not working either.

I am stuck at paths issue at the moment.

I asked for author's help, let's see if he will answer.

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


Re: AmigaOS 4 Monthly Roundup - September 2022
Not too shy to talk
Not too shy to talk


@AmigaOldskooler

Thank you :)

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


Re: MacOS PPC CroMag Rally game port
Not too shy to talk
Not too shy to talk


@afxgroup

I compiled a clib2 version.. There is not a fps counter in the game, but version feel the same on Sam460.

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


Re: Dungeon of Chess: simple chess on shaders
Not too shy to talk
Not too shy to talk


@kas1e

Nice :) Nice example to check and learn

Have you checked this ?

https://github.com/viewizard/astromenace

libSDL2 (ver 2.0.5+), libopenal (ver 1.0+), libalut (ver 1.0+), libogg (ver 1.1+), libvorbis (ver 1.1+), freetype (ver 2.1.6+)

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


Re: Attemping FallOut2-Community Edition Port
Not too shy to talk
Not too shy to talk


@kas1e

Yes copying the clib2 version of libSDL2.a and #define SDL_DYNAMIC_API 0 works.. Now it is compiled 100%

I guess now I have to fix paths and filenames..
Because when I check from Snoopy, it seems like datafiles are recognized as folders.

I guess paths are here :

https://github.com/alexbatalov/fallout ... in/src/platform_compat.cc

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


Attemping FallOut2-Community Edition Port
Not too shy to talk
Not too shy to talk


@all

I am attemping to compile Fallout 2 Community Edition Port.

https://github.com/alexbatalov/fallout2-ce

I get the following error at the end of compilation.

Any ideas ?

[100%] Linking CXX executable fallout2-ce
_deps
/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function `SDL_InitDynamicAPI':
SDL_dynapi.c:(.text+0x26cc): undefined reference to 
`get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function `SDL_LockAudio_DEFAULT'
:
SDL_dynapi.c:(.text+0xfdf4): undefined reference to `get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function 
`SDL_ClearHints_DEFAULT':
SDL_dynapi.c:(.text+0xff5c): undefined reference to `get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function `SDL_StartTextInput_DEFAULT':
SDL_dynapi.c:(.text+0x100c4): undefined reference to 
`get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function `SDL_GameControllerUpdate_DEFAULT'
:
SDL_dynapi.c:(.text+0x1022c): undefined reference to `get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj):SDL_dynapi.c:(.text+0x10394): more undefined references to 
`get_sdlapi_entry' follow
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/fallout2-ce.dir/build.make:1845: fallout2-ce] Error 1
make[1]: *** [CMakeFiles/Makefile2:182: CMakeFiles/fallout2-ce.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

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


Re: MacOS PPC CroMag Rally game port
Not too shy to talk
Not too shy to talk


@kas1e

Yes re-downloaded files.c with bigendian fixes and it works fine :)

Thanks.

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


Re: MacOS PPC CroMag Rally game port
Not too shy to talk
Not too shy to talk


@kas1e

Ok rebuilt gl4es (clib2) and CroMag Rally builds and runs.

However sand-textures have weird colors like this
https://ibb.co/8jkdkRn

I tried your executable and it is fine..

I guess there is some more fix you have done..

Just asking for educational purposes :)

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


Re: MacOS PPC CroMag Rally game port
Not too shy to talk
Not too shy to talk


@kas1e

Just noticed updated in his repo.
After compiling with adding Files.cpp changes for AmigaOS4.

LIBGLInitialising gl4es
LIBGL
v1.1.5 built on Sep  6 2022 18:31:35
LIBGL
Using GLES 2.0 backend
LIBGL
Using Warp3DNova.library v54 revision 16
LIBGL
Using OGLES2.library v3 revision 3
LIBGL
OGLES2 Library and Interface open successfuly
LIBGL
Targeting OpenGL 2.1
LIBGL
Not trying to batch small subsequent glDrawXXXX
LIBGL
: try to use VBO
LIBGL
Force texture for Attachment color0 on FBO
LIBGL
Hack to trigger a SwapBuffers when a Full Framebuffer Blit on default FBO is done
LIBGL
Current folder is:Sam460-2:CroMagRally
LIBGL
Hardware test on current Context...
LIBGLHardware Full NPOT detected and used
LIBGL
Extension GL_EXT_blend_minmax  detected and used
LIBGL
FBO are in core, and so used
LIBGL
PointSprite are in core, and so used
LIBGL
CubeMap are in core, and so used
LIBGL
BlendColor is in core, and so used
LIBGL
Blend Subtract is in core, and so used
LIBGL
Blend Function and Equation Separation is in core, and so used
LIBGL
Texture Mirrored Repeat is in core, and so used
LIBGL
Extension GL_OES_mapbuffer  detected
LIBGL
Extension GL_OES_element_index_uint  detected and used
LIBGL
Extension GL_OES_packed_depth_stencil  detected and used
LIBGL
Extension GL_EXT_texture_format_BGRA8888  detected and used
LIBGL
Extension GL_OES_texture_float  detected and used
LIBGL
Extension GL_AOS4_texture_format_RGB332 detected
LIBGL
Extension GL_AOS4_texture_format_RGB332REV detected
LIBGL
Extension GL_AOS4_texture_format_RGBA1555REV detected and used
LIBGL
Extension GL_AOS4_texture_format_RGBA8888 detected and used
LIBGL
Extension GL_AOS4_texture_format_RGBA8888REV detected and used
LIBGL
high precision float in fragment shader available and used
LIBGL
Extension GL_EXT_frag_depth  detected and used
LIBGL
Max vertex attrib16
LIBGL
Max texture size16384
LIBGL
Max Varying Vector32
LIBGL
Texture Units16/16 (hardware32), Max lights8Max planes6
LIBGL
Extension GL_EXT_texture_filter_anisotropic  detected and used
LIBGL
Max Anisotropic filtering16
LIBGL
Max Color AttachmentsDraw buffers1
LIBGL
Hardware vendor is A-EON Technology LtdWritten by Daniel 'Daytona675x' Müßener GoldenCode.eu
LIBGL
GLSL 300 es supported
LIBGL
GLSL 310 es supported and used
CMR Fatal Alert
OGL_CreateDrawContext:357glGetError() == GL_NO_ERROR
CMR Fatal Alert
SafeSafeDisposePtrinvalid cookie!
LIBGLShuting down

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


Re: MacOS PPC CroMag Rally game port
Not too shy to talk
Not too shy to talk


@kas1e

Can you share your makefile and changes to compile.. I think it is a good example of SDL2 OpenGL OpenGLX project.

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


Re: SFML library
Not too shy to talk
Not too shy to talk


@kas1e

As far as I checked from Github even simple SFML games require
SFML_GRAPHICS_LIBRARY

I hope you can make it work...

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


Re: DevilutionX - Diablo 1
Not too shy to talk
Not too shy to talk


@kas1e

When I switch to 640x480 resolution, fps is around 65-70 fps.
I guess the game is designed to work on 640x480 resolution ?

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


Re: DevilutionX - Diablo 1
Not too shy to talk
Not too shy to talk


@all

Thanks to Kas1e, afxgroup and trgswe for their answers and of course Filip Maryjañski for his 1.4.1 MorphOS sources.

I managed to compile DevilutionX 1.4.1 for AmigaOS + SDL1.2
Diablo and Hellfire game modes work, also save/load is also working.

Game is around 23-25 fps in Fullscreen 1280x720 resolution. I can switch to windows mode, but then mouse stutters.

Here is a video of DevilutionX 1.4.1 running on Sam460.




I haven't managed to compile with SDL2 at the moment.

I will upload it to OS4Depot.net after some testing.

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


Re: codecvt clib2 and newlib
Not too shy to talk
Not too shy to talk


@kas1e

Thanks, I think I am on Gcc v11.1 :)

How can I update to V11.3 first ?

Sorry for these beginner questions :(

I plan to gather all these informations to a document in near future.

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


Re: codecvt clib2 and newlib
Not too shy to talk
Not too shy to talk


@kas1e

When I check, I can see there is libstdc++.a 24,4 MB at
usr/local/amiga/ppc-amigaos/lib/clib2

and also libstdc++.a 17,3 MB at
usr/local/amiga/ppc-amigaos/lib/

I guess I need to report Andrea ?

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


codecvt clib2 and newlib
Not too shy to talk
Not too shy to talk


@all

Am I doing something wrong while compiling following source with clib2 ?

#include <iostream>
#include <fstream>
#include <string>
#include <locale>
#include <iomanip>
#include <codecvt>
#include <cstdint>
 
// utility wrapper to adapt locale-bound facets for wstring/wbuffer convert
template<class Facet>
struct deletable_facet Facet
{
    
template<class... Args>
    
deletable_facet(Args&&... args) : Facet(std::forward<Args>(args)...) {}
    ~
deletable_facet() {}
};
 
int main()
{
    
// UTF-8 narrow multibyte encoding
    
std::string data reinterpret_cast<const char*>(+u8"z\u00df\u6c34\U0001f34c");
                       
// or reinterpret_cast<const char*>(+u8"zß水🍌")
                       // or "\x7a\xc3\x9f\xe6\xb0\xb4\xf0\x9f\x8d\x8c"
 
    
std::ofstream("text.txt") << data;
 
    
// using system-supplied locale's codecvt facet
    
std::wifstream fin("text.txt");
    
// reading from wifstream will use codecvt<wchar_t, char, mbstate_t>
    // this locale's codecvt converts UTF-8 to UCS4 (on systems such as Linux)
    
fin.imbue(std::locale("en_US.UTF-8"));
    
std::cout << "The UTF-8 file contains the following UCS4 code units:   ";
    for (
wchar_t cfin >> c; )
        
std::cout << "U+" << std::hex << std::setw(4) << std::setfill('0')
                  << 
static_cast<uint32_t>(c) << ' ';
 
    
// using standard (locale-independent) codecvt facet
    
std::wstring_convert<
        
deletable_facet<std::codecvt<char16_tcharstd::mbstate_t>>, char16_tconv16;
    
std::u16string str16 conv16.from_bytes(data);
 
    
std::cout << "\nThe UTF-8 file contains the following UTF-16 code units: ";
    for (
char16_t c str16)
        
std::cout << "U+" << std::hex << std::setw(4) << std::setfill('0')
                  << 
static_cast<uint16_t>(c) << ' ';
}


Output is :

ppc-amigaos-g++ -mcrt=clib2 -athread=native test.cpp -o codecvt -lpthread -lz
/tmp/cc0nN0eZ.oIn function `_ZNSt7codecvtIDsc10_mbstate_tEC2Ej':
test.cpp:(.text._ZNSt7codecvtIDsc10_mbstate_tEC2Ej[_ZNSt7codecvtIDsc10_mbstate_tEC5Ej]+0x2e): undefined reference to 
`_ZTVSt7codecvtIDsc10_mbstate_tE'
test.cpp:(.text._ZNSt7codecvtIDsc10_mbstate_tEC2Ej[_ZNSt7codecvtIDsc10_mbstate_tEC5Ej]+0x32): undefined reference to `_ZTVSt7codecvtIDsc10_mbstate_tE'
/tmp/cc0nN0eZ.oIn function `_ZN15deletable_facetISt7codecvtIDsc10_mbstate_tEED2Ev':
test.cpp:(.text._ZN15deletable_facetISt7codecvtIDsc10_mbstate_tEED2Ev[_ZN15deletable_facetISt7codecvtIDsc10_mbstate_tEED5Ev]+0x30): undefined reference to 
`_ZNSt7codecvtIDsc10_mbstate_tED2Ev'
/tmp/cc0nN0eZ.o:(.rodata._ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE[_ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE]+0x10): undefined reference to `_ZNKSt7codecvtIDsc10_mbstate_tE6do_outERS0_PKDsS4_RS4_PcS6_RS6_'
/tmp/cc0nN0eZ.o:(.rodata._ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE[_ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE]+0x14): undefined reference to `_ZNKSt7codecvtIDsc10_mbstate_tE10do_unshiftERS0_PcS3_RS3_'
/tmp/cc0nN0eZ.o:(.rodata._ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE[_ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE]+0x18): undefined reference to 
`_ZNKSt7codecvtIDsc10_mbstate_tE5do_inERS0_PKcS4_RS4_PDsS6_RS6_'
/tmp/cc0nN0eZ.o:(.rodata._ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE[_ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE]+0x1c): undefined reference to `_ZNKSt7codecvtIDsc10_mbstate_tE11do_encodingEv'
/tmp/cc0nN0eZ.o:(.rodata._ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE[_ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE]+0x20): undefined reference to `_ZNKSt7codecvtIDsc10_mbstate_tE16do_always_noconvEv'
/tmp/cc0nN0eZ.o:(.rodata._ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE[_ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE]+0x24): undefined reference to 
`_ZNKSt7codecvtIDsc10_mbstate_tE9do_lengthERS0_PKcS4_j'
/tmp/cc0nN0eZ.o:(.rodata._ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE[_ZTV15deletable_facetISt7codecvtIDsc10_mbstate_tEE]+0x28): undefined reference to `_ZNKSt7codecvtIDsc10_mbstate_tE13do_max_lengthEv'
/tmp/cc0nN0eZ.o:(.rodata._ZTI15deletable_facetISt7codecvtIDsc10_mbstate_tEE[_ZTI15deletable_facetISt7codecvtIDsc10_mbstate_tEE]+0x8): undefined reference to `_ZTISt7codecvtIDsc10_mbstate_tE'
collect2: error: ld returned 1 exit status


Compiling with newlib is impossible:

ppc-amigaos-g++ -athread=native test.cpp -o codecvt -lpthread -lstdc++ -lz
test
.cppIn function ‘int main():
test.cpp:28:10error‘wifstream’ is not a member of ‘std’did you mean ‘ifstream’?
   
28 |     std::wifstream fin("text.txt");
      |          ^~~~~~~~~
      |          
ifstream
test
.cpp:31:5error‘fin’ was not declared in this scope
   31 
|     fin.imbue(std::locale("en_US.UTF-8"));
      |     ^~~
test.cpp:38:10error‘wstring_convert’ is not a member of ‘std’
   38 
|     std::wstring_convert<
      |          ^~~~~~~~~~~~~~~
test.cpp:39:70errorexpected primary-expression before ‘,’ token
   39 
|         deletable_facet<std::codecvt<char16_tcharstd::mbstate_t>>, char16_tconv16;
      |                                                                      ^
test.cpp:39:72errorexpected primary-expression before ‘char16_t’
   39 
|         deletable_facet<std::codecvt<char16_tcharstd::mbstate_t>>, char16_tconv16;
      |                                                                        ^~~~~~~~
test.cpp:40:28error‘conv16’ was not declared in this scope
   40 
|     std::u16string str16 conv16.from_bytes(data);

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



TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 22 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project