Who's Online |
63 user(s) are online ( 30 user(s) are browsing Forums)
Members: 2
Guests: 61
Templario, beworld,
more...
|
|
|
|
Re: DevilutionX - Diablo 1
|
Posted on: 2022/9/24 23:05
#121
|
Not too shy to talk
|
@kas1e[
quote]kas1e wrote:@SinanSam460 I didn't try to compile it fully, just passed fseek() issue.
As for linking erros, it remind me the same errors i had when tryied to build some stuff (See those "mbstate" words in errors).
I ask Andrea about , and he say that you have to compile libstdc++ with new clib2 otherwise you will get this error. Do not know if that the case, but you may try to build libstd++ over new clib2 and test (Andrea post somewhere a sript of how to rebuild it without needs to rebuild whole adtools)[/quote]
I couldn't find it in this website ? Do you remember how ?
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: DevilutionX - Diablo 1
|
Posted on: 2022/9/24 22:01
#122
|
Not too shy to talk
|
@trgswe Compiling with C++11 breaks other source parts. I tried changing the source code to std::codecvt<wchar_t, char, std::mbstate_t> But then got following errors:
/amiga/develop/devilutionX/Source/miniwin/misc_msg.cpp:518:98: error: template argument 1 is invalid
518 | std::wstring_convert<std::codecvt<wchar_t, char, std::mbstate_t> convert;
| ^~~~~~~
/amiga/develop/devilutionX/Source/miniwin/misc_msg.cpp:519:52: error: ‘convert’ was not declared in this scope
519 | std::string utf8 = convert.to_bytes(unicode);
| ^~~~~~~
But afaik wstring_convert is also deprecated in C++17 ?? Unfortunately my C++ knowledge is not enough to make the required changes.
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: DevilutionX - Diablo 1
|
Posted on: 2022/9/24 16:17
#123
|
Not too shy to talk
|
@kas1e I searched for "codecvt_utf8" in DevilutionX source code. I found it in 2 places. When I google'd it: It seems C++17: codecvt_utf8 is deprecated https://codingtidbit.com/2020/02/09/c17-codecvt_utf8-is-deprecated/misc_msg.cpp:
#ifdef USE_SDL1
if (gbRunGame && (IsTalkActive() || dropGoldFlag)) {
Uint16 unicode = e.key.keysym.unicode;
if (unicode >= ' ') {
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> convert;
std::string utf8 = convert.to_bytes(unicode);
if (IsTalkActive())
control_new_text(utf8);
if (dropGoldFlag)
GoldDropNewText(utf8);
}
}
#endif
places and diabloui.cpp:
#ifdef USE_SDL1
if ((event->key.keysym.mod & KMOD_CTRL) == 0) {
Uint16 unicode = event->key.keysym.unicode;
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> convert;
std::string utf8 = convert.to_bytes(unicode);
SelheroCatToName(utf8.c_str(), UiTextInput, UiTextInputLen);
}
#endif
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: DevilutionX - Diablo 1
|
Posted on: 2022/9/24 12:52
#124
|
Not too shy to talk
|
@kas1e Thanks. after commenting out add_definitions(-Dfseeko=fseek) I was able to compile objects 100% However in the last linking devilutionX executeable, I get this: Are you able to compile the project 100% ?
/tmp/ccjD69Ry.ltrans32.ltrans.o:(.rodata+0xfc): undefined reference to `_ZNKSt19__codecvt_utf8_baseIDiE6do_outER10_mbstate_tPKDiS4_RS4_PcS6_RS6_'
/tmp/ccjD69Ry.ltrans32.ltrans.o:(.rodata+0x100): undefined reference to `_ZNKSt19__codecvt_utf8_baseIDiE10do_unshiftER10_mbstate_tPcS3_RS3_'
/tmp/ccjD69Ry.ltrans32.ltrans.o:(.rodata+0x104): undefined reference to `_ZNKSt19__codecvt_utf8_baseIDiE5do_inER10_mbstate_tPKcS4_RS4_PDiS6_RS6_'
/tmp/ccjD69Ry.ltrans32.ltrans.o:(.rodata+0x110): undefined reference to `_ZNKSt19__codecvt_utf8_baseIDiE9do_lengthER10_mbstate_tPKcS4_j'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/devilutionx.dir/build.make:404: devilutionx] Error 1
make[1]: *** [CMakeFiles/Makefile2:1167: CMakeFiles/devilutionx.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: DevilutionX - Diablo 1
|
Posted on: 2022/9/24 10:43
#125
|
Not too shy to talk
|
@all Now I have switched to newlib. Progress is better than trying to compile with clib2. Now at 54%, I have a problem with std::wstring
[ 54%] Building CXX object _deps/libfmt-build/CMakeFiles/fmt.dir/src/format.cc.obj
In file included from /amiga/develop/devilutionX/build/_deps/libfmt-src/include/fmt/format-inl.h:29,
from /amiga/develop/devilutionX/build/_deps/libfmt-src/src/format.cc:8:
/amiga/develop/devilutionX/build/_deps/libfmt-src/include/fmt/format.h:1262:28: error: ‘wstring’ in namespace ‘std’ does not name a type
1262 | auto str() const -> std::wstring { return {&buffer_[0], size()}; }
| ^~~~~~~
/amiga/develop/devilutionX/build/_deps/libfmt-src/include/fmt/format.h:49:1: note: ‘std::wstring’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
48 | #include "core.h"
+++ |+#include <string>
49 |
make[2]: *** [_deps/libfmt-build/CMakeFiles/fmt.dir/build.make:76: _deps/libfmt-build/CMakeFiles/fmt.dir/src/format.cc.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:2313: _deps/libfmt-build/CMakeFiles/fmt.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
I tried adding #include <string>, but no change. Any ideas ?
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: DevilutionX - Diablo 1
|
Posted on: 2022/9/24 0:01
#126
|
Not too shy to talk
|
@all Filip Maryjañski has published his MorphOS 1.4.1 port on GitHub with BigEndian fixes. https://github.com/widelec-bb/devilutionxCurrently I still have problem when compiling the project. If someone is interested, maybe he can take a look
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: DevilutionX - Diablo 1
|
Posted on: 2022/9/22 14:24
#127
|
Not too shy to talk
|
@all @all Now I am trying to compile Devilution 1.4 from https://github.com/diasurgical/devilutionXUsing this CMake (found an old one at Kas1e's website)
cmake \
-DCMAKE_SYSTEM_NAME=Generic \
-DBINARY_RELEASE=ON \
-DDEBUG=OFF \
-DASAN=OFF \
-DAMIGA=1 \
-DCMAKE_SYSTEM_VERSION=1 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_THREAD_LIBS_INIT="-lpthread" \
-DCMAKE_HAVE_THREADS_LIBRARY=1 \
-DCMAKE_USE_WIN32_THREADS_INIT=0 \
-DCMAKE_USE_PTHREADS_INIT=1 \
-DTHREADS_PREFER_PTHREAD_FLAG=ON \
-DCMAKE_C_COMPILER="/usr/local/amiga/bin/ppc-amigaos-gcc" \
-DCMAKE_CXX_COMPILER="/usr/local/amiga/bin/ppc-amigaos-g++" \
-DCMAKE_CXX_FLAGS="-mcrt=clib2" \
-DCMAKE_C_FLAGS="-mcrt=clib2" \
-DCMAKE_LINKER="/usr/local/amiga/bin/ppc-amigaos-ld" \
-DCMAKE_AR="/usr/local/amiga/bin/ppc-amigaos-ar" \
-DCMAKE_RANLIB="/usr/local/amiga/bin/ppc-amigaos-ranlib" \
-DCMAKE_FIND_ROOT_PATH="/usr/local/amiga/ppc-amigaos/" \
-DFREETYPE_LIBRARY=/usr/local/amiga/ppc-amigaos/SDK/local/clib2/lib/libfreetype.a \
-DFREETYPE_INCLUDE_DIRS=/usr/local/amiga/ppc-amigaos/SDK/local/clib2/include \
-DZLIB_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/" \
-DZLIB_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libz.a" \
-DSDL_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libSDL.a" \
-DSDL_IMAGE_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libSDL_image.a" \
-DSDL_AUDIO_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libSDL_sound.a" \
-DSDL_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/include/SDL/" \
-DSDL_TTF_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libsdl_ttf.a" \
-DSDL_TTF_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/common/include/SDL/" \
-DSDL_MIXER_LIBRARY="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libsdl_mixer.a" \
-DSDL_MIXER_INCLUDE_DIR="/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/include/SDL/" \
..
Compilaton reaches 37% and stops following error
[ 37%] Building C object 3rdParty/bzip2/CMakeFiles/BZip2.dir/bz_internal_error.c.obj
<command-line>: error: conflicting types for ‘fseek’; have ‘int(FILE *, off_t, int)’ {aka ‘int(struct __sFILE *, long long int, int)’}
In file included from /amiga/develop/devilutionX/3rdParty/bzip2/bz_internal_error.c:1:
/usr/local/amiga/ppc-amigaos/SDK/clib2/include/stdio.h:152:12: note: previous declaration of ‘fseek’ with type ‘int(FILE *, long int, int)’ {aka ‘int(struct __sFILE *, long int, int)’}
152 | extern int fseek(FILE *stream, long int offset, int wherefrom);
| ^~~~~
make[2]: *** [3rdParty/bzip2/CMakeFiles/BZip2.dir/build.make:174: 3rdParty/bzip2/CMakeFiles/BZip2.dir/bz_internal_error.c.obj] Error 1
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: DevilutionX - Diablo 1
|
Posted on: 2022/9/22 8:35
#128
|
Not too shy to talk
|
@samo79
Let's hope I am welcomed at MorphOS IRC channel :)
Maybe I should use my MorphOS PowerMAC G4 :)
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: DevilutionX - Diablo 1
|
Posted on: 2022/9/22 7:38
#129
|
Not too shy to talk
|
@all There is a fork of DevilutionX 1.4 for MorphOS https://github.com/widelec-BB/devilutionXI think we can bring this port to AmigaOS4 like VanillaConquer and Augustus. Does anyone know how to contact Filip Maryjañski (MorphOS port author). I can't find any contact in his Github page.
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: How to create clib2 versions of newlib libraries
|
Posted on: 2022/9/21 19:15
#130
|
Not too shy to talk
|
@trgswe
I found another fork of freealut. It seems to work.
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: How to create clib2 versions of newlib libraries
|
Posted on: 2022/9/21 18:37
#131
|
Not too shy to talk
|
@kas1e -mcrt=clib2 is there, so CMake works.
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.23
# compile C with /usr/local/amiga/bin/ppc-amigaos-gcc
C_DEFINES =
C_INCLUDES = -I/amiga/develop/freealut/include -I/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/include/AL -I/amiga/develop/freealut/build
C_FLAGS = -mcrt=clib2 -finline-functions -ffast-math -fomit-frame-pointer -O3 -DNDEBUG
# Custom flags: CMakeFiles/test_fileloader.dir/test_suite/test_fileloader.c.obj_FLAGS = -Wno-deprecated-declarations
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: How to create clib2 versions of newlib libraries
|
Posted on: 2022/9/21 17:53
#132
|
Not too shy to talk
|
@kas1e Ok I can build libalut.a with Cmake command, but I guess it is not the real clib2 version..Because when I compile the project with freealut, I get a __getreent error like this.. From one of past threads, I learned this happen when you mix newlib and clib2 libraries
/usr/local/amiga/ppc-amigaos/SDK/local/clib2/lib/libalut.a(alutError.o): In function `_alutSetError':
/home/salass00/Development/Projects/libs/freealut/src/alutError.c:12: undefined reference to `__getreent'
collect2: error: ld returned 1 exit status
make: *** [makefile.os4:319: vanillatd] Error 1
So I tried to create my makefile like this
TARGET = libalut.a
CXX = ppc-amigaos-gcc
CXXFLAGS = -mcrt=clib2 -athread=native -DHAVE_STDINT_H -DHAVE_STAT -DHAVE_NANOSLEEP -DHAVE_TIME_H
CXXFLAGS += -I/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/include/AL/ -I/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/include/ -I./include
CXXLIBS =-L/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/ -lopenal -L/usr/local/amiga/ppc-amigaos/SDK/Local/clib2/lib/libopenal.a -lm -lc -lpthread
libalut_la_SOURCES = \
alutBufferData.c \
alutCodec.c \
alutError.c \
alutInit.c \
alutInputStream.c \
alutInternal.h \
alutLoader.c \
alutOutputStream.c \
alutUtil.c \
alutVersion.c \
alutWaveform.c
OBJS1 = $(libalut_la_SOURCES)
all: $(TARGET)
$(TARGET): $(OBJS1)
$(CXX) $(CXXFLAGS) -o $@ $^ $(CXXLIBS)
and final error is like this:
/usr/local/amiga/ppc-amigaos/SDK/clib2/lib/libc.a(main.o): In function `call_main':
main.c:(.text+0x3c): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [Makefile.os4:26: libalut.a] Error 1
I guess I am missing something here.. I guess someday we have to make a Wiki for Clib2 :)
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
How to create clib2 versions of newlib libraries
|
Posted on: 2022/9/20 20:48
#133
|
Not too shy to talk
|
Hi all I am trying to compile freealut for clib2 (newlib version is available on OS4Depot.net) Is the following CMake command excerpt the right way ? If not how should I do it ?
cmake -DCMAKE_CXX_FLAGS="-mcrt=clib2" -DAMIGAOS4=1 -DRUN_IN_PLACE=TRUE -DCMAKE_SYSTEM_NAME=GENERIC -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER="/usr/local/amiga/bin/ppc-amigaos-gcc" -DCMAKE_CXX_COMPILER="/usr/local/amiga/bin/ppc-amigaos-g++" -DCMAKE_LINKER="/usr/local/amiga/bin/ppc-amigaos-ld" -DCMAKE_AR="/usr/local/amiga/bin/ppc-amigaos-ar" -DCMAKE_RANLIB="/usr/local/amiga/bin/ppc-amigaos-ranlib" -DCMAKE_FIND_ROOT_PATH="/usr/local/amiga/ppc-amigaos/"
Edited by SinanSam460 on 2022/9/21 17:54:47
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: Porting Augustus (Caesar 3) to AmigaOS4
|
Posted on: 2022/9/20 15:26
#134
|
Not too shy to talk
|
@levellord
I will try MorphOS version on PowerMAC G4, I haven't turned on MorphOS machine for some month
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
|
Posted on: 2022/9/10 17:08
#135
|
Not too shy to talk
|
@Evillord68
From SDL2 Prefs GUI. Please set each settings as default.
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
|
Posted on: 2022/9/9 15:03
#136
|
Not too shy to talk
|
@kas1e Thanks...you are right :) Ok I can compile now
$ make -f Makefile.amigaos4 SDL2=1
Makefile.amigaos4:27: Building...
ppc-amigaos-g++ -I../../include -mcrt=clib2 -O3 -ffast-math main.cpp -o ../../bin/AmigaOS4/02.Quake3Map -athread=native -lIrrlicht_sdl2 -lSDL2_gl4es -lgl4es -lpthread
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
|
Posted on: 2022/9/9 13:53
#137
|
Not too shy to talk
|
@kas1e So I tried compiling Irrlict examples with your clib2 libraries. This is what I get SDL2 enabled.
SinanGurkan@DESKTOP-VPGSLQE /amiga/develop/Irrlicht/examples/02.Quake3Map
$ make -f Makefile.amigaos4 SDL2=1
Makefile.amigaos4:27: Building...
ppc-amigaos-g++ -I../../include -mcrt=clib2 -O3 -ffast-math main.cpp -o ../../bin/AmigaOS4/02.Quake3Map -athread=native ../../lib/AmigaOS4/libIrrlicht.a -lSDL2_gl4es -lgl4es -lpthread
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL7presentEPNS_5video6IImageEPvPNS_4core4rectIiEE':
CIrrDeviceSDL.cpp:(.text+0x194): undefined reference to `SDL_SetAlpha'
CIrrDeviceSDL.cpp:(.text+0x314): undefined reference to `SDL_Flip'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL14minimizeWindowEv':
CIrrDeviceSDL.cpp:(.text+0x3e4): undefined reference to `SDL_WM_IconifyWindow'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZNK3irr13CIrrDeviceSDL14isWindowActiveEv':
CIrrDeviceSDL.cpp:(.text+0x3f4): undefined reference to `SDL_GetAppState'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZNK3irr13CIrrDeviceSDL15isWindowFocusedEv':
CIrrDeviceSDL.cpp:(.text+0x424): undefined reference to `SDL_GetAppState'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL12setResizableEb':
CIrrDeviceSDL.cpp:(.text+0x4c8): undefined reference to `SDL_SetVideoMode'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL12createWindowEv.part.0':
CIrrDeviceSDL.cpp:(.text+0x5e4): undefined reference to `SDL_SetVideoMode'
CIrrDeviceSDL.cpp:(.text+0x624): undefined reference to `SDL_SetVideoMode'
CIrrDeviceSDL.cpp:(.text+0x6dc): undefined reference to `SDL_SetVideoMode'
CIrrDeviceSDL.cpp:(.text+0x710): undefined reference to `SDL_SetVideoMode'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o):CIrrDeviceSDL.cpp:(.text+0x764): more undefined references to `SDL_SetVideoMode' follow
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL16setWindowCaptionEPKw':
CIrrDeviceSDL.cpp:(.text+0xa20): undefined reference to `SDL_WM_SetCaption'
CIrrDeviceSDL.cpp:(.text+0xa98): undefined reference to `SDL_WM_SetCaption'
CIrrDeviceSDL.cpp:(.text+0xae8): undefined reference to `SDL_WM_SetCaption'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL3runEv':
CIrrDeviceSDL.cpp:(.text+0x2258): undefined reference to `SDL_SetVideoMode'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL16getVideoModeListEv':
CIrrDeviceSDL.cpp:(.text+0x27c8): undefined reference to `SDL_GetVideoInfo'
CIrrDeviceSDL.cpp:(.text+0x284c): undefined reference to `SDL_ListModes'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL12createWindowEv':
CIrrDeviceSDL.cpp:(.text+0x2f1c): undefined reference to `SDL_SetVideoMode'
CIrrDeviceSDL.cpp:(.text+0x2f5c): undefined reference to `SDL_SetVideoMode'
CIrrDeviceSDL.cpp:(.text+0x2fbc): undefined reference to `SDL_SetVideoMode'
CIrrDeviceSDL.cpp:(.text+0x2ff0): undefined reference to `SDL_SetVideoMode'
CIrrDeviceSDL.cpp:(.text+0x3044): undefined reference to `SDL_SetVideoMode'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDLC2ERKNS_27SIrrlichtCreationParametersE':
CIrrDeviceSDL.cpp:(.text+0x6058): undefined reference to `SDL_GetWMInfo'
CIrrDeviceSDL.cpp:(.text+0x6674): undefined reference to `SDL_EnableUNICODE'
CIrrDeviceSDL.cpp:(.text+0x6680): undefined reference to `SDL_EnableKeyRepeat'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDLC1ERKNS_27SIrrlichtCreationParametersE':
CIrrDeviceSDL.cpp:(.text+0x6fd8): undefined reference to `SDL_GetWMInfo'
CIrrDeviceSDL.cpp:(.text+0x75f4): undefined reference to `SDL_EnableUNICODE'
CIrrDeviceSDL.cpp:(.text+0x7600): undefined reference to `SDL_EnableKeyRepeat'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionEii':
CIrrDeviceSDL.cpp:(.text._ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionEii[_ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionEii]+0x8): undefined reference to `SDL_WarpMouse'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionEff':
CIrrDeviceSDL.cpp:(.text._ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionEff[_ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionEff]+0x88): undefined reference to `SDL_WarpMouse'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionERKNS_4core8vector2dIiEE':
CIrrDeviceSDL.cpp:(.text._ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionERKNS_4core8vector2dIiEE[_ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionERKNS_4core8vector2dIiEE]+0x28): undefined reference to `SDL_WarpMouse'
../../lib/AmigaOS4/libIrrlicht.a(CIrrDeviceSDL.o): In function `_ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionERKNS_4core8vector2dIfEE':
CIrrDeviceSDL.cpp:(.text._ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionERKNS_4core8vector2dIfEE[_ZN3irr13CIrrDeviceSDL14CCursorControl11setPositionERKNS_4core8vector2dIfEE]+0xa4): undefined reference to `SDL_WarpMouse'
../../lib/AmigaOS4/libIrrlicht.a(swprintf.o): In function `vswprintf':
swprintf.cpp:(.text+0x2c): undefined reference to `__getreent'
swprintf.cpp:(.text+0xfa8): undefined reference to `_dtoa_r'
../../lib/AmigaOS4/libIrrlicht.a(COpenGLDriver.o): In function `_ZN3irr5video13COpenGLDriver8endSceneEv':
COpenGLDriver.cpp:(.text+0x208): undefined reference to `SDL_GL_SwapBuffers'
../../lib/AmigaOS4/libIrrlicht.a(jerror.o): In function `output_message':
jerror.c:(.text+0x1bc): undefined reference to `__getreent'
../../lib/AmigaOS4/libIrrlicht.a(pngerror.o): In function `png_warning':
pngerror.c:(.text+0x584): undefined reference to `__getreent'
../../lib/AmigaOS4/libIrrlicht.a(pngerror.o): In function `png_chunk_warning':
pngerror.c:(.text+0xbf0): undefined reference to `__getreent'
pngerror.c:(.text+0xc38): undefined reference to `__getreent'
../../lib/AmigaOS4/libIrrlicht.a(pngerror.o): In function `png_default_error':
pngerror.c:(.text+0xdd0): undefined reference to `__getreent'
../../lib/AmigaOS4/libIrrlicht.a(pngerror.o):pngerror.c:(.text+0xfa4): more undefined references to `__getreent' follow
../../lib/AmigaOS4/libIrrlicht.a(pngread.o): In function `png_image_begin_read_from_file':
pngread.c:(.text+0x6294): undefined reference to `__errno'
../../lib/AmigaOS4/libIrrlicht.a(pngwrite.o): In function `png_image_write_to_file':
pngwrite.c:(.text+0x31dc): undefined reference to `__errno'
pngwrite.c:(.text+0x32a8): undefined reference to `__errno'
pngwrite.c:(.text+0x32c4): undefined reference to `__errno'
collect2: error: ld returned 1 exit status
and this is what happens with SDL1
SinanGurkan@DESKTOP-VPGSLQE /amiga/develop/Irrlicht/examples/02.Quake3Map
$ make -f Makefile.amigaos4
Makefile.amigaos4:27: Building...
ppc-amigaos-g++ -I../../include -mcrt=clib2 -O3 -ffast-math main.cpp -o ../../bin/AmigaOS4/02.Quake3Map -athread=native ../../lib/AmigaOS4/libIrrlicht.a -lSDL_gl4es -lgl4es -lpthread
../../lib/AmigaOS4/libIrrlicht.a(swprintf.o): In function `vswprintf':
swprintf.cpp:(.text+0x2c): undefined reference to `__getreent'
swprintf.cpp:(.text+0xfa8): undefined reference to `_dtoa_r'
../../lib/AmigaOS4/libIrrlicht.a(jerror.o): In function `output_message':
jerror.c:(.text+0x1bc): undefined reference to `__getreent'
../../lib/AmigaOS4/libIrrlicht.a(pngerror.o): In function `png_warning':
pngerror.c:(.text+0x584): undefined reference to `__getreent'
../../lib/AmigaOS4/libIrrlicht.a(pngerror.o): In function `png_chunk_warning':
pngerror.c:(.text+0xbf0): undefined reference to `__getreent'
pngerror.c:(.text+0xc38): undefined reference to `__getreent'
../../lib/AmigaOS4/libIrrlicht.a(pngerror.o): In function `png_default_error':
pngerror.c:(.text+0xdd0): undefined reference to `__getreent'
../../lib/AmigaOS4/libIrrlicht.a(pngerror.o):pngerror.c:(.text+0xfa4): more undefined references to `__getreent' follow
../../lib/AmigaOS4/libIrrlicht.a(pngread.o): In function `png_image_begin_read_from_file':
pngread.c:(.text+0x6294): undefined reference to `__errno'
../../lib/AmigaOS4/libIrrlicht.a(pngwrite.o): In function `png_image_write_to_file':
pngwrite.c:(.text+0x31dc): undefined reference to `__errno'
pngwrite.c:(.text+0x32a8): undefined reference to `__errno'
pngwrite.c:(.text+0x32c4): undefined reference to `__errno'
collect2: error: ld returned 1 exit status
make: *** [Makefile.amigaos4:28: all] Error 1
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
|
Posted on: 2022/9/7 20:01
#138
|
Not too shy to talk
|
@kas1e
I will make comparison of both files on Sam460, X5000 and A1222 on Friday. (if no one makes it before)
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
|
Posted on: 2022/9/7 7:22
#139
|
Not too shy to talk
|
@kas1e
Both SDL2 and SDL1 versions runs at 34 - 38 fps here. Yes I press "a" to select.
I will also try compiling myself to see if it makes any changes.
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|
Re: GL4ES / SDL+GL4ES / CLIB2 / Outdated NEWLIB libs and OnWards
|
Posted on: 2022/9/7 7:08
#140
|
Not too shy to talk
|
@kas1e Thanks for the compiled libraries. I also get 34 fps on my Sam460+RX-550 (Power Prefs - Set To High) with SDL2 version... Here is output
LIBGL: Initialising 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:/RAM Disk/bin/AmigaOS4
Please select the driver you want for this example:
(a) OpenGL 1.5
(b) Direct3D 9.0c
(c) Direct3D 8.1
(d) Burning's Software Renderer
(e) Software Renderer
(f) NullDevice
(otherKey) exit
a
Irrlicht Engine version 1.8.4
SDL Version 2.24.0
LIBGL: Hardware test on current Context...
LIBGL: Hardware 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 attrib: 16
LIBGL: Max texture size: 16384
LIBGL: Max Varying Vector: 32
LIBGL: Texture Units: 16/16 (hardware: 32), Max lights: 8, Max planes: 6
LIBGL: Extension GL_EXT_texture_filter_anisotropic detected and used
LIBGL: Max Anisotropic filtering: 16
LIBGL: Max Color Attachments: 1 / Draw buffers: 1
LIBGL: Hardware vendor is A-EON Technology Ltd. Written by Daniel 'Daytona675x' Müßener @ GoldenCode.eu
LIBGL: GLSL 300 es supported
LIBGL: GLSL 310 es supported and used
Using renderer: OpenGL 2.1
GL4ES wrapper: ptitSeb
OpenGL driver version is 1.2 or better.
GLSL version: 1.2
Vertex shader compilation failed at position 585:
Invalid token
Pixel shader compilation failed at position 580:
Invalid value (implicit param?)
Vertex shader compilation failed at position 605:
Invalid token
Pixel shader compilation failed at position 586:
Invalid value (implicit param?)
Loaded texture: e7walldesign01b.jpg
Loaded texture: e7steptop2.jpg
Loaded texture: e7dimfloor.jpg
Loaded texture: e7brickfloor01.jpg
Loaded texture: e7bmtrim.jpg
Loaded texture: e7sbrickfloor.jpg
Loaded texture: e7brnmetal.jpg
Loaded texture: e7beam02_red.jpg
Loaded texture: e7swindow.jpg
Loaded texture: e7bigwall.jpg
Loaded texture: e7panelwood.jpg
Loaded texture: e7beam01.jpg
Loaded texture: xstepborder5.jpg
Loaded texture: lavahell.jpg
Loaded texture: e7steptop.jpg
Loaded texture: metalblackwave01.jpg
Loaded texture: pjrock1.jpg
Loaded texture: timlamp.tga
Loaded texture: gratetorch2.jpg
Loaded texture: gratetorch2b.tga
Loaded mesh: 20kdm2.bsp
Needed 47ms to create Octree SceneNode.(92 nodes, 10640 polys)
Quit SDL
LIBGL: Shuting down
LIBGL: Saved a PSA with 2 Precompiled Programs
|
Sinan - AmigaOS4 Beta-Tester - AmigaOne X5000 - AmigaOne A1222 - Sam460ex
|
|
|