更新 source__build_carla.md
This commit is contained in:
parent
b5d7856fc7
commit
1bd9bc6fcc
@ -149,14 +149,15 @@ clone最新的就行,不用切换分支。
|
|||||||
cd carla/root
|
cd carla/root
|
||||||
mkdir build # 名字自定义
|
mkdir build # 名字自定义
|
||||||
cd build
|
cd build
|
||||||
cmake .. \
|
cmake \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=Client \
|
-DCMAKE_BUILD_TYPE=Client \
|
||||||
-DLIBCARLA_BUILD_RELEASE=ON \
|
-DLIBCARLA_BUILD_RELEASE=ON \
|
||||||
-DLIBCARLA_BUILD_DEBUG=OFF \
|
-DLIBCARLA_BUILD_DEBUG=OFF \
|
||||||
-DLIBCARLA_BUILD_TEST=OFF \
|
-DLIBCARLA_BUILD_TEST=OFF \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=./Examples/CppClient/ToolChain.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=../Examples/CppClient/ToolChain.cmake \
|
||||||
-DCMAKE_INSTALL_PREFIX=./
|
-DCMAKE_INSTALL_PREFIX=../carlalib \
|
||||||
|
..
|
||||||
# 说明
|
# 说明
|
||||||
# -DCMAKE_INSTALL_PREFIX 编译好后,库文件和头文件的安装目录 自由指定
|
# -DCMAKE_INSTALL_PREFIX 编译好后,库文件和头文件的安装目录 自由指定
|
||||||
# -DLIBCARLA_BUILD_RELEASE=ON -DLIBCARLA_BUILD_DEBUG=OFF 指定编译模式
|
# -DLIBCARLA_BUILD_RELEASE=ON -DLIBCARLA_BUILD_DEBUG=OFF 指定编译模式
|
||||||
|
Loading…
Reference in New Issue
Block a user