Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Firmware error #12263

Closed
deepanshgoyal0718 opened this issue Jun 14, 2019 · 3 comments
Closed

Build Firmware error #12263

deepanshgoyal0718 opened this issue Jun 14, 2019 · 3 comments
Labels

Comments

@deepanshgoyal0718
Copy link

deepanshgoyal0718 commented Jun 14, 2019

I am building this Firmware using QT Creator by following the steps from "https://dev.px4.io/v1.8.0/en/setup/building_px4.html." When I try to create the project file I get this error. Please tell me the steps to proceed. Is there any other method to build the Firmware of PX4 from source.

$cmake ../Firmware -G "CodeBlocks - Unix Makefiles"

fatal: Not a valid object name HEAD
-- PX4 config file: /home/ceeri2/src/Firmware/boards/px4/sitl/default.cmake
-- PX4 config: px4_sitl_default
-- PX4 platform: posix
-- PX4 lockstep: enabled
-- PX4 version: 
-- cmake build type: RelWithDebInfo
-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
-- Found PY_jinja2: /usr/local/lib/python2.7/dist-packages/jinja2  
error: pathspec 'msg/tools/gencpp' did not match any file(s) known to git.
error: pathspec 'msg/tools/gencpp' did not match any file(s) known to git.
error: pathspec 'msg/tools/gencpp' did not match any file(s) known to git.
error: pathspec 'msg/tools/genmsg' did not match any file(s) known to git.
error: pathspec 'msg/tools/genmsg' did not match any file(s) known to git.
error: pathspec 'msg/tools/genmsg' did not match any file(s) known to git.
error: pathspec 'src/lib/DriverFramework' did not match any file(s) known to git.
error: pathspec 'src/lib/DriverFramework' did not match any file(s) known to git.
error: pathspec 'src/lib/DriverFramework' did not match any file(s) known to git.
CMake Error at CMakeLists.txt:371 (add_subdirectory):
  add_subdirectory given source "src/lib/DriverFramework/framework" which is
  not an existing directory.


error: pathspec 'src/lib/ecl' did not match any file(s) known to git.
error: pathspec 'src/lib/ecl' did not match any file(s) known to git.
error: pathspec 'src/lib/ecl' did not match any file(s) known to git.
error: pathspec 'src/lib/matrix' did not match any file(s) known to git.
error: pathspec 'src/lib/matrix' did not match any file(s) known to git.
error: pathspec 'src/lib/matrix' did not match any file(s) known to git.
CMake Error at src/lib/CMakeLists.txt:46 (add_subdirectory):
  The source directory

    /home/ceeri2/src/Firmware/src/lib/ecl

  does not contain a CMakeLists.txt file.


error: pathspec 'src/drivers/gps/devices' did not match any file(s) known to git.
error: pathspec 'src/drivers/gps/devices' did not match any file(s) known to git.
error: pathspec 'src/drivers/gps/devices' did not match any file(s) known to git.
CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo_lookup".
Call Stack (most recent call first):
  src/modules/attitude_estimator_q/CMakeLists.txt:34 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target
  "df_driver_framework".
Call Stack (most recent call first):
  src/modules/commander/CMakeLists.txt:36 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/modules/commander/CMakeLists.txt:36 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_EKF".
Call Stack (most recent call first):
  src/modules/ekf2/CMakeLists.txt:33 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/modules/ekf2/CMakeLists.txt:33 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_attitude_fw".
Call Stack (most recent call first):
  src/modules/fw_att_control/CMakeLists.txt:33 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_l1".
Call Stack (most recent call first):
  src/modules/fw_pos_control_l1/CMakeLists.txt:37 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_tecs".
Call Stack (most recent call first):
  src/modules/fw_pos_control_l1/CMakeLists.txt:37 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_l1".
Call Stack (most recent call first):
  src/modules/gnd_pos_control/CMakeLists.txt:33 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/modules/local_position_estimator/CMakeLists.txt:33 (px4_add_module)


error: pathspec 'mavlink/include/mavlink/v2.0' did not match any file(s) known to git.
error: pathspec 'mavlink/include/mavlink/v2.0' did not match any file(s) known to git.
error: pathspec 'mavlink/include/mavlink/v2.0' did not match any file(s) known to git.
CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/modules/mavlink/CMakeLists.txt:36 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/modules/mc_pos_control/CMakeLists.txt:36 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/modules/navigator/CMakeLists.txt:34 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_validation".
Call Stack (most recent call first):
  src/modules/sensors/CMakeLists.txt:34 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/modules/simulator/CMakeLists.txt:58 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/modules/vmount/CMakeLists.txt:33 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_airdata".
Call Stack (most recent call first):
  src/modules/wind_estimator/CMakeLists.txt:33 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo_lookup".
Call Stack (most recent call first):
  src/systemcmds/tests/CMakeLists.txt:87 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/examples/bottle_drop/CMakeLists.txt:33 (px4_add_module)


CMake Error at cmake/px4_add_module.cmake:210 (get_target_property):
  get_target_property() called with non-existent target "ecl_geo".
Call Stack (most recent call first):
  src/examples/position_estimator_inav/CMakeLists.txt:34 (px4_add_module)


error: pathspec 'Tools/sitl_gazebo' did not match any file(s) known to git.
error: pathspec 'Tools/sitl_gazebo' did not match any file(s) known to git.
error: pathspec 'Tools/sitl_gazebo' did not match any file(s) known to git.
error: pathspec 'Tools/jMAVSim' did not match any file(s) known to git.
error: pathspec 'Tools/jMAVSim' did not match any file(s) known to git.
error: pathspec 'Tools/jMAVSim' did not match any file(s) known to git.
CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:1915 (message):
  No download info given for 'sitl_gazebo' and its source directory:

   /home/ceeri2/src/Firmware/Tools/sitl_gazebo

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

   * SOURCE_DIR with an existing non-empty directory
   * URL
   * GIT_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
   * SVN_REVISION
   * DOWNLOAD_COMMAND
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/ExternalProject.cmake:2459 (_ep_add_download_command)
  platforms/posix/cmake/sitl_target.cmake:33 (ExternalProject_Add)
  platforms/posix/CMakeLists.txt:117 (include)


-- Configuring incomplete, errors occurred!

Edited by @julianoes to make console output more readable.

@julianoes
Copy link
Contributor

Something looks broken in your Firmware directory. Did you clone this using git?

Can you do git status and paste the output here? And please put pasted output between ```.

@deepanshgoyal0718
Copy link
Author

Thanks for your help I figured out the problem. There was a problem during cloning. I cloned again using git and it worked this time

Something looks broken in your Firmware directory. Did you clone this using git?

Can you do git status and paste the output here? And please put pasted output between ```.

@julianoes
Copy link
Contributor

Ok thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants