Compile XLua with lua-rapidjson integrated
xLua:[v2.1.16]https://github.com/Tencent/xLua/releases/tag/v2.1.16 lua-rapidjson: [v2.1.16]https://github.com/xpol/lua-rapidjson/releases/tag/v0.7.1 cmake 3.23.1 gcc 13.1.6 (clang-1316.0.21.2.3)
xLua的CMakeLists中添加如下:
#begin lua-rapidjson set (RAPIDJSON_SRC lua-rapidjson/source/Document.cpp lua-rapidjson/source/rapidjson.cpp lua-rapidjson/source/Schema.cpp lua-rapidjson/source/values.cpp ) set_property( SOURCE ${RAPIDJSON_SRC} APPEND PROPERTY COMPILE_DEFINITIONS LUA_LIB ) list(APPEND THIRDPART_INC lua-rapidjson/include) set (THIRDPART_SRC ${THIRDPART_SRC} ${RAPIDJSON_SRC}) #end lua-rapidjson
sh make_ios_lua53.sh 编译报错: ../build/lua-rapidjson/source/values.hpp:232:10: error: calling a private constructor of class 'rapidjson::GenericValue<rapidjson::UTF8<> >' return details::toValue(L, idx, 0, allocator);
In file included from ../build/lua-rapidjson/source/rapidjson.cpp:16: ../build/lua-rapidjson/include/rapidjson/document.h:690:5: note: declared private here GenericValue(const GenericValue& rhs);
楼主解决了没有?请求支援 I need help
need help
Android下可以编译过,应该要使用c++11才行
Android下可以编译过,应该要使用c++11才行
It works well. Thanks for your help!
Add the following code to the file CMakeLists.txt (cmake version 3.1+)
set(CMAKE_CXX_STANDARD 11)