diff --git a/apps/openmw/CMakeLists.txt b/apps/openmw/CMakeLists.txt index e9aaa11087..9b483c0278 100644 --- a/apps/openmw/CMakeLists.txt +++ b/apps/openmw/CMakeLists.txt @@ -223,7 +223,10 @@ if(APPLE) if (FFmpeg_FOUND) find_library(COREVIDEO_FRAMEWORK CoreVideo) find_library(VDA_FRAMEWORK VideoDecodeAcceleration) - target_link_libraries(openmw z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK}) + target_link_libraries(openmw z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK} + "-framework VideoToolbox" + "-framework AudioToolbox" + "-framework CoreMedia") endif() endif(APPLE) diff --git a/components/esm/luascripts.cpp b/components/esm/luascripts.cpp index d541482ad6..6f8566c8a0 100644 --- a/components/esm/luascripts.cpp +++ b/components/esm/luascripts.cpp @@ -104,7 +104,7 @@ void ESM::LuaScriptsCfg::adjustRefNums(const ESMReader& esm) throw std::runtime_error("Incorrect contentFile index"); }; - lua_State* L = lua_open(); + lua_State* L = luaL_newstate(); LuaUtil::BasicSerializer serializer(adjustRefNumFn); auto adjustLuaData = [&](std::string& data)