ROSを使ったRaspberry Pi Zero からの画像キャプチャ​モデルでビルドが失敗​します。動作環境は?

4 ビュー (過去 30 日間)
Shogo Muramatsu
Shogo Muramatsu 2018 年 8 月 6 日
編集済み: michio 2018 年 8 月 7 日
以下のドキュメンテーションの内容をフォローしていますが、モデルのビルド段階で失敗します。
### ファイル v4l2_capture.c (S-Function 'v4l2_video_capture_sfcn' ('rosberrypi_publish_camera/V4L2 Video Capture' で使用) に関連する) は存在しません
(中略)
Catkin project directory: /home/pi/catkin_ws/src/rosberrypi_publish_camera
-- Using CATKIN_DEVEL_PREFIX: /home/pi/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/pi/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/pi/catkin_ws/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/pi/catkin_ws/build/test_results
-- Found gtest: gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.19
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 2 packages in topological order:
-- ~~ - rosberrypi_getting_started
-- ~~ - rosberrypi_publish_camera
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'rosberrypi_getting_started'
-- ==> add_subdirectory(rosberrypi_getting_started)
-- +++ processing catkin package: 'rosberrypi_publish_camera'
-- ==> add_subdirectory(rosberrypi_publish_camera)
-- Configuring done
CMake Error at rosberrypi_getting_started/CMakeLists.txt:44 (add_executable):
Cannot find source file:
MW_led.c
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: CMake can not determine linker language for target: rosberrypi_getting_started_node
CMake Error: Cannot determine link language for target "rosberrypi_getting_started_node".
-- Generating done
-- Build files have been written to: /home/pi/catkin_ws/build
Makefile:500: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Base path: /home/pi/catkin_ws
Source space: /home/pi/catkin_ws/src
Build space: /home/pi/catkin_ws/build
Devel space: /home/pi/catkin_ws/devel
Install space: /home/pi/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/pi/catkin_ws/build"
####
Invoking "make cmake_check_build_system" failed## 次のモデルに対するビルド プロセス:'rosberrypi_publish_camera' はエラーのため中止されました。
ハードウェア ボードに展開中に次のエラーが発生しました:
An error has occurred while building "rosberrypi_publish_camera" model.
コンポーネント:Simulink | カテゴリ:Block diagram エラー
環境は以下の通りです。
  • Host PC - Windows 10
  • MATLAB R2018a - Simulink Support Package for Raspberry Pi Hardware 18.1.2
  • Raspberry Pi Zero W - mathworks_raspbian_R18.1.0.zip (targetupdaterにて), Pi Camera V2.1搭載
MATLAB Coder を有していますが、Simulink Coder/Embedded Coder は有していません。
成功するための動作条件等を教えていただければありがたいです。

回答 (0 件)

カテゴリ

Help Center および File ExchangeRaspberry Pi Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by