Jump to content

Nugrud

Members
  • Posts

    111
  • Joined

  • Last visited

About Nugrud

Profile Information

  • Location
    EU/PL/Cieszyn

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Nugrud's Achievements

  1. I somehow understand more about game scripts from this guide: https://www.pocketplane.net/tutorials/simscript.html than IESDP. And why not follow the code in VS Code run-by-line (F10/F11)?
  2. Nugrud

    Progress

    There were far more active modders back then.
  3. So fast after the last release! Nice, but what is the subviews branch about?
  4. It compiles properly when -DPREFIX path does not begin with "/" sign, but then the path is rubbish.
  5. It didn't help. CMakeError.log begins and contains many of such messages: Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /usr/bin/gcc Build flags: Id flags: The output was: 1 CMakeCCompilerId.c:299:10: error: macro names must be identifiers 299 | # define /storage3/games/gemrb-bin/COMPILER_VERSION_MAJOR DEC(__GNUC__) | ^ CMakeCCompilerId.c:301:11: error: macro names must be identifiers 301 | # define /storage3/games/gemrb-bin/COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) | ^ CMakeCCompilerId.c:304:11: error: macro names must be identifiers 304 | # define /storage3/games/gemrb-bin/COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) | ^ Removing -DLAYOUT from the command makes cmake recognizing gcc and g++, but it still contains the message that compile warnings are fatal: build (master)> cmake -DLAYOUT=home .. -- The C compiler identification is GNU 10.2.0 -- The CXX compiler identification is GNU 10.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detected version: 0.8.8-git -- Git version bool: 1 -- Performing Test NO_STRINGOP_TRUNCATION -- Performing Test NO_STRINGOP_TRUNCATION - Success -- Performing Test VISIBILITY_HIDDEN -- Performing Test VISIBILITY_HIDDEN - Success -- Performing Test STACK_PROTECTOR -- Performing Test STACK_PROTECTOR - Success -- Performing Test FALLTHROUGH -- Performing Test FALLTHROUGH - Success -- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version "2.7.18", minimum required is "2.3") -- Looking for Python libraries and headers: found -- Autodetecting SDL backend... -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found SDL: /usr/lib/libSDL.so;-lpthread (found version "1.2.15") -- Found SDL2: /usr/lib/libSDL2.so;-lpthread -- Found SDL 1.2, switching to SDL backend. -- Found SDL 2.0, switching to SDL2 backend. -- Found SDL2_mixer: /usr/lib/libSDL2_mixer.so (found version "2.0.4") -- Looking for SDL: found -- Looking for libSDL: found -- Looking for SDL_mixer: found -- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") -- Looking for Zlib: found -- Found OpenAL: /usr/lib/libopenal.so -- Looking for OpenAL: found -- Found LibVLC include-dir path: /usr/include -- Found LibVLC library path:/lib/libvlc.so -- Found LibVLCcore library path:/lib/libvlccore.so -- Looking for VLC: found -- Found Freetype: /usr/lib/libfreetype.so (found version "2.10.4") -- Looking for Freetype: found -- Looking for iconv_open -- Looking for iconv_open - found -- Performing Test ICONV_COMPILES -- Performing Test ICONV_COMPILES - Success -- Found ICONV: In glibc -- Found ICONV includes: /usr/include -- One (and only one) of the ICONV_ACCEPTS_... tests must pass -- Performing Test ICONV_ACCEPTS_NONCONST_INPUT -- Performing Test ICONV_ACCEPTS_NONCONST_INPUT - Success -- Performing Test ICONV_ACCEPTS_CONST_INPUT -- Performing Test ICONV_ACCEPTS_CONST_INPUT - Failed -- Found PNG: /usr/lib/libpng.so (found version "1.6.37") -- Looking for libPNG: found -- Looking for Ogg Vorbis support: found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of int -- Check size of int - done -- Check size of long int -- Check size of long int - done -- Check size of uint64_t -- Check size of uint64_t - done -- Check size of ssize_t -- Check size of ssize_t - done -- Looking for strndup -- Looking for strndup - found -- Looking for strlcpy -- Looking for strlcpy - not found -- Looking for setenv -- Looking for setenv - found -- Looking for ldexpf -- Looking for ldexpf - found -- Looking for realpath -- Looking for realpath - found -- Looking for mmap -- Looking for mmap - found -- Looking for include file unistd.h -- Looking for include file unistd.h - found -- Looking for include file malloc.h -- Looking for include file malloc.h - found -- Looking for include file langinfo.h -- Looking for include file langinfo.h - found -- Looking for _aligned_malloc -- Looking for _aligned_malloc - not found -- Looking for memalign -- Looking for memalign - found -- Looking for posix_memalign -- Looking for posix_memalign - found -- Performing Test HAS_OBJALIGN4 -- Performing Test HAS_OBJALIGN4 - Success -- Performing Test PERMITS_OBJECT_TO_FUNCTION_CAST -- Performing Test PERMITS_OBJECT_TO_FUNCTION_CAST - Failed -- -- These are the configured paths: -- PREFIX: /usr/local -- LIB_DIR: /usr/local -- PLUGIN_DIR: /usr/local/plugins/ -- BIN_DIR: /usr/local -- DATA_DIR: /usr/local -- MAN_DIR: /usr/local/man/man6 -- SYSCONF_DIR: /usr/local -- DOC_DIR: /usr/local/doc -- ICON_DIR: /usr/local -- SVG_DIR: /usr/local -- MENU_DIR: /usr/local -- -- Options: -- LAYOUT: home -- NOCOLOR: disabled -- STATIC_LINK: disabled -- INSOURCEBUILD: disabled -- DISABLE_WERROR: disabled -- WIN32_USE_STDIO: disabled -- SDL_BACKEND: SDL2 -- OPENGL_BACKEND: None -- -- Build type: RelWithDebInfo -- Target bitness: 8*8 -- -- Compiler warnings are fatal. -- If you hit one, let us know and rerun cmake with -DDISABLE_WERROR=1 to continue. CMakeError.log: Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /storage3/games/gemrb/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_0f99e/fast && /usr/bin/make -f CMakeFiles/cmTC_0f99e.dir/build.make CMakeFiles/cmTC_0f99e.dir/build make[1]: Entering directory '/storage3/games/gemrb/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0f99e.dir/src.c.o /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_0f99e.dir/src.c.o -c /storage3/games/gemrb/build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_0f99e /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0f99e.dir/link.txt --verbose=1 /usr/bin/cc -rdynamic CMakeFiles/cmTC_0f99e.dir/src.c.o -o cmTC_0f99e /usr/bin/ld: CMakeFiles/cmTC_0f99e.dir/src.c.o: in function `main': src.c:(.text+0x3e): undefined reference to `pthread_create' /usr/bin/ld: src.c:(.text+0x4a): undefined reference to `pthread_detach' /usr/bin/ld: src.c:(.text+0x56): undefined reference to `pthread_cancel' /usr/bin/ld: src.c:(.text+0x67): undefined reference to `pthread_join' collect2: error: ld returned 1 exit status make[1]: *** [CMakeFiles/cmTC_0f99e.dir/build.make:99: cmTC_0f99e] Error 1 make[1]: Leaving directory '/storage3/games/gemrb/build/CMakeFiles/CMakeTmp' make: *** [Makefile:127: cmTC_0f99e/fast] Error 2 Source file was: #include <pthread.h> static void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /storage3/games/gemrb/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_d9816/fast && /usr/bin/make -f CMakeFiles/cmTC_d9816.dir/build.make CMakeFiles/cmTC_d9816.dir/build make[1]: Entering directory '/storage3/games/gemrb/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_d9816.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_d9816.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.20/Modules/CheckFunctionExists.c Linking C executable cmTC_d9816 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d9816.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_d9816.dir/CheckFunctionExists.c.o -o cmTC_d9816 -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[1]: *** [CMakeFiles/cmTC_d9816.dir/build.make:99: cmTC_d9816] Error 1 make[1]: Leaving directory '/storage3/games/gemrb/build/CMakeFiles/CMakeTmp' make: *** [Makefile:127: cmTC_d9816/fast] Error 2 (...)
  6. I didn't set manually any flags, and apparently cmake didn't set any either?! gemrb (master)> mkdir build gemrb (master)> cd build/ build (master)> cmake -DLAYOUT=home -DPREFIX=/storage3/games/gemrb-bin/ .. -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detected version: 0.8.8-git -- Git version bool: 1 -- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version "2.7.18", minimum required is "2.3") -- Looking for Python libraries and headers: found -- Autodetecting SDL backend... -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found SDL: /usr/lib/libSDL.so;-lpthread (found version "1.2.15") -- Found SDL2: /usr/lib/libSDL2.so;-lpthread -- Found SDL 1.2, switching to SDL backend. -- Found SDL 2.0, switching to SDL2 backend. -- Found SDL2_mixer: /usr/lib/libSDL2_mixer.so (found version "2.0.4") -- Looking for SDL: found -- Looking for libSDL: found -- Looking for SDL_mixer: found -- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") -- Looking for Zlib: found -- Found OpenAL: /usr/lib/libopenal.so -- Looking for OpenAL: found -- Found LibVLC include-dir path: /usr/include -- Found LibVLC library path:/lib/libvlc.so -- Found LibVLCcore library path:/lib/libvlccore.so -- Looking for VLC: found -- Found Freetype: /usr/lib/libfreetype.so (found version "2.10.4") -- Looking for Freetype: found -- Looking for iconv_open -- Looking for iconv_open - found -- Performing Test ICONV_COMPILES -- Performing Test ICONV_COMPILES - Success -- Found ICONV: In glibc -- Found ICONV includes: /usr/include -- One (and only one) of the ICONV_ACCEPTS_... tests must pass -- Performing Test ICONV_ACCEPTS_NONCONST_INPUT -- Performing Test ICONV_ACCEPTS_NONCONST_INPUT - Success -- Performing Test ICONV_ACCEPTS_CONST_INPUT -- Performing Test ICONV_ACCEPTS_CONST_INPUT - Failed -- Found PNG: /usr/lib/libpng.so (found version "1.6.37") -- Looking for libPNG: found -- Looking for Ogg Vorbis support: found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of int -- Check size of int - done -- Check size of long int -- Check size of long int - done -- Check size of uint64_t -- Check size of uint64_t - done -- Check size of ssize_t -- Check size of ssize_t - done -- Looking for strndup -- Looking for strndup - found -- Looking for strlcpy -- Looking for strlcpy - not found -- Looking for setenv -- Looking for setenv - found -- Looking for ldexpf -- Looking for ldexpf - found -- Looking for realpath -- Looking for realpath - found -- Looking for mmap -- Looking for mmap - found -- Looking for include file unistd.h -- Looking for include file unistd.h - found -- Looking for include file malloc.h -- Looking for include file malloc.h - found -- Looking for include file langinfo.h -- Looking for include file langinfo.h - found -- Looking for _aligned_malloc -- Looking for _aligned_malloc - not found -- Looking for memalign -- Looking for memalign - found -- Looking for posix_memalign -- Looking for posix_memalign - found -- Performing Test PERMITS_OBJECT_TO_FUNCTION_CAST -- Performing Test PERMITS_OBJECT_TO_FUNCTION_CAST - Failed -- -- These are the configured paths: -- PREFIX: /storage3/games/gemrb-bin/ -- LIB_DIR: /storage3/games/gemrb-bin/ -- PLUGIN_DIR: /storage3/games/gemrb-bin//plugins/ -- BIN_DIR: /storage3/games/gemrb-bin/ -- DATA_DIR: /storage3/games/gemrb-bin/ -- MAN_DIR: /storage3/games/gemrb-bin//man/man6 -- SYSCONF_DIR: /storage3/games/gemrb-bin/ -- DOC_DIR: /storage3/games/gemrb-bin//doc -- ICON_DIR: /storage3/games/gemrb-bin/ -- SVG_DIR: /storage3/games/gemrb-bin/ -- MENU_DIR: /storage3/games/gemrb-bin/ -- -- Options: -- LAYOUT: home -- NOCOLOR: disabled -- STATIC_LINK: disabled -- INSOURCEBUILD: disabled -- DISABLE_WERROR: disabled -- WIN32_USE_STDIO: disabled -- SDL_BACKEND: SDL2 -- OPENGL_BACKEND: None -- -- Build type: RelWithDebInfo -- Target bitness: 8*8 -- -- Compiler warnings are fatal. -- If you hit one, let us know and rerun cmake with -DDISABLE_WERROR=1 to continue. -- -- Configuring done CMake Warning (dev) at CMakeLists.txt:512 (ADD_LIBRARY): Policy CMP0115 is not set: Source file extensions must be explicit. Run "cmake --help-policy CMP0115" for policy details. Use the cmake_policy command to set the policy and suppress this warning. File: /storage3/games/gemrb/gemrb/plugins/BAMImporter/BAMFontManager.cpp Call Stack (most recent call first): gemrb/plugins/BAMImporter/CMakeLists.txt:1 (ADD_GEMRB_PLUGIN) This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done -- Build files have been written to: /storage3/games/gemrb/build build (master)> make VERBOSE=1 /usr/bin/cmake -S/storage3/games/gemrb -B/storage3/games/gemrb/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /storage3/games/gemrb/build/CMakeFiles /storage3/games/gemrb/build//CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/storage3/games/gemrb/build' make -f gemrb/core/CMakeFiles/gemrb_core.dir/build.make gemrb/core/CMakeFiles/gemrb_core.dir/depend make[2]: Entering directory '/storage3/games/gemrb/build' cd /storage3/games/gemrb/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /storage3/games/gemrb /storage3/games/gemrb/gemrb/core /storage3/games/gemrb/build /storage3/games/gemrb/build/gemrb/core /storage3/games/gemrb/build/gemrb/core/CMakeFiles/gemrb_core.dir/DependInfo.cmake --color= Dependee "/storage3/games/gemrb/build/gemrb/core/CMakeFiles/gemrb_core.dir/DependInfo.cmake" is newer than depender "/storage3/games/gemrb/build/gemrb/core/CMakeFiles/gemrb_core.dir/depend.internal". Dependee "/storage3/games/gemrb/build/gemrb/core/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/storage3/games/gemrb/build/gemrb/core/CMakeFiles/gemrb_core.dir/depend.internal". Scanning dependencies of target gemrb_core make[2]: Leaving directory '/storage3/games/gemrb/build' make -f gemrb/core/CMakeFiles/gemrb_core.dir/build.make gemrb/core/CMakeFiles/gemrb_core.dir/build make[2]: Entering directory '/storage3/games/gemrb/build' [ 1%] Building CXX object gemrb/core/CMakeFiles/gemrb_core.dir/ActorMgr.cpp.o cd /storage3/games/gemrb/build/gemrb/core && /usr/bin/c++ -DGEM_BUILD_DLL -DHAVE_CONFIG_H -Dgemrb_core_EXPORTS -I/storage3/games/gemrb/build -I/storage3/games/gemrb/gemrb/includes -I/storage3/games/gemrb/gemrb/core -UNDEBUG -o CMakeFiles/gemrb_core.dir/ActorMgr.cpp.o -c /storage3/games/gemrb/gemrb/core/ActorMgr.cpp [ 1%] Building CXX object gemrb/core/CMakeFiles/gemrb_core.dir/Ambient.cpp.o cd /storage3/games/gemrb/build/gemrb/core && /usr/bin/c++ -DGEM_BUILD_DLL -DHAVE_CONFIG_H -Dgemrb_core_EXPORTS -I/storage3/games/gemrb/build -I/storage3/games/gemrb/gemrb/includes -I/storage3/games/gemrb/gemrb/core -UNDEBUG -o CMakeFiles/gemrb_core.dir/Ambient.cpp.o -c /storage3/games/gemrb/gemrb/core/Ambient.cpp
  7. yes, all fresh; I only pass -DLAYOUT and -DPREFIX to cmake; cmake's version is 3.20.2 and of gcc 10.2.0.
  8. Neither 0.8.8 nor the newest git are building for me anymore on Manjaro linux with the same error on make: [ 46%] Linking CXX shared library libgemrb_core.so /usr/bin/ld: CMakeFiles/gemrb_core.dir/RNG.cpp.o: relocation R_X86_64_TPOFF32 against `_ZGVZN5GemRB3RNG11getInstanceEvE8instance' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: CMakeFiles/gemrb_core.dir/Scriptable/Actor.cpp.o: warning: relocation against `_ZN5GemRB8skillracE' in read-only section `.text' /usr/bin/ld: CMakeFiles/gemrb_core.dir/ActorMgr.cpp.o: relocation R_X86_64_PC32 against symbol `_ZTVN5GemRB8ActorMgrE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[2]: *** [gemrb/core/CMakeFiles/gemrb_core.dir/build.make:2136: gemrb/core/libgemrb_core.so.0.8.8-git] Error 1 make[1]: *** [CMakeFiles/Makefile2:1131: gemrb/core/CMakeFiles/gemrb_core.dir/all] Error 2 make: *** [Makefile:136: all] Error 2
  9. I haven't uploaded anything yet. Maybe auto-merge instead of keep-old would be better for GLOBAL_WRITABLE_FILES and/or adding USER_SETTINGS_FILES as in for example https://github.com/haikuports/haikuports/blob/master/games-emulation/retroarch/retroarch-1.9.2.recipe ? There is also an optional section TEST(){} with commands to run a simple test the installation. I also thought about adding displaying README or copying it to the desktop because in the haiku-depot someone gave a one-star rating in German because he didn't know how to install BG2 under Haiku and didn't know what to do next after installing gemrb.
  10. This recipe (gemrb-0.8.7~git.recipe) did it: SUMMARY="An infinite game engine generator" DESCRIPTION="GemRB (Game Engine Made with preRendered Background) \ is a port (actually a new implementation) of the original Infinity \ Engine (the one of Baldur's Gate, Icewind Dale, Planescape: Torment, ...) \ to Linux/Unix, MacOS X and Windows with some enhancements. Would \ you like to create a game like Baldur's Gate?" HOMEPAGE="https://gemrb.org" COPYRIGHT="2003-2021 The GemRB Team" LICENSE="MIT" REVISION="4" srcGitRev="88b4f0b03aa3018c3a13e9cd02ed40933bfcb26d" SOURCE_URI="https://github.com/gemrb/gemrb/archive/$srcGitRev.zip" CHECKSUM_SHA256="8bc09de3b2d8301490afba2191f856d5e7947afa43e82eae2039a306e6ed4718" SOURCE_FILENAME="gemrb-$srcGitRev.zip" SOURCE_DIR="gemrb-$srcGitRev" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="!x86" GLOBAL_WRITABLE_FILES=" settings/gemrb/GemRB.cfg.noinstall.sample keep-old settings/gemrb/GemRB.cfg.sample keep-old " PROVIDES=" gemrb$secondaryArchSuffix = $portVersion cmd:extend2da.py$secondaryArchSuffix = $portVersion cmd:gemrb$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix lib:libfreetype$secondaryArchSuffix lib:libiconv$secondaryArchSuffix lib:libintl$secondaryArchSuffix lib:libogg$secondaryArchSuffix lib:libopenal$secondaryArchSuffix lib:libpng16$secondaryArchSuffix lib:libSDL2_2.0$secondaryArchSuffix lib:libSDL2_mixer_2.0$secondaryArchSuffix lib:libvorbis$secondaryArchSuffix lib:libz$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libfreetype$secondaryArchSuffix devel:libiconv$secondaryArchSuffix devel:libintl$secondaryArchSuffix devel:libogg$secondaryArchSuffix devel:libopenal$secondaryArchSuffix devel:libpng16$secondaryArchSuffix devel:libSDL2$secondaryArchSuffix devel:libSDL2_mixer$secondaryArchSuffix devel:libvorbis$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:cmake cmd:gcc$secondaryArchSuffix cmd:make cmd:python " defineDebugInfoPackage gemrb$secondaryArchSuffix \ "$binDir"/gemrb BUILD() { mkdir -p build cd build cmake .. \ $cmakeDirArgs \ -Wno-dev \ -DDATA_DIR=$dataDir/gemrb \ -DMAN_DIR=$manDir/man6 \ -DSYSCONF_DIR=$settingsDir/gemrb \ -DDOC_DIR=$documentationDir/gemrb \ -DSDL2_INCLUDE_DIR=/boot/system/develop/headers/SDL2/ \ -DSDL2_MIXER_INCLUDE_DIR=/boot/system/develop/headers/SDL2 make $jobArgs } INSTALL() { cd build make install }
  11. There is a central repo: https://ports-mirror.haiku-os.org/gemrb/ and here is the official .recipe of gemrb: https://github.com/haikuports/haikuports/blob/master/games-engines/gemrb/gemrb-0.8.6.recipe so I copied and edited it as gemrb-0.8.7-git.recipe, I changed SOURCE_URI= to https://github.com/gemrb/gemrb.git, deleted CHECKSUM_SHA256 and SOURCE_FILENAME, changed SDL_1.2 to SDL2 added -DSDL2_INCLUDE_DIR=/boot/system/develop/headers/SDL2/ to cmake command and ran haikuporter -S ./gemrb-0.8.7-git.recipe, and it ended with error "gemrb-0.8.7 not found in tree". I guess I would have to add that recipe to haikuports on github.com, but how to test it first locally?
  12. I googled this explanation: So I run cmake again as cmake -DSDL2_INCLUDE_DIR=/boot/system/develop/headers/SDL2/ -DPREFIX=/system/non-packaged/ .. and make install doesn't fail anymore. To install it normally one would have to create a gemrb.recipe file and install it using the command 'haikuporter -S ./gemrb.recipe' or so I've gathered but not yet tried. /boot/system/non-packged/bin/gemrb works normally and I've discovered that Fullscreen from ingame works only when the window was not manually resized previously. Once one resizes it the thing showed in the gif above happens.
  13. The outdated package provided by haikuports was build using sdl 1.2, but I managed to build the newest git version using SDL2. cmake had problems finding the headers from the properly installed libsdl2_devel package so I had to use the option "cmake -DSDL2_INCLUDE_DIR=/boot/system/develop/headers/SDL2/ .." (apparently a common issue with SDL on Haiku). make install also fails, so I manually edited paths in GemRB.cfg to all unhardcoded, plugins dirs etc. to the the source directory. Resizing the window works, enabling fullscreen is weird but at least you can somehow uncheck it.
  14. I made a simple play test of GemRB in Haiku out of curiosity and I encountered a problem with mouse in fullscreen, that makes it unplayable. Is it a known problem? https://www.youtube.com/watch?v=Qy1OxwwTbbM&t=12m13s
×
×
  • Create New...