From 1bd9bc6fccf906ee5e6264e2ced6ffc76fd5291c Mon Sep 17 00:00:00 2001 From: LiXiaoqi <2360211477@qq.com> Date: Fri, 18 Oct 2024 14:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20source=5F=5Fbuild=5Fcarla.?= =?UTF-8?q?md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source__build_carla.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/source__build_carla.md b/source__build_carla.md index 4e6f3cb..ac29dd3 100644 --- a/source__build_carla.md +++ b/source__build_carla.md @@ -149,14 +149,15 @@ clone最新的就行,不用切换分支。 cd carla/root mkdir build # 名字自定义 cd build - cmake .. \ - -G "Ninja" \ - -DCMAKE_BUILD_TYPE=Client \ - -DLIBCARLA_BUILD_RELEASE=ON \ - -DLIBCARLA_BUILD_DEBUG=OFF \ - -DLIBCARLA_BUILD_TEST=OFF \ - -DCMAKE_TOOLCHAIN_FILE=./Examples/CppClient/ToolChain.cmake \ - -DCMAKE_INSTALL_PREFIX=./ + cmake \ + -G "Ninja" \ + -DCMAKE_BUILD_TYPE=Client \ + -DLIBCARLA_BUILD_RELEASE=ON \ + -DLIBCARLA_BUILD_DEBUG=OFF \ + -DLIBCARLA_BUILD_TEST=OFF \ + -DCMAKE_TOOLCHAIN_FILE=../Examples/CppClient/ToolChain.cmake \ + -DCMAKE_INSTALL_PREFIX=../carlalib \ + .. # 说明 # -DCMAKE_INSTALL_PREFIX 编译好后,库文件和头文件的安装目录 自由指定 # -DLIBCARLA_BUILD_RELEASE=ON -DLIBCARLA_BUILD_DEBUG=OFF 指定编译模式