-
DEC0006
Publicado em 27/03/2023 às 16:18Todos os usuários
- Instalar VSCode (https://code.visualstudio.com/)
- Instalar extensões do VSCode: “C/C++ for Visual Studio Code”, “CMake Tools”
Usuários de Windows
- Remover instalação do MinGW se este já estiver instalado (geralmente fica em C:\MinGW)
- Instalar Msys2 (https://www.msys2.org)
- Abrir terminal do msys2 e executar o comando “pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-gtest mingw-w64-x86_64-gdb mingw-w64-x86_64-pkg-config”
- Incluir o diretório C:\msys64\mingw64\bin na variável de ambiente PATH (tutorial em https://knowledge.autodesk.com/pt-br/support/navisworks-products/troubleshooting/caas/sfdcarticles/sfdcarticles/PTB/Adding-folder-path-to-Windows-PATH-environment-variable.html)
Usuários de Linux (Ubuntu)
- No terminal, executar comando “apt-get install build-essential gdb g++ cmake valgrind libgtest-dev pkg-config”
- No terminal, executar comando “cd /usr/src/googletest && sudo cmake . && sudo cmake –build . –target install”
Usuários de MacOS
- Instalar Xcode e Command Line Tools (https://developer.apple.com/downloads)
- Instalar Home Brew (https://brew.sh/)
- No terminal, executar comando “brew install cmake googletest pkg-config”