Developing PX4 in Jetbrains Clion

Hi all,

I am trying to write code in clion and would love to use all the code analysis and project indexing features but it keeps running into the following cmake error. It compiles properly using the default compile instructions on windows.

Any help would be greatly appreciated!



"C:\Program Files\JetBrains\CLion 2021.1.3\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\PX4\home\Firmware
-- PX4 version: v1.13.0-alpha1-1990-g8f64f7ce90
-- PX4 config file: C:/PX4/home/Firmware/boards/px4/sitl/default.cmake
-- PX4 config: px4_sitl_default
-- PX4 platform: posix
-- PX4 lockstep: enabled
-- cmake build type: Debug
-- The CXX compiler identification is GNU 8.1.0
-- The C compiler identification is GNU 8.1.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Building for code coverage
-- Found PythonInterp: C:/ProgramData/Miniconda3/python.exe (found suitable version "3.9.1", minimum required is "3") 
-- ROMFS: ROMFS/px4fmu_common
CMake Error at C:/Program Files/JetBrains/CLion 2021.1.3/bin/cmake/win/share/cmake-3.19/Modules/ExternalProject.cmake:2748 (message):
  No download info given for 'sitl_gazebo' and its source directory:

   C:/PX4/home/Firmware/Tools/sitl_gazebo

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * DOWNLOAD_COMMAND
   * URL
   * GIT_REPOSITORY
   * SVN_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2021.1.3/bin/cmake/win/share/cmake-3.19/Modules/ExternalProject.cmake:3430 (_ep_add_download_command)
  platforms/posix/cmake/sitl_target.cmake:35 (ExternalProject_Add)
  platforms/posix/CMakeLists.txt:105 (include)


CMake Error at C:/Program Files/JetBrains/CLion 2021.1.3/bin/cmake/win/share/cmake-3.19/Modules/ExternalProject.cmake:2748 (message):
  No download info given for 'simulation-ignition' and its source directory:

   C:/PX4/home/Firmware/Tools/simulation-ignition

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * DOWNLOAD_COMMAND
   * URL
   * GIT_REPOSITORY
   * SVN_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2021.1.3/bin/cmake/win/share/cmake-3.19/Modules/ExternalProject.cmake:3430 (_ep_add_download_command)
  platforms/posix/cmake/sitl_target.cmake:52 (ExternalProject_Add)
  platforms/posix/CMakeLists.txt:105 (include)


CMake Error at C:/Program Files/JetBrains/CLion 2021.1.3/bin/cmake/win/share/cmake-3.19/Modules/ExternalProject.cmake:2748 (message):
  No download info given for 'flightgear_bridge' and its source directory:

   C:/PX4/home/Firmware/Tools/flightgear_bridge

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * DOWNLOAD_COMMAND
   * URL
   * GIT_REPOSITORY
   * SVN_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2021.1.3/bin/cmake/win/share/cmake-3.19/Modules/ExternalProject.cmake:3430 (_ep_add_download_command)
  platforms/posix/cmake/sitl_target.cmake:77 (ExternalProject_Add)
  platforms/posix/CMakeLists.txt:105 (include)


CMake Error at C:/Program Files/JetBrains/CLion 2021.1.3/bin/cmake/win/share/cmake-3.19/Modules/ExternalProject.cmake:2748 (message):
  No download info given for 'jsbsim_bridge' and its source directory:

   C:/PX4/home/Firmware/Tools/jsbsim_bridge

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * DOWNLOAD_COMMAND
   * URL
   * GIT_REPOSITORY
   * SVN_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2021.1.3/bin/cmake/win/share/cmake-3.19/Modules/ExternalProject.cmake:3430 (_ep_add_download_command)
  platforms/posix/cmake/sitl_target.cmake:90 (ExternalProject_Add)
  platforms/posix/CMakeLists.txt:105 (include)


-- Configuring incomplete, errors occurred!
See also "C:/PX4/home/Firmware/cmake-build-debug/CMakeFiles/CMakeOutput.log".

[Previous CMake output restored: 8/4/2021 5:08 PM]