======Introduction====== // Notes for Chapter 2// ---- ====平台支持==== * //Win 11// * //Ubuntu 22.04.1 LTS// ====Windows Setup==== ===安装 VS-code=== * 安装时,确认 ''Add to Path'' checked * 常用快捷键 # Debug & Run Ctrl + Shift + D # Extensions Ctrl + Shift + X ==常用插件== * C/C++ Extension Pack * Cmake / Cmake Tools ===编译器版本=== * Visual C++ Compiler (Microsoft Visual C++ Redistributable for Visual Studio 2022) * https://code.visualstudio.com/docs/cpp/config-msvc * 需要运行 Developer Command Prompt(DCP) * 在 DCP 中定位到项目目录,使用 ''code .'' 命令。该命令会从当前目录打开 VScode,并使用 MSVC 作为 VScode 的编译环境。 ===安装 CMake=== * https://cmake.org/files/v3.27/ * 确保 ''Add CMake to the system PATH for all users'' enable * 检查版本 ''cmake -- version'' ===安装 Conan=== - 安装 Python 3.11.4 https://www.python.org/downloads/release/python-3114/ - 安装 conan # 安装 pip install conan==1.61.0 # 检查 conan -v * 1.61.0 版本 conan 与 3.12 以上 python 版本冲突。 * 确保 python 的 script 目录添加到了 Path (user) 中