Hello, I've been having trouble building the package. It fails at 73% on the CrashHandlerImpl.cpp.o
file.
Here's what the output has to say:
[ 73%] Building CXX object CMakeFiles/arx.dir/src/platform/crashhandler/CrashHandlerImpl.cpp.o
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp: In member function ‘bool CrashHandlerImpl::createSharedMemory()’:
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp:110:31: warning: catching polymorphic type ‘class boost::interprocess::interprocess_exception’ by value [-Wcatch-value=]
110 | } catch(boost::interprocess::interprocess_exception) {
| ^~~~~~~~~~~~~~~~~~~~~~
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp: In member function ‘bool CrashHandlerImpl::deleteOldReports(size_t)’:
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp:224:15: error: ‘map’ in namespace ‘std’ does not name a template type
224 | typedef std::map<std::string, fs::path> CrashReportMap;
| ^~~
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp:34:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
33 | #include "platform/Environment.h"
+++ |+#include <map>
34 |
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp:225:2: error: ‘CrashReportMap’ was not declared in this scope
225 | CrashReportMap oldCrashes;
| ^~~~~~~~~~~~~~
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp:233:5: error: ‘oldCrashes’ was not declared in this scope
233 | oldCrashes[it.name()] = folderPath;
| ^~~~~~~~~~
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp:239:24: error: ‘oldCrashes’ was not declared in this scope
239 | if(nbReportsToKeep >= oldCrashes.size())
| ^~~~~~~~~~
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp:242:26: error: ‘oldCrashes’ was not declared in this scope
242 | int nbReportsToDelete = oldCrashes.size() - nbReportsToKeep;
| ^~~~~~~~~~
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp:245:2: error: ‘CrashReportMap’ is not a class, namespace, or enumeration
245 | CrashReportMap::const_iterator it = oldCrashes.begin();
| ^~~~~~~~~~~~~~
/home/matt/.cache/yay/arx-libertatis/src/arx-libertatis-1.1.2/src/platform/crashhandler/CrashHandlerImpl.cpp:246:47: error: ‘it’ was not declared in this scope; did you mean ‘i’?
246 | for(int i = 0; i < nbReportsToDelete; ++i, ++it) {
| ^~
| i
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics
make[2]: *** [CMakeFiles/arx.dir/build.make:1564: CMakeFiles/arx.dir/src/platform/crashhandler/CrashHandlerImpl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:278: CMakeFiles/arx.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
error making: %!s(func() string=0x564720cb0a60)
Thank you for your help !
Pinned Comments
smls commented on 2015-08-10 12:17
================
INTRODUCTION (updated)
================
Arx Fatalis[1] is a proprietary first-person role-playing game for Win32.
The game executables have been open-sourced, and meanwhile ported to Linux (and improved) by the Arx Libertatis[2] project. This package provides the latest stable executables released by said project.
However, the game data is still proprietary and can only be acquired by buying the full Win32 version of the game[3]. The following AUR packages exist for installing the Arx Fatalis game data for use with the Arx Libertatis executables, depending on the source:
https://aur.archlinux.org/packages/arxfatalis-data-gog
https://aur.archlinux.org/packages/arxfatalis-data-copy
https://aur.archlinux.org/packages/arxfatalis-data-demo
-----
[1] http://www.arkane-studios.com/uk/arx.php
[2] http://arx-libertatis.org
[3] http://wiki.arx-libertatis.org/Getting_the_game_data