Closed hxxyyangyong closed 2 days ago
I currently don't have a CentOS env at hand, it will take some time. I noticed that in your posted log, you are using GCC. What's the version of it? And what is the version of your CentOS?
I just noticed that your code is not up to date. Line 20 of PBUtility.cpp in the master branch. https://github.com/Tencent/MMKV/blob/master/Core/PBUtility.cpp#L20
PS: the master branch is known for some GCC & Linux compile failures. You can checkout the dev branch for testing.
我可以试试dev分支, 但我在mac上执行都是OK的,只是将执行环境迁移到了centOS而已,当然两边的基础环境工具版本是不一致的。
dev branch is ok, need run setup.py ,custom build Still failed
我在mac上所有的步骤都能成功,但是迁移到centos上就出现了错误
各种版本: cmake 3.20.2 Python 3.9.18 clang 16.0.6
不论是我自己构建:
cd mmkv/POSIX mkdir build cd build cmake .. make
还是直接
python3 setup.py install
都是如下的报错 报错信息如下: