{"id":330888,"date":"2022-03-21T15:00:29","date_gmt":"2022-03-21T15:00:29","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=330888"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=330888","title":{"rendered":"<span>\u041a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 Objective-C \u0432 Linux (\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0431\u043e\u0440\u043a\u0438 CMake \u0438 \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c)<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Ubuntu 20.04.3 LTS \u0438 Ubuntu 18.04 LTS<\/p>\n<\/blockquote>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0443\u0436\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u0432<\/h2>\n<p>\u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 <strong>clang<\/strong>. \u041c\u043e\u0436\u043d\u043e \u0438 <strong>gcc<\/strong>, \u043d\u043e \u043d\u0435 \u0432\u0441\u0435 \u0444\u0438\u0447\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0438).<\/p>\n<pre><code>sudo apt-get install \\ build-essential \\ gobjc gobjc++ \\ gnustep gnustep-devel \\ libgnustep-base-dev \\ clang gcc cmake git \\ libblocksruntime-dev vim \\ python3-dev -y<\/code><\/pre>\n<h2>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h2>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b <strong>CMakeLists.txt<\/strong><\/p>\n<pre><code class=\"cmake\"># CMakeLists.txt  set(CMAKE_EXPORT_COMPILE_COMMANDS 1)  cmake_minimum_required(VERSION 3.0.0) project(HelloWorld) # \u0418\u043c\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430  SET(CMAKE_C_COMPILER clang) SET(CMAKE_CXX_COMPILER clang++)  add_executable(HelloWorld  # \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430 )  # \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f target_compile_options(HelloWorld PRIVATE  -MMD  -MP  -DGNUSTEP  -DGNUSTEP_BASE_LIBRARY=1  -DGNU_GUI_LIBRARY=1  -DGNU_RUNTIME=1  -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing  -fexceptions  -fobjc-exceptions  -D_NATIVE_OBJC_EXCEPTIONS  -pthread  -fPIC  -Wall  -DGSWARN  -DGSDIAGNOSE  -Wno-import  -g -fblocks -O2  -fgnu-runtime  -fconstant-string-class=NSConstantString  -I.  # Dirs of GNUstep and libobj -I\/home\/ani\/GNUstep\/Library\/Headers  -I\/usr\/local\/include\/GNUstep  -I\/usr\/include\/GNUstep  -I.\/libobjc2 )  target_link_libraries(HelloWorld gnustep-base objc BlocksRuntime)  target_include_directories(HelloWorld PRIVATE usr\/include\/GNUstep\/) <\/code><\/pre>\n<h2>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Runtime \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f Obj-C<\/h2>\n<p>\u0412 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441 github&#8217;\u0430:<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/gnustep\/libobjc2<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u0438\u043b\u0434\u0438\u043c \u0435\u0451:<\/p>\n<pre><code class=\"bash\">cd libobjc2 git submodule init &amp;&amp; git submodule update mkdir Build &amp;&amp; cd Build cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ make -j8 sudo -E make install<\/code><\/pre>\n<h2>\u041f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a<\/h2>\n<p>\u0412 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b <strong>main.m<\/strong> \u0438 \u043a\u0438\u0434\u0430\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"objectivec\">#import &lt;Foundation\/Foundation.h>  int main (int argc, const char * argv[]) { @autoreleasepool {  NSLog(@\"Hello World\");  }   return 0; }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432 <strong>cmake<\/strong> \u0432 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <strong>add_executable<\/strong> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b <strong>main.m<\/strong>.<br \/>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432\u0432\u043e\u0434\u0438\u043c: <\/p>\n<pre><code class=\"bash\">cmake . make .\/\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u041f\u0440\u043e\u0435\u043a\u0442\u0430<\/code><\/pre>\n<p><em>\u0423\u0440\u0430. \u0412\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0441\u0432\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 Obj-C \u043a\u043e\u0434 \u043d\u0430 Linux<\/em><\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0440\u0435\u0434\u044b<\/h2>\n<p>\u042f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 <strong>vim<\/strong>. <\/p>\n<details class=\"spoiler\">\n<summary>\u0422\u043e, \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e6b\/2f1\/03c\/e6b2f103cdfdfe0eba4b0513414f432b.gif\" alt=\"\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0435\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c\" title=\"\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0435\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e6b\/2f1\/03c\/e6b2f103cdfdfe0eba4b0513414f432b.gif\"\/><figcaption>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0435\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c<\/figcaption><\/figure>\n<\/div>\n<\/details>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u043c <strong>vim<\/strong>:<\/p>\n<pre><code class=\"bash\">sudo add-apt-repository ppa:jonathonf\/vim   sudo apt update  sudo apt install vim  <\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <a href=\"https:\/\/github.com\/aniteka\/CMakeObjcConfiguration\/blob\/main\/vim_conf_files\/.vimrc\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0442 <\/a>\u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u0430 <strong>.vimrc<\/strong><\/p>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u0441\u0435\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432:<\/p>\n<pre><code class=\"bash\">curl -fLo ~\/.vim\/autoload\/plug.vim --create-dirs \\ https:\/\/raw.githubusercontent.com\/junegunn\/vim-plug\/master\/plug.vim<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c vim \u0438 \u0432 <strong>command mode<\/strong> \u043d\u0430\u043f\u0438\u0447\u0430\u0442\u0430\u0442\u044c: <code>:PlugInstall<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c ycm \u0444\u0430\u0439\u043b YouCompleteMe.<br \/>\u041a\u0438\u0434\u0430\u0435\u043c <a href=\"https:\/\/github.com\/aniteka\/CMakeObjcConfiguration\/blob\/main\/vim_conf_files\/.ycm_extra_conf.py\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0442 <\/a>\u043a\u043e\u043d\u0444\u0438\u0433 \u0432 \u043f\u0430\u043f\u043a\u0443 <code>~\/.vim\/<br \/><\/code>\u041d\u0443\u0436\u043d\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 YouCompleteMe<\/p>\n<pre><code>cd ~\/.vim\/plugged\/youcompleteme python3 install.py --clang-completer<\/code><\/pre>\n<p><em>\u0420\u0435\u0431\u0438\u043b\u0434\u0438\u043c obj-c \u043f\u0440\u043e\u0435\u043a\u0442. \u0413\u043e\u0442\u043e\u0432\u043e. \u041d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0439\u0442\u0435\u0441\u044c<\/em><\/p>\n<h2>\u041f.\u0421.<\/h2>\n<p>\u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 YouCompleteMe \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 cmake \u0438 g++<\/p>\n<p>\u0412\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f: <br \/><a href=\"https:\/\/askubuntu.com\/questions\/355565\/how-do-i-install-the-latest-version-of-cmake-from-the-command-line\" rel=\"noopener noreferrer nofollow\">https:\/\/askubuntu.com\/questions\/355565\/how-do-i-install-the-latest-version-of-cmake-from-the-command-line<\/a><br \/><a href=\"https:\/\/stackoverflow.com\/questions\/65284572\/your-c-compiler-does-not-fully-support-c17\" rel=\"noopener noreferrer nofollow\">https:\/\/stackoverflow.com\/questions\/65284572\/your-c-compiler-does-not-fully-support-c17<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/656701\/\"> https:\/\/habr.com\/ru\/post\/656701\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Ubuntu 20.04.3 LTS \u0438 Ubuntu 18.04 LTS<\/p>\n<\/blockquote>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0443\u0436\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u0432<\/h2>\n<p>\u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 <strong>clang<\/strong>. \u041c\u043e\u0436\u043d\u043e \u0438 <strong>gcc<\/strong>, \u043d\u043e \u043d\u0435 \u0432\u0441\u0435 \u0444\u0438\u0447\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0438).<\/p>\n<pre><code>sudo apt-get install \\ build-essential \\ gobjc gobjc++ \\ gnustep gnustep-devel \\ libgnustep-base-dev \\ clang gcc cmake git \\ libblocksruntime-dev vim \\ python3-dev -y<\/code><\/pre>\n<h2>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h2>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b <strong>CMakeLists.txt<\/strong><\/p>\n<pre><code class=\"cmake\"># CMakeLists.txt  set(CMAKE_EXPORT_COMPILE_COMMANDS 1)  cmake_minimum_required(VERSION 3.0.0) project(HelloWorld) # \u0418\u043c\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430  SET(CMAKE_C_COMPILER clang) SET(CMAKE_CXX_COMPILER clang++)  add_executable(HelloWorld  # \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430 )  # \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f target_compile_options(HelloWorld PRIVATE  -MMD  -MP  -DGNUSTEP  -DGNUSTEP_BASE_LIBRARY=1  -DGNU_GUI_LIBRARY=1  -DGNU_RUNTIME=1  -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing  -fexceptions  -fobjc-exceptions  -D_NATIVE_OBJC_EXCEPTIONS  -pthread  -fPIC  -Wall  -DGSWARN  -DGSDIAGNOSE  -Wno-import  -g -fblocks -O2  -fgnu-runtime  -fconstant-string-class=NSConstantString  -I.  # Dirs of GNUstep and libobj -I\/home\/ani\/GNUstep\/Library\/Headers  -I\/usr\/local\/include\/GNUstep  -I\/usr\/include\/GNUstep  -I.\/libobjc2 )  target_link_libraries(HelloWorld gnustep-base objc BlocksRuntime)  target_include_directories(HelloWorld PRIVATE usr\/include\/GNUstep\/) <\/code><\/pre>\n<h2>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Runtime \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f Obj-C<\/h2>\n<p>\u0412 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0441 github&#8217;\u0430:<\/p>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/gnustep\/libobjc2<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0431\u0438\u043b\u0434\u0438\u043c \u0435\u0451:<\/p>\n<pre><code class=\"bash\">cd libobjc2 git submodule init &amp;&amp; git submodule update mkdir Build &amp;&amp; cd Build cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ make -j8 sudo -E make install<\/code><\/pre>\n<h2>\u041f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a<\/h2>\n<p>\u0412 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b <strong>main.m<\/strong> \u0438 \u043a\u0438\u0434\u0430\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"objectivec\">#import &lt;Foundation\/Foundation.h>  int main (int argc, const char * argv[]) { @autoreleasepool {  NSLog(@\"Hello World\");  }   return 0; }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432 <strong>cmake<\/strong> \u0432 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <strong>add_executable<\/strong> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b <strong>main.m<\/strong>.<br \/>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432\u0432\u043e\u0434\u0438\u043c: <\/p>\n<pre><code class=\"bash\">cmake . make .\/\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u041f\u0440\u043e\u0435\u043a\u0442\u0430<\/code><\/pre>\n<p><em>\u0423\u0440\u0430. \u0412\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0441\u0432\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 Obj-C \u043a\u043e\u0434 \u043d\u0430 Linux<\/em><\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0440\u0435\u0434\u044b<\/h2>\n<p>\u042f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 <strong>vim<\/strong>. <\/p>\n<details class=\"spoiler\">\n<summary>\u0422\u043e, \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0435\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c<\/figcaption><\/figure>\n<\/div>\n<\/details>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u043c <strong>vim<\/strong>:<\/p>\n<pre><code class=\"bash\">sudo add-apt-repository ppa:jonathonf\/vim   sudo apt update  sudo apt install vim  <\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <a href=\"https:\/\/github.com\/aniteka\/CMakeObjcConfiguration\/blob\/main\/vim_conf_files\/.vimrc\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0442 <\/a>\u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u0430 <strong>.vimrc<\/strong><\/p>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u0441\u0435\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432:<\/p>\n<pre><code class=\"bash\">curl -fLo ~\/.vim\/autoload\/plug.vim --create-dirs \\ https:\/\/raw.githubusercontent.com\/junegunn\/vim-plug\/master\/plug.vim<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c vim \u0438 \u0432 <strong>command mode<\/strong> \u043d\u0430\u043f\u0438\u0447\u0430\u0442\u0430\u0442\u044c: <code>:PlugInstall<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c ycm \u0444\u0430\u0439\u043b YouCompleteMe.<br \/>\u041a\u0438\u0434\u0430\u0435\u043c <a href=\"https:\/\/github.com\/aniteka\/CMakeObjcConfiguration\/blob\/main\/vim_conf_files\/.ycm_extra_conf.py\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0442 <\/a>\u043a\u043e\u043d\u0444\u0438\u0433 \u0432 \u043f\u0430\u043f\u043a\u0443 <code>~\/.vim\/<br \/><\/code>\u041d\u0443\u0436\u043d\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 YouCompleteMe<\/p>\n<pre><code>cd ~\/.vim\/plugged\/youcompleteme python3 install.py --clang-completer<\/code><\/pre>\n<p><em>\u0420\u0435\u0431\u0438\u043b\u0434\u0438\u043c obj-c \u043f\u0440\u043e\u0435\u043a\u0442. \u0413\u043e\u0442\u043e\u0432\u043e. \u041d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0439\u0442\u0435\u0441\u044c<\/em><\/p>\n<h2>\u041f.\u0421.<\/h2>\n<p>\u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 YouCompleteMe \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 cmake \u0438 g++<\/p>\n<p>\u0412\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f: <br \/><a href=\"https:\/\/askubuntu.com\/questions\/355565\/how-do-i-install-the-latest-version-of-cmake-from-the-command-line\" rel=\"noopener noreferrer nofollow\">https:\/\/askubuntu.com\/questions\/355565\/how-do-i-install-the-latest-version-of-cmake-from-the-command-line<\/a><br \/><a href=\"https:\/\/stackoverflow.com\/questions\/65284572\/your-c-compiler-does-not-fully-support-c17\" rel=\"noopener noreferrer nofollow\">https:\/\/stackoverflow.com\/questions\/65284572\/your-c-compiler-does-not-fully-support-c17<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/656701\/\"> https:\/\/habr.com\/ru\/post\/656701\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-330888","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/330888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=330888"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/330888\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=330888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=330888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=330888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}