I am trying to cross-compile CVC4, but GMP could not be found. I use the following guide for the installation: http://cvc4.cs.stanford.edu/wiki/Developer%27s_Guide
When I run ./configure.sh production I get the following error:
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find GMP (missing: GMP_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindGMP.cmake:10 (find_package_handle_standard_args)
CMakeLists.txt:356 (find_package)
-- Configuring incomplete, errors occurred!
However, I have installed libgmp3-dev:armel and libgmp10:armel:
$ sudo apt-get install libgmp3-dev:armel
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgmp3-dev:armel is already the newest version (2:6.1.2+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
$ sudo apt-get install libgmp10:armel
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgmp10:armel is already the newest version (2:6.1.2+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
Are there other gmp packages I need to install or is it necessary to specify the installation location as a parameter for the ./configure.sh command.
The solution was to specify the installation location as a parameter for the ./configure.sh command:
./configure.sh --gmp-dir=/usr/lib/arm-linux-gnueabi
Related
As specified in the title I am trying to build px4_ros_com for ros2 humble. I went through the px4 tutorial and followed it pretty closely, however when I colcon build px4_ros_com I get the following error
CMake Error at /home/XXXX/px4_ros_com_ros2/install/px4_msgs/share/px4_msgs/cmake/ament_cmake_export_targets-extras.cmake:18 (message):
Failed to find exported target names in
'/home/XXXX/px4_ros_com_ros2/install/px4_msgs/share/px4_msgs/cmake/export_px4_msgs__rosidl_generator_cExport.cmake'
Call Stack (most recent call first):
/home/XXXX/px4_ros_com_ros2/install/px4_msgs/share/px4_msgs/cmake/px4_msgsConfig.cmake:41 (include)
CMakeLists.txt:24 (find_package)
Any help would be appreciated!
I made sure of the following:
Fast-RTPS-Gen is version 1.0.4
Java version is 11.0.17
ros2 is sourced
This was a bug in ament_cmake that was fixed in the most recent version of ament_cmake (1.3.3).
Make sure you upgrade your packages with:
apt update
apt upgrade
After upgrading, check your ament_cmake version with:
ros2 pkg xml ament_cmake | grep version
If you see the following, or a newer version, this bug should be fixed:
<version>1.3.3</version>
I am trying to catkin_make in my catkin workspace, but I get the following error
CMake Deprecation Warning at gazebo_ros_demos/gazebo_tutorials/CMakeLists.txt:1
(cmake_minimum_required): Compatibility with CMake < 2.8.12 will be
removed from a future version of CMake.
Update the VERSION argument value or use a ... suffix to
tell CMake that the project does not need compatibility with older
versions.
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Found Boost: /usr/include (found suitable version "1.58.0", minimum required is "1.40.0") found components: thread signals system
filesystem program_options regex iostreams date_time chrono atomic
CMake Error at
/usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230
(message): Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594
(_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.20/Modules/FindProtobuf.cmake:646
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:114
(FIND_PACKAGE) gazebo_ros_demos/gazebo_tutorials/CMakeLists.txt:11
(find_package)
-- Configuring incomplete, errors occurred! See also "/home/ashwin/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also
"/home/ashwin/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:5582: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1 Invoking "make
cmake_check_build_system" failed
This issue came up when I tried to update my cmake to 3.20. I am fairly new to Ubuntu. Would appreciate any help.
I have encountered the same issue (on ubuntu 18.04). Installing the following packages resolved the issue for me:
sudo apt-get install libprotobuf-dev protobuf-compiler
These are similar to the packages mentioned by K.S., but with those packages I got the same error as Ashwin mentioned in the comments on K.S.'s answer.
I'm trying to install fbthrift for fb-python.
I followed the guides in
https://github.com/facebook/fbthrift and installed the dependencies needed.
but I got this error when running
cmake ..
in cmd:
-- Found folly: /usr/local
CMake Error at /home/xian/rsocket-cpp/build/yarpl/yarpl-config.cmake:31 (include):
include could not find load file:
/home/xian/lib/cmake/yarpl/yarpl-exports.cmake
Call Stack (most recent call first):
CMakeLists.txt:107 (find_package)
-- Found YARPL: /home/xian
-- Could NOT find rsocket (missing: rsocket_DIR)
-- Found fizz: /usr/local
CMake Error at CMakeLists.txt:110 (find_package):
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.
-- Configuring incomplete, errors occurred!
I tried to build the path doing:
sudo cmake .. -DCMAKE_PREFIX_PATH=/home/xian/rsocket-cpp/build/yarpl/CMakeFiles/Export/lib/cmake
but it doesn't work.
yarpl-exports.cmake is in
/home/xian/rsocket-cpp/build/yarpl/CMakeFiles/Export/lib/cmake/yarpl
and I'm pretty sure I have installed rsocket-cpp.
what should I do?
You have to install libfmt-dev package ...
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
$ sudo apt-get install libfmt-dev
$ cmake .
-- Configuring done
Try
git clone https://github.com/fmtlib/fmt.git
cd fmt
cmake CMakeLists.txt
make
sudo make install
I'm trying to install darktable from source. To this end,
I downloaded darktable-2.4.4.tar.xz from here. After unpacking I try to build it with
sudo ./build.sh
I get the following errors:
(...)
-- Checking for one of the modules 'libsoup-2.2;libsoup2'
-- Could NOT find WEBP (missing: WEBP_LIBRARY WEBP_INCLUDE_DIR) (Required is at least version "0.3.0")
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find LENSFUN (missing: LENSFUN_LIBRARY LENSFUN_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindLensFun.cmake:37 (find_package_handle_standard_args)
src/CMakeLists.txt:286 (find_package)
However, both WEBP and LENSFUN are installed.
sudo apt-get install webp
Reading package lists... Done
Building dependency tree
Reading state information... Done
webp is already the newest version (0.6.1-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
LENSFUN was installed from source.
It's worth mentioning build.sh uses cmake.
What can I do to solve these problems?
I have looked at the other question with the same heading and could not solve my problem. I have also done
$ sudo apt-get install libprotobuf-dev protobuf-compiler
$ protoc --version
libprotoc 2.6.1
When I do
sudo make -j4 && make pycaffe
I get
CMake Error at cmake/ProtoBuf.cmake:13 (message):
Could not find PROTOBUF Compiler
Call Stack (most recent call first):
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:46 (include)
-- Configuring incomplete, errors occurred!
See also "/home/varsha/neuralmap/RRPN/caffe-fast-rcnn/CMakeFiles/CMakeOutput.log".
See also "/home/varsha/neuralmap/RRPN/caffe-fast-rcnn/CMakeFiles/CMakeError.log".
Makefile:530: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
#chan3600 suggested that I should remove the build directory. I have no build directory. Please tell me how I can solve this issue.