Skip to content

Instantly share code, notes, and snippets.

@umhan35
Last active April 4, 2019 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umhan35/db6a66d03ee24912c4a810dae2757d1f to your computer and use it in GitHub Desktop.
Save umhan35/db6a66d03ee24912c4a810dae2757d1f to your computer and use it in GitHub Desktop.
ros clion setup

install clion via snap

snap will auto update the app

snap install clion

in config/options/project.default.xml

cd ~/.CLion # tab
gedit config/options/project.default.xml

replace

      <component name="CMakeSettings">
        <configurations>
          <configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" />
        </configurations>
      </component>

with

      <component name="CMakeSettings">
        <configurations>
          <configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" GENERATION_OPTIONS="-DCATKIN_DEVEL_PREFIX:PATH=$PROJECT_DIR$/../../devel" />
        </configurations>
      </component>

Note that if you open your ros package before this change, you need to delete .idea to make it in effect

change .desktop file

cp /var/lib/snapd/desktop/applications/clion_clion.desktop ~/.local/share/applications/clion_clion.desktop

add bash -i -c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment