why this error how me(building ROS Package)? - ros

when i build my package in ROS this error show me, how can fix this?
i should fix this
CMake Error at /opt/ros/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/beny/catkin_ws/build/catkin_generated/env_cached.sh
"/usr/bin/python3" "/usr/lib/python3/dist-packages/em.py" "--raw-errors"
"-F"
"/home/beny/catkin_ws/build/qrcode_detection/cmake/amrl_qrcode_detection-genmsg-context.py"
"-o"
"/home/beny/catkin_ws/build/qrcode_detection/cmake/amrl_qrcode_detection-genmsg.cmake"
"/opt/ros/noetic/share/genmsg/cmake/pkg-genmsg.cmake.em") returned error
code 1
Call Stack (most recent call first):
/opt/ros/noetic/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
/opt/ros/noetic/share/genmsg/cmake/genmsg-extras.cmake:303 (em_expand)
qrcode_detection/CMakeLists.txt:28 (generate_messages)
-- Configuring incomplete, errors occurred!
See also "/home/beny/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/beny/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

Related

how do we handle file DOWNLOAD HASH mismatch?

-- Downloading v3.1.0/protobuf-cpp-3.1.0.tar.gz...
CMake Error at /home/yangbyeonghun/slam/opencv/opencv-3.2.0/cmake/OpenCVUtils.cmake:1043 (file):
file DOWNLOAD HASH mismatch
for file: [/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/.download/bd5e3eed635a8d32e2b99658633815ef/v3.1.0/protobuf-cpp-3.1.0.tar.gz]
expected hash: [bd5e3eed635a8d32e2b99658633815ef]
actual hash: [d41d8cd98f00b204e9800998ecf8427e]
status: [1;"Unsupported protocol"]
Call Stack (most recent call first):
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:23 (ocv_download)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:51 (ocv_protobuf_download)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:30 (include)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/CMakeLists.txt:35 (include)
CMake Error at /home/yangbyeonghun/slam/opencv/opencv-3.2.0/cmake/OpenCVUtils.cmake:1047 (message):
Failed to download v3.1.0/protobuf-cpp-3.1.0.tar.gz. Status=1;"Unsupported
protocol"
Call Stack (most recent call first):
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:23 (ocv_download)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/download_protobuf.cmake:51 (ocv_protobuf_download)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:30 (include)
/home/yangbyeonghun/slam/opencv/opencv_contrib-3.2.0/modules/dnn/CMakeLists.txt:35 (include)
-- Configuring incomplete, errors occurred!
See also "/home/yangbyeonghun/slam/opencv/opencv-3.2.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/yangbyeonghun/slam/opencv/opencv-3.2.0/build/CMakeFiles/CMakeError.log".
I encountered this error during opencv installation. It's not solved by the various solutions on the Internet. What is the problem and how do we solve it?
I tried changing the Wi-Fi connection and changing it to a hotspot, but the same error appears.

Cmake.. command is not working for Dartsim on Ubuntu

I installed Dartsim C++ for my Ubuntu. When I enter command cmake .. to the terminal, this errors occur. What can be the possible solution?
CMake Warning at cmake/DARTFindfmt.cmake:9 (find_package):
By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "fmt", but
CMake did not find one.
Could not find a package configuration file provided by "fmt" with any of
the following names:
fmtConfig.cmake
fmt-config.cmake
Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
cmake/DARTMacros.cmake:81 (include)
cmake/DARTFindDependencies.cmake:13 (dart_find_package)
CMakeLists.txt:186 (include)
CMake Warning at cmake/DARTMacros.cmake:145 (message):
Looking for doxygen - NOT found, to use generating API documentation,
please install doxygen
Call Stack (most recent call first):
cmake/DARTFindDependencies.cmake:127 (dart_check_optional_package)
CMakeLists.txt:186 (include)
CMake Warning at cmake/DARTMacros.cmake:145 (message):
Looking for pagmo - NOT found, to use dart-optimizer-pagmo, please install
pagmo
Call Stack (most recent call first):
dart/optimizer/pagmo/CMakeLists.txt:3 (dart_check_optional_package)
CMake Warning at cmake/DARTMacros.cmake:145 (message):
Looking for flann - NOT found, to use dart-planning, please install flann
Call Stack (most recent call first):
dart/planning/CMakeLists.txt:3 (dart_check_optional_package)
Checking for module 'glut'
No package 'glut' found
Adding 12 components including the default component 'dart'
CMake Error at dart/CMakeLists.txt:141 (message):
Failed to find fmt targets
I installed Dartsim C++ for my Ubuntu. When I enter command 'cmake ..' to the terminal, this errors occur. What can be the possible solution?

CMake error for OpenCV Building in Windows

https://www.youtube.com/watch?v=9xFTXSDw_9U
I used Python version 3.7
CMake most recent
OpenCV version 4.1.0
OpenCV_contrib 4.1.0
I built OpenCV by referring to the video on the link, but experienced the following error:
CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
IPPICV: Download failed: 22;"HTTP response code said error"
For details please refer to the download log file:
C:/opencv/build/CMakeDownloadLog.txt
Call Stack (most recent call first):
3rdparty/ippicv/ippicv.cmake:42 (ocv_download)
cmake/OpenCVFindIPP.cmake:243 (download_ippicv)
cmake/OpenCVFindLibsPerf.cmake:12 (include)
CMakeLists.txt:773 (include)
CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
ADE: Download failed: 22;"HTTP response code said error"
For details please refer to the download log file:
C:/opencv/build/CMakeDownloadLog.txt
Call Stack (most recent call first):
modules/gapi/cmake/DownloadADE.cmake:10 (ocv_download)
modules/gapi/cmake/init.cmake:16 (include)
cmake/OpenCVModule.cmake:312 (include)
cmake/OpenCVModule.cmake:375 (_add_modules_1)
modules/CMakeLists.txt:7 (ocv_glob_modules)
For details please refer to the download log file:
C:/opencv/build/CMakeDownloadLog.txt
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
modules/videoio/cmake/init.cmake:3 (include)
modules/videoio/cmake/init.cmake:24 (add_backend)
cmake/OpenCVModule.cmake:312 (include)
cmake/OpenCVModule.cmake:375 (_add_modules_1)
modules/CMakeLists.txt:7 (ocv_glob_modules)
CMake Warning at cmake/OpenCVDownload.cmake:193 (message):
FFMPEG: Download failed: 22;"HTTP response code said error"
For details please refer to the download log file:
C:/opencv/build/CMakeDownloadLog.txt
Call Stack (most recent call first):
3rdparty/ffmpeg/ffmpeg.cmake:20 (ocv_download)
modules/videoio/cmake/detect_ffmpeg.cmake:14 (download_win_ffmpeg)
modules/videoio/cmake/init.cmake:3 (include)
modules/videoio/cmake/init.cmake:24 (add_backend)
cmake/OpenCVModule.cmake:312 (include)
cmake/OpenCVModule.cmake:375 (_add_modules_1)
modules/CMakeLists.txt:7 (ocv_glob_modules)
Please help me.
According to the logs some downloads are failing: HTTP response code said error
The setup tries to e.g. download IPPICV from https://raw.githubusercontent.com/opencv/opencv_3rdparty/${IPPICV_COMMIT}/ippicv/, given the fact that at the time of writing this answer, GitHub is experiencing an outage, this issue might disappear as soon as GitHub is operational again (https://www.githubstatus.com/)

How to fix error with CMake while installing LuaDist on Windows 10

I've been trying to install Luadist, but an error with CMake always happens and in the end it doesn't install because of it.
This seems to be a common issue on Windows 10. I've followed the instructions from https://github.com/LuaDist/Repository/wiki/LuaDist%3A-Installation and https://github.com/LuaDist/Repository/wiki/Installation-of-System-Dependencies#microsoft-windows . I've tried uninstalling it and installing it again, but it didn't work. I tried installing Lua on the same drive as LuaDist, but it still doesn't work. I think the error might be because I also have LuaRocks installed, I don't know if they are compatible together.
[ 37%] Performing configure step for 'luafilesystem'
loading initial cache file C:/Users/User/_bootstrap/_bootstrap/tmp/config.cmake
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.15/Modules/CMakeMinGWFindMake.cmake:12 (message):
sh.exe was found in your PATH, here:
C:/Program Files/Git/usr/bin/sh.exe
For MinGW make to work correctly sh.exe must NOT be in your path.
Run cmake from a shell that does not have sh.exe in your PATH.
If you want to use a UNIX shell, then use MSYS Makefiles.
Call Stack (most recent call first):
CMakeLists.txt:7 (project)
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CMakeFiles\luafilesystem.dir\build.make:106: recipe for target 'luafilesystem/src/luafilesystem-stamp/luafilesystem-configure' failed
mingw32-make.exe[3]: *** [luafilesystem/src/luafilesystem-stamp/luafilesystem-configure] Error 1
CMakeFiles\Makefile2:114: recipe for target 'CMakeFiles/luafilesystem.dir/all' failed
mingw32-make.exe[2]: *** [CMakeFiles/luafilesystem.dir/all] Error 2
CMakeFiles\Makefile2:175: recipe for target 'CMakeFiles/install.dir/rule' failed
mingw32-make.exe[1]: *** [CMakeFiles/install.dir/rule] Error 2
Makefile:156: recipe for target 'install' failed
mingw32-make.exe: *** [install] Error 2
## Bootstrap done, building LuaDist using LuaDist
'C:\Users\User\_bootstrap\_bootstrap\bin\luadist.exe' is not recognized as an internal or external command,
operable program or batch file.
## LuaDist is now built and can be found in C:\Users\User\_bootstrap\_install
At the end it says that LuaDist is built in C:\Users\User_bootstrap_intall , but that folder doens't exist after the installation.

Cmake error on ubuntu14.04

I am trying to build a project from git.Getting following error:
CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:95 (message):
GCC version not detected!
Call Stack (most recent call first):
CMakeLists.txt:116 (include)
-- Detected version of GNU GCC: 00 (0)
-- Check if the system is big endian
-- Searching 16 bit integer
CMake Error at /usr/share/cmake-3.2/Modules/TestBigEndian.cmake:51 (message):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:529 (test_big_endian)
-- Configuring incomplete, errors occurred!
Not able to understand the error. Any help appreciated
In the project 3. Build Android OpenCV SDK with extra modules for Android when I am trying to sh ./scripts/cmake_android_arm.sh I am getting the above error.
I was getting the same error: TestBigEndian: no suitable type found.
However, deleting the CMakeCache.txt file under build_android_arm directory resolved this issue.

Resources