1、第三方库没下载下来,需要加权限,再执行下面命令
git submodule update --init
2、报错 CMake Error at cmake/platform/platform_apple.cmake:40 (message):
注释194行代码:
注释CMakeLists.txt # include(platform_apple)
3、报错
加参数带上 cmake参与构建
cmake .. -G Xcode -DENABLE_MONGODB=OFF -DENABLE_REDIS=OFF -DENABLE_PDF=OFF -DENABLE_ZIP=OFF
-DENABLE_ENCODINGS=OFF -DENABLE_PAGECOMPILER=OFF -DENABLE_PAGECOMPILER_FILE2PAGE=OFF
-DENABLE_CRYPTO=ON -DENABLE_NETSSL=ON -DENABLE_JWT=ON
4、报错
Non-aggregate type 'std::vector<SMLK_UINT8>' (aka 'vector<unsigned char>') cannot be initialized with an initializer list
No member named 'emplace_back' in 'std::vector<unsigned char>'; did you mean '__emplace_back'?
![F17B17F5-1B5C-43E1-B781-DA41D656140F.png](https://upload-images.jianshu.io/upload_images/23749983-b64ae3e897bfcf93.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
这里面还涉及gnu匹配clang编译器的,还要c++ 11以上特性