You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I finally successfully compiled the library on Windows with mingw32 (TDM-GCC), with some modifications. I opened this issue to see if the compilation process could be improved.
It seems to work well but in the last step (linking)
-- LUA_RAPIDJSON_VERSION: 0.5.0
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Program Files (x86)/lua-rapidjson-0.5.0/build.luarocks
[ 20%] Linking CXX shared module rapidjson.dll
g++.exe: error: C:Program Files (x86)LuaRocks/lua5.1.dll: No such file or directory
CMakeFiles\lua-rapidjson.dir\build.make:134: recipe for target 'rapidjson.dll' failed
mingw32-make.exe[2]: *** [rapidjson.dll] Error 1
CMakeFiles\Makefile2:71: recipe for target 'CMakeFiles/lua-rapidjson.dir/all' failed
mingw32-make.exe[1]: *** [CMakeFiles/lua-rapidjson.dir/all] Error 2
Makefile:128: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
Error: Build error: Failed building.
I found the C:Program Files (x86)LuaRocks/lua5.1.dll was wrong because the backslash \ is regarded as escape character. I don't know how to change the CMake configuration, so I manually modified build.luarocks/CMakeFiles/lua-rapidjson.dir/linklibs.rsp to something like
I finally successfully compiled the library on Windows with mingw32 (TDM-GCC), with some modifications. I opened this issue to see if the compilation process could be improved.
It seems to work well but in the last step (linking)
I found the
C:Program Files (x86)LuaRocks/lua5.1.dll
was wrong because the backslash\
is regarded as escape character. I don't know how to change the CMake configuration, so I manually modifiedbuild.luarocks/CMakeFiles/lua-rapidjson.dir/linklibs.rsp
to something like"C:/Program Files (x86)/LuaRocks/lua5.1.dll" -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
And ran
And succeeded! The compiled dll is here
rapidjson.zip
The text was updated successfully, but these errors were encountered: