Cmake error on ubuntu14.04 - opencv

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.

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?

why this error how me(building ROS Package)?

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

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.

Installing ceres-solver on iOS

running cmake -DCMAKE_TOOLCHAIN_FILE=ceres-solver/cmake/iOS.cmake -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DEIGEN_INCLUDE_DIR=/usr/local/Cellar/eigen -DIOS_PLATFORM=OS ceres-solver
gives me these errors
-- Using minimal glog substitute (include): internal/ceres/miniglog
-- Max log level for minimal glog substitute: 2
-- Building without OpenMP, disabling.
-- Neither OpenMP or TBB is enabled, disabling multithreading.
-- Looking for C++ include unordered_map
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_3feba/fast"
-- Looking for C++ include unordered_map - not found
-- Looking for C++ include tr1/unordered_map
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_36cb7/fast"
-- Looking for C++ include tr1/unordered_map - not found
-- Unable to find <unordered_map> or <tr1/unordered_map>.
-- Replacing unordered_map/set with map/set (warning: slower!), try enabling CXX11 option if you expect C++11 to be available.
-- Looking for C++ include memory
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_013b8/fast"
-- Looking for C++ include memory - not found
-- Looking for C++ include tr1/memory
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_bb377/fast"
-- Looking for C++ include tr1/memory - not found
CMake Error at CMakeLists.txt:494 (message):
Unable to find shared_ptr, try enabling CXX11 option if you expect C++11 to
be available.
even if i set CXX11 ON, I would get the same error. What should I do?
Assuming I get this working, do I just run make install to get the libceres.a file?
Much help appreciated.
This is not a C++11 error, notice the error
CMake Error: Generator: execution of make failed. Make command was: "CMAKE_MAKE_PROGRAM" "cmTC_3feba/fast"
CMake is trying to determine the presence of various c++11 features by compiling several short program fragments, and is unable to do so, due to some Make related problems (do you have make installed? Xcore command line tools?) and it ends up concluding that c++11 is not available.
The thing to fix here is to see what is going on with Make on your system.

Resources