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
When building a Cocos2d-x C++ project on Arch Linux using the AUR package cocos2d-x-src (version 3.17.2-1), the compilation fails due to an assignment of a read-only member in the RapidJSON library.
Steps to Reproduce
Install the cocos2d-x-src package from AUR:
yay -S cocos2d-x-src
Create a new Cocos2d-x project:
cocos new MyGame -p com.example.mygame -l cpp
cd MyGame
Attempt to build the project:
cocos run -p linux
Logs
[ 9%] Building CXX object engine/cocos/core/CMakeFiles/cocos2d.dir/3d/CCAnimation3D.cpp.o
In file included from /path/to/cocos2d/external/recast/../json/document-wrapper.h:13,
from /path/to/cocos2d/cocos/3d/CCAnimation3D.cpp:27:
/path/to/cocos2d/external/recast/../json/document.h: In member function‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/path/to/cocos2d/external/recast/../json/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
319 | GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
|~~~~~~~^~~~~~~~~~~~
Environment Detail
Operating System: Arch Linux
Cocos2d-x Version: 3.17.2 (installed via AUR package cocos2d-x-src 3.17.2-1)
Compiler: GCC 14.2.1
CMake Version: 3.31.0
RapidJSON Version: (Included in the cocos2d-x-src package)
The text was updated successfully, but these errors were encountered:
Description
When building a Cocos2d-x C++ project on Arch Linux using the AUR package cocos2d-x-src (version 3.17.2-1), the compilation fails due to an assignment of a read-only member in the RapidJSON library.
Steps to Reproduce
cocos new MyGame -p com.example.mygame -l cpp cd MyGame
Logs
Environment Detail
The text was updated successfully, but these errors were encountered: