{"id":3116,"date":"2022-07-27T14:09:52","date_gmt":"2022-07-27T05:09:52","guid":{"rendered":"http:\/\/43.203.250.216\/?p=3116"},"modified":"2025-10-20T12:27:52","modified_gmt":"2025-10-20T03:27:52","slug":"carla-client%eb%a5%bc-build%ed%95%b4%ec%95%bc-%ed%95%98%eb%8a%94%eb%8d%b0-clang-8%ec%9d%b4-%ec%97%86%eb%8c%84%eb%8b%a4","status":"publish","type":"post","link":"https:\/\/litcoder.com\/?p=3116","title":{"rendered":"CARLA client\ub97c build\ud574\uc57c \ud558\ub294\ub370 clang-8\uc774 \uc5c6\ub304\ub2e4."},"content":{"rendered":"\n<p>2022\ub144 9\uc6d4 \ud604\uc7ac CARLA simulator\uc758 \ucd5c\uc2e0 \ubc84\uc804\uc778 0.9.13\uc73c\ub85c PythonAPI\ub97c \ube4c\ub4dc\ud558\ub824\uace0 \ud558\uba74 clang-8 version\uc744 \uc694\uad6c\ud558\ub294\ub370 Ubuntu 22.04\uc5d0\uc11c\ub294 clang-8\uc758 repository\ub97c \ucd94\uac00\ud558\uace0 \uc124\uce58 \uc2dc\ub3c4\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uc758\uc874\uc131 \uc624\ub958\uac00 \uc0dd\uae34\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">The following packages have unmet dependencies:\n clang-8 : Depends: libllvm8 (>= 1:8~svn298832-1~) but it is not going to be installed\n           Depends: libstdc++-5-dev but it is not installable\n           Depends: libgcc-5-dev but it is not installable\n           Depends: libobjc-5-dev but it is not installable\n           Depends: libclang-common-8-dev (= 1:8.0.1+svn369350-1~exp1~20200112113617.82) but it is not going to be installed\n           Depends: libclang1-8 (= 1:8.0.1+svn369350-1~exp1~20200112113617.82) but it is not going to be installed\n           Recommends: llvm-8-dev but it is not going to be installed\n           Recommends: libomp-8-dev but it is not going to be installed\n lld-8 : Depends: libllvm8 (= 1:8.0.1+svn369350-1~exp1~20200112113617.82) but it is not going to be installed\nE: Unable to correct problems, you have held broken packages.\n<\/pre>\n\n\n\n<p>\uadf8\ub9ac\uace0 \uc544\uc27d\uac8c\ub3c4 \ud558\uc704 \ud638\ud658\uc5d0 \ubb38\uc81c\uac00 \uc788\ub294 \uac83\uc778\uc9c0 \uc124\uce58 \uac00\ub2a5\ud55c \ucd5c\ud558 \ubc84\uc804\uc778 clang-10\uc73c\ub85c\ub294 CARLA client build\uac00 \ub418\uc9c0 \uc54a\ub294\ub2e4. \ube4c\ub4dc \uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c \ubc84\uc804 \uc810\uac80\ud558\ub294 \ubd80\ubd84\uc744 \uac74\ub108 \ub6f0\ub3c4\ub85d \uc218\uc815\ud558\uace0 clang-10\uc73c\ub85c \uac15\uc81c \ube4c\ub4dc\ub97c \uc2dc\ub3c4\ud574\ubd24\ub354\ub2c8 \uc5ed\uc2dc\ub098 \ube4c\ub4dc\uc624\ub958\uac00 \ub098\uba74\uc11c \uc77c\uc774 \ucee4\uc9c8\uac83 \uac19\ub2e4\ub294 \ub290\ub08c\uc774 \uac15\ud558\uac8c \ub4e0\ub2e4.<\/p>\n\n\n\n<p>\uc77c\uc77c\uc774 \ube4c\ub4dc\uc624\ub958 \uc7a1\ub294 \uc0bd\uc9c8\uc744 \ud558\uace0 &#8216;CARLA client build \uc0bd\uc9c8\uae30&#8217;\ub97c \ud3ec\uc2a4\ud305 \ud560 \uc218\ub3c4 \uc788\uc5c8\uaca0\uc9c0\ub9cc \uc774\ubc88\uc5d0\ub294 \ubb38\uba85\uc758 \uc774\uae30\uc778 Docker\ub97c \ud55c\ubc88 \ub204\ub824 \ubcf4\uae30\ub85c\ud588\ub2e4.<\/p>\n\n\n\n<p>\uba3c\uc800, Docker\ub85c clang-8 \uc124\uce58\uac00 \uac00\ub2a5\ud55c Ubuntu 18.04\uc5d0\uc11c \ube4c\ub4dc\ub97c \uc218\ud589\ud55c \ub2e4\uc74c(\ucc38\uace0 CARLA &#8211; <a href=\"https:\/\/carla.readthedocs.io\/en\/latest\/build_linux\/\" data-type=\"URL\" data-id=\"https:\/\/carla.readthedocs.io\/en\/latest\/build_linux\/\">Linux Build<\/a>) \ube4c\ub4dc\uac00 \uc644\ub8cc\ub418\uba74 Python client package\ub97c host\uc5d0 \uc124\uce58\ud55c\ub2e4.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Docker\ub85c Ubuntu18.04\ub97c \uc124\uce58\ud558\uace0 CARLA\uc758 \uc18c\uc2a4 \ucf54\ub4dc\uc704\uce58\ub97c \/carla\ub85c \ub9c8\uc6b4\ud2b8\ud558\uc5ec \uc2e4\ud589\ud55c\ub2e4.<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ docker pull ubuntu:18.04\n$ docker run -ti -v &lt;carla-root-path>:\/carla ubuntu:18.04 \/bin\/bash<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li> Clang-8\uc758 repository\ub97c \ucd94\uac00\ud558\uace0 \uad00\ub828\ub41c \ud328\ud0a4\uc9c0\ub4e4\uc744 \uc124\uce58\ud55c\ub2e4.<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Clang-8 repository \ucd94\uac00.\nDOCKER# apt-get update &amp;&amp;\napt-get install wget software-properties-common &amp;&amp;\nadd-apt-repository ppa:ubuntu-toolchain-r\/test &amp;&amp;\nwget -O - https:\/\/apt.llvm.org\/llvm-snapshot.gpg.key|apt-key add - &amp;&amp;\napt-add-repository \"deb http:\/\/apt.llvm.org\/xenial\/ llvm-toolchain-xenial-8 main\" &amp;&amp;\napt-get update\n\n# Install packages.\nDOCKER# apt-get install -y build-essential clang-8 lld-8 g++-7 cmake ninja-build libvulkan1 python python-pip python-dev python3-dev python3-pip libpng-dev libtiff5-dev libjpeg-dev tzdata sed curl unzip autoconf libtool rsync libxml2-dev git<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Clang-8\uc744 default\ub85c \uc124\uc815\ud55c\ub2e4.<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Set clang-8 as a default clang.\nDOCKER# update-alternatives --install \/usr\/bin\/clang++ clang++ \/usr\/lib\/llvm-8\/bin\/clang++ 180 &amp;&amp; update-alternatives --install \/usr\/bin\/clang clang \/usr\/lib\/llvm-8\/bin\/clang 180<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Host machine\uc758 python\uacfc \ub3d9\uc77c\ud55c \ubc84\uc804(3.8)\uc744 docker\uc5d0\ub3c4 \uc124\uce58\ud558\uace0 \uad00\ub828\ub41c Python package\ub4e4\uc744 pip\ub85c \uc124\uce58\ud574\uc900\ub2e4. \ud2b9\ubcc4\ud788 setuptools package\ub294 \ubc84\uc804\uc758 \uc601\ud5a5\uc744 \ubc1b\uc73c\ubbc0\ub85c \ud655\uc778\ub41c \ubc84\uc804(47.3.1)\uc744 \uba85\uc2dc\ud574 \uc900\ub2e4.<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">DOCKER# apt install -y python3.8 python3.8-dev\n\n# PIP upgrade\nDOCKER# pip3 install --upgrade pip &amp;&amp; pip install --upgrade pip\n\n# \uc911\uc694. Python3\uc758 setuptools version\uc774 \uc548\ub9de\uc73c\uba74 \ube4c\ub4dc\uc5d0 \uc2e4\ud328\ud560 \uc218 \uc788\uc73c\ub2c8 \ubc84\uc804\uba85\uc744 \uba85\uc2dc\ud574 \uc900\ub2e4.\nDOCKER# pip2 install setuptools &amp;&amp;\npip3 install -Iv setuptools==47.3.1 &amp;&amp;\npip2 install distro &amp;&amp;\npip3 install distro &amp;&amp;\npip2 install wheel &amp;&amp;\npip3 install wheel auditwheel<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>\uc774\uc81c \ud574\ub2f9 \ubc84\uc804\uc73c\ub85c docker\uc5d0\uc11c build\ub97c \uc2dc\ub3c4 \ud55c\ub2e4.<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">DOCKER# cd \/carla\nDOCKER# make PythonAPI ARGS=\"--python-version=3.8\"<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\/carla\/PythonAPI\/carla\/dist <\/strong>\uc544\ub798\uc5d0 \uc18c\uc2a4\uc5d0 \ud3ec\ud568\ub418\uc5b4 \uc788\ub294 3.6\uc6a9 package\uc678\uc5d0 \uc0c8\ub86d\uac8c \ube4c\ub4dc\ud55c 3.8\uc6a9 *.whl, *.egg file\ub4e4\uc774 \uc0dd\uc131\ub41c \uac83\uc744 \ud655\uc778\ud558\uace0 host system\uc5d0 \uc124\uce58\ud574 \uc900\ub2e4.<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">DOCKER# ls \/carla\/PythonAPI\/carla\/dist\/\ncarla-0.9.13-cp36-cp36m-linux_x86_64.whl  carla-0.9.13-py3.6-linux-x86_64.egg\ncarla-0.9.13-cp38-cp38m-linux_x86_64.whl  carla-0.9.13-py3.8-linux-x86_64.egg\n\n# CARLA client \uc124\uce58\n$ sudo apt install -y &lt;carla-root-path>\/PythonAPI\/carla\/dist\/carla-0.9.13-py3.8-linux-x86_64.egg<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>2022\ub144 9\uc6d4 \ud604\uc7ac CARLA simulator\uc758 \ucd5c\uc2e0 \ubc84\uc804\uc778 0.9.13\uc73c\ub85c PythonAPI\ub97c \ube4c\ub4dc\ud558\ub824\uace0 \ud558\uba74 clang-8 version\uc744 \uc694\uad6c\ud558\ub294\ub370 Ubuntu 22.04\uc5d0\uc11c\ub294 clang-8\uc758 repository\ub97c \ucd94\uac00\ud558\uace0 \uc124\uce58 \uc2dc\ub3c4\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uc758\uc874\uc131 \uc624\ub958\uac00 \uc0dd\uae34\ub2e4. \uadf8\ub9ac\uace0 \uc544\uc27d\uac8c\ub3c4 \ud558\uc704 \ud638\ud658\uc5d0 \ubb38\uc81c\uac00 \uc788\ub294 \uac83\uc778\uc9c0 \uc124\uce58 \uac00\ub2a5\ud55c \ucd5c\ud558 \ubc84\uc804\uc778 clang-10\uc73c\ub85c\ub294 CARLA client build\uac00 \ub418\uc9c0 \uc54a\ub294\ub2e4. \ube4c\ub4dc \uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c \ubc84\uc804 \uc810\uac80\ud558\ub294 \ubd80\ubd84\uc744 \uac74\ub108 \ub6f0\ub3c4\ub85d \uc218\uc815\ud558\uace0 clang-10\uc73c\ub85c \uac15\uc81c \ube4c\ub4dc\ub97c \uc2dc\ub3c4\ud574\ubd24\ub354\ub2c8 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,5],"tags":[299,305,36,304],"class_list":["post-3116","post","type-post","status-publish","format-standard","hentry","category-linux","category-programming","tag-carla","tag-clang-8","tag-docker","tag-ubuntu22-04"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/3116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3116"}],"version-history":[{"count":15,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/3116\/revisions"}],"predecessor-version":[{"id":3153,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/3116\/revisions\/3153"}],"wp:attachment":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}