Package Details: freeaoe-git 1437.7e7405f-1

Git Clone URL: https://aur.archlinux.org/freeaoe-git.git (read-only, click to copy)
Package Base: freeaoe-git
Description: A free engine capable of running Age of Kings.
Upstream URL: https://github.com/sandsmark/freeaoe
Licenses: GPL3
Conflicts: freeaoe
Provides: freeaoe
Submitter: sandsmark
Maintainer: sandsmark
Last Packager: sandsmark
Votes: 3
Popularity: 0.017421
First Submitted: 2018-08-18 13:17 (UTC)
Last Updated: 2021-02-28 10:10 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Latest Comments

dreieck commented on 2022-11-16 15:37 (UTC)

Build fails for me with AssetManager.h:54:28: error: ‘vector’ in namespace ‘std’ does not name a template type:

[ 29%] Building CXX object CMakeFiles/freeaoe_common.dir/src/resource/AssetManager.cpp.o
In file included from /[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:19:
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:54:28: error: ‘vector’ in namespace ‘std’ does not name a template type
   54 | using DrsFileVector = std::vector<DrsFilePtr>;
      |                            ^~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:33:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
   32 | #include <genie/resource/Slope.h>
  +++ |+#include <vector>
   33 | 
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:218:5: error: ‘DrsFileVector’ does not name a type; did you mean ‘DrsFilePtr’?
  218 |     DrsFileVector loadDrs(const std::vector<std::string> &filenames);
      |     ^~~~~~~~~~~~~
      |     DrsFilePtr
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:221:5: error: ‘DrsFileVector’ does not name a type; did you mean ‘DrsFilePtr’?
  221 |     DrsFileVector m_gamedataFiles;
      |     ^~~~~~~~~~~~~
      |     DrsFilePtr
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:222:5: error: ‘DrsFileVector’ does not name a type; did you mean ‘DrsFilePtr’?
  222 |     DrsFileVector m_soundFiles;
      |     ^~~~~~~~~~~~~
      |     DrsFilePtr
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:224:5: error: ‘DrsFileVector’ does not name a type; did you mean ‘DrsFilePtr’?
  224 |     DrsFileVector m_interfaceFiles;
      |     ^~~~~~~~~~~~~
      |     DrsFilePtr
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:228:5: error: ‘DrsFileVector’ does not name a type; did you mean ‘DrsFilePtr’?
  228 |     DrsFileVector m_allFiles;
      |     ^~~~~~~~~~~~~
      |     DrsFilePtr
[ 30%] Building CXX object CMakeFiles/freeaoe_common.dir/src/resource/TerrainSprite.cpp.o
[ 31%] Building CXX object CMakeFiles/freeaoe_common.dir/src/resource/GameSpecific.cpp.o
[ 32%] Building CXX object CMakeFiles/freeaoe_common.dir/src/global/Config.cpp.o
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp: In member function ‘genie::ScnFilePtr AssetManager::getScn(uint32_t)’:
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:149:59: error: ‘m_gamedataFiles’ was not declared in this scope
  149 |     for (const std::shared_ptr<genie::DrsFile> &drsFile : m_gamedataFiles) {
      |                                                           ^~~~~~~~~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp: In member function ‘virtual std::shared_ptr<genie::UIFile> AssetManager::getUIFile(const std::string&)’:
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:165:59: error: ‘m_interfaceFiles’ was not declared in this scope; did you mean ‘m_terrainFile’?
  165 |     for (const std::shared_ptr<genie::DrsFile> &drsFile : m_interfaceFiles) {
      |                                                           ^~~~~~~~~~~~~~~~
      |                                                           m_terrainFile
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp: In member function ‘virtual std::shared_ptr<unsigned char []> AssetManager::loadWav(uint32_t) const’:
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:178:59: error: ‘m_soundFiles’ was not declared in this scope
  178 |     for (const std::shared_ptr<genie::DrsFile> &drsFile : m_soundFiles) {
      |                                                           ^~~~~~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:184:59: error: ‘m_allFiles’ was not declared in this scope
  184 |     for (const std::shared_ptr<genie::DrsFile> &drsFile : m_allFiles) {
      |                                                           ^~~~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp: In member function ‘virtual genie::SlpFilePtr AssetManager::getSlp(uint32_t, ResourceType)’:
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:220:63: error: ‘m_interfaceFiles’ was not declared in this scope; did you mean ‘m_terrainFile’?
  220 |         for (const std::shared_ptr<genie::DrsFile> &drsFile : m_interfaceFiles) {
      |                                                               ^~~~~~~~~~~~~~~~
      |                                                               m_terrainFile
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:233:63: error: ‘m_gamedataFiles’ was not declared in this scope
  233 |         for (const std::shared_ptr<genie::DrsFile> &drsFile : m_gamedataFiles) {
      |                                                               ^~~~~~~~~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:251:59: error: ‘m_allFiles’ was not declared in this scope
  251 |     for (const std::shared_ptr<genie::DrsFile> &drsFile : m_allFiles) {
      |                                                           ^~~~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp: In member function ‘virtual const genie::PalFile& AssetManager::getPalette(uint32_t)’:
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:323:59: error: ‘m_allFiles’ was not declared in this scope
  323 |     for (const std::shared_ptr<genie::DrsFile> &drsFile : m_allFiles) {
      |                                                           ^~~~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:331:59: error: ‘m_allFiles’ was not declared in this scope
  331 |     for (const std::shared_ptr<genie::DrsFile> &drsFile : m_allFiles) {
      |                                                           ^~~~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp: In member function ‘bool AssetManager::initializeInternal(const std::string&, genie::GameVersion)’:
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:427:5: error: ‘m_gamedataFiles’ was not declared in this scope; did you mean ‘gamedataFiles’?
  427 |     m_gamedataFiles = loadDrs(gamedataFiles);
      |     ^~~~~~~~~~~~~~~
      |     gamedataFiles
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:427:31: error: cannot convert ‘const std::vector<std::__cxx11::basic_string<char> >’ to ‘const std::string&’ {aka ‘const std::__cxx11::basic_string<char>&’}
  427 |     m_gamedataFiles = loadDrs(gamedataFiles);
      |                               ^~~~~~~~~~~~~
      |                               |
      |                               const std::vector<std::__cxx11::basic_string<char> >
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:219:43: note:   initializing argument 1 of ‘DrsFilePtr AssetManager::loadDrs(const std::string&)’
  219 |     DrsFilePtr loadDrs(const std::string &filename);
      |                        ~~~~~~~~~~~~~~~~~~~^~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:438:5: error: ‘m_interfaceFiles’ was not declared in this scope; did you mean ‘interfaceFiles’?
  438 |     m_interfaceFiles = loadDrs(interfaceFiles);
      |     ^~~~~~~~~~~~~~~~
      |     interfaceFiles
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:438:32: error: cannot convert ‘const std::vector<std::__cxx11::basic_string<char> >’ to ‘const std::string&’ {aka ‘const std::__cxx11::basic_string<char>&’}
  438 |     m_interfaceFiles = loadDrs(interfaceFiles);
      |                                ^~~~~~~~~~~~~~
      |                                |
      |                                const std::vector<std::__cxx11::basic_string<char> >
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:219:43: note:   initializing argument 1 of ‘DrsFilePtr AssetManager::loadDrs(const std::string&)’
  219 |     DrsFilePtr loadDrs(const std::string &filename);
      |                        ~~~~~~~~~~~~~~~~~~~^~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:461:5: error: ‘m_soundFiles’ was not declared in this scope; did you mean ‘soundFiles’?
  461 |     m_soundFiles = loadDrs(soundFiles);
      |     ^~~~~~~~~~~~
      |     soundFiles
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:461:28: error: cannot convert ‘const std::vector<std::__cxx11::basic_string<char> >’ to ‘const std::string&’ {aka ‘const std::__cxx11::basic_string<char>&’}
  461 |     m_soundFiles = loadDrs(soundFiles);
      |                            ^~~~~~~~~~
      |                            |
      |                            const std::vector<std::__cxx11::basic_string<char> >
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.h:219:43: note:   initializing argument 1 of ‘DrsFilePtr AssetManager::loadDrs(const std::string&)’
  219 |     DrsFilePtr loadDrs(const std::string &filename);
      |                        ~~~~~~~~~~~~~~~~~~~^~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:468:24: error: ‘m_allFiles’ was not declared in this scope
  468 |     DBG << "Loaded" << m_allFiles.size() << "files";
      |                        ^~~~~~~~~~
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp: At global scope:
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:858:1: error: ‘DrsFileVector’ does not name a type; did you mean ‘DrsFilePtr’?
  858 | DrsFileVector AssetManager::loadDrs(const std::vector<std::string> &filenames)
      | ^~~~~~~~~~~~~
      | DrsFilePtr
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp: In member function ‘DrsFilePtr AssetManager::loadDrs(const std::string&)’:
/[...]/freeaoe-git/src/freeaoe/src/resource/AssetManager.cpp:890:5: error: ‘m_allFiles’ was not declared in this scope
  890 |     m_allFiles.push_back(file);
      |     ^~~~~~~~~~
[ 33%] Building CXX object CMakeFiles/freeaoe_common.dir/src/global/EventManager.cpp.o
make[2]: *** [CMakeFiles/freeaoe_common.dir/build.make:354: CMakeFiles/freeaoe_common.dir/src/resource/AssetManager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:102: CMakeFiles/freeaoe_common.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Regards!

sandsmark commented on 2020-02-23 21:21 (UTC)

you need to reinstall mini_al, it changed name to miniaudio.

aconsolelogger commented on 2020-02-07 14:54 (UTC) (edited on 2020-02-07 14:58 (UTC) by aconsolelogger)

The build fails for me. All dependencies are installed (or makepkg wouldn't start, would it?). Cheers.

[ 65%] Building CXX object CMakeFiles/freeaoe_common.dir/src/audio/AudioPlayer.cpp.o
...makepkg/freeaoe-git/src/freeaoe/src/audio/AudioPlayer.cpp:28:10: fatal error: miniaudio/miniaudio.h: No such file or directory
   28 | #include <miniaudio/miniaudio.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.