diff --git a/src/nostalgia/CMakeLists.txt b/src/nostalgia/CMakeLists.txt index 870af9e7..02b66140 100644 --- a/src/nostalgia/CMakeLists.txt +++ b/src/nostalgia/CMakeLists.txt @@ -2,6 +2,7 @@ #setup libraries if(NOSTALGIA_BUILD_TYPE STREQUAL "Native") + find_package(SDL2 CONFIG REQUIRED) if(NOSTALGIA_BUILD_STUDIO) find_package(Qt5Widgets REQUIRED) find_package(Qt5QuickWidgets REQUIRED) diff --git a/src/nostalgia/tools/pack/pack.cpp b/src/nostalgia/tools/pack/pack.cpp index 23270f90..8d51d99a 100644 --- a/src/nostalgia/tools/pack/pack.cpp +++ b/src/nostalgia/tools/pack/pack.cpp @@ -78,7 +78,7 @@ struct VerificationPair { std::cout << "copying directory: " << path << '\n'; std::vector verficationPairs; // copy - oxReturnError(src->ls(path.c_str(), [&verficationPairs, src, dest, path](const char *name, ox::InodeId_t) { + oxReturnError(src->ls(path.c_str(), [&verficationPairs, src, dest, path](std::string name, ox::InodeId_t) { std::cout << "reading " << name << '\n'; auto currentFile = path + name; auto [stat, err] = src->stat((currentFile).c_str());