loot / libloot

A C++ library for accessing LOOT's metadata and sorting functionality.
GNU General Public License v3.0
32 stars 11 forks source link

'vector' in namespace 'std' does not name a template type #61

Closed C0rn3j closed 5 years ago

C0rn3j commented 5 years ago

I'm trying to build libloot following this guide on an Arch Linux LXD container but I am failing -

Vector include: Error log: https://haste.rys.pw/raw/ilimuzokel

UnicodeString using: Error log: https://haste.rys.pw/raw/ijikubahub

Build process - https://github.com/loot/loot/pull/1162#issuecomment-545120145

Ortham commented 5 years ago

The vector errors are probably due to GCC 9 being more strict about needing to include headers where they're used, or something like that.

UnicodeString is from ICU, CMake would have failed if it couldn't find it, but maybe there's a version mismatch that involves API changes?

C0rn3j commented 5 years ago

I am able to install older ICU versions, but I don't get how to force CMake to use them, would you have an idea?

Ortham commented 5 years ago

Try setting ICU_ROOT as mentioned here.

C0rn3j commented 5 years ago

I failed trying to mess with ICU_ROOT, but managed to fix both my actual compile issues, sent a PR.