I am facing the following error while installing avro-c package on freebsd platform.
CMake Error at CMakeLists.txt:39 (message):
Cannot determine Avro version number
-- Configuring incomplete, errors occurred!
I have downloaded the latest source code from https://github.com/confluentinc/avro-c-packaging. Have used the following step to install-
mkdir build
cd build
cmake ../
I was expecting the package to get installed.
Related
I really need some help to build a simple project with Cmake with Jenkins on a Docker container.
I use jenkins/jenkins:lts-jdk11 and the Cmake plugin : https://plugins.jenkins.io/cmakebuilder/
But I get these error logs :
First time build. Skipping changelog.
Install from cmake.org [InSearchPath]: Unpacking https://cmake.org/files/v3.24/cmake-3.24.2-linux-aarch64.tar.gz to /var/jenkins_home/tools/hudson.plugins.cmake.CmakeTool/3.24.2 on Jenkins...
Install from cmake.org [InSearchPath]: Inspecting unpacked files at /var/jenkins_home/tools/hudson.plugins.cmake.CmakeTool/3.24.2...
[build] $ /var/jenkins_home/tools/hudson.plugins.cmake.CmakeTool/3.24.2/bin/cmake /var/jenkins_home/workspace/Patate
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/var/jenkins_home/workspace/Patate/build/CMakeFiles/CMakeOutput.log".
Build step 'CMake Build' marked build as failure
Finished: FAILURE
It says Cmake is unable to find the build generator "Unix Makefiles" but I don't know how to install it on a Docker container. I checked in the Plugin Manager but it seems there is nothing. I searched for Ninja as well but it's not there either.
I don't understand why there is no proper step-by-step tutorial to create something that common as a Cmake build with Jenkins.
I'm trying to install Torch/Lua version and am getting the build errors shown below. I see this discussion on Github encountering the same errors, but I don't see a resolution to it.
https://github.com/torch/torch7/issues/670
What version of CUDA does torch require? My best guess right now is that this is a CUDA version mismatch.
CMake Error at THC_generated_THCBlas.cu.o.cmake:267 (message):
Error generating file
~/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o
CMake Error at THC_generated_THCSleep.cu.o.cmake:267 (message):
Error generating file
~/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:392: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o' failed
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1
It appears that these issues were related to the g++ version I had (4.8). I installed the latest g++ version (5.2), then had to delete the torch directory, re-clone it, and the installation worked. Note that build artifacts will be left over so actually removing the whole torch directory was necessary.
I'm trying to compile a project with CMake. I'm getting an error:
Found OpenCV Windows Pack but it has not binaries compatible with your
configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
CMakeLists.txt:9 (FIND_PACKAGE)
CMake Error at CMakeLists.txt:9 (FIND_PACKAGE):
Found package configuration file:
C:/Users/Ghenja/AppData/Local/opencv/build/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
I don't understand what is happening. Please help me to solve this problem.
Clean your project and remove CMakeCache.txt. OpenCV_FOUND is probably cached now.
If that doesn't work, then run your cmake command with additional flags just to be sure:
cmake -DOpenCV_FOUND:BOOL=ON -DOpenCV_DIR=/path/to/your/OpenCV
I am configuring the packages for torch.I can't install these packages using luarocks.
for the matio, I followed the instruction on github, the matio is installed. But I cannot require it.
for the hdf5,see following.
Does anyone know what is the problem? I am new to Lua. Thanks very much!
$luarocks install hdf5
then I got the error information:
CMake Error at /usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find HDF5: Found unsuitable version "", but required is at least
"1.8" (found HDF5_hdf5_LIBRARY-NOTFOUND)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindHDF5.cmake:398 (find_package_handle_standard_args)
CMakeLists.txt:4 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_hdf5-20-0-5408/torch-hdf5/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.
Error: Build error: Failed building.
I encountered the same problem on ubuntu >= 13.04, this command solves my problem:
sudo apt-get install libhdf5-serial-dev hdf5-tools
Then you can use luarocks to install hdf5
luarocks install hdf5
For other systems, you can reference this link for dependencies.
I try to install opencv on macbook pro following this instruction
i have problem when i build OpenCV framework. when i type
$ python opencv/ios/build_framework.py iOS
i got this problem:
CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h CMake Error at /opt/local/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
Configuring incomplete, errors occurred!
error: can't exec '/Developer/usr/bin/xcodebuild' (No such file or directory)
I check Developer/usr/bin/xcodebuild. I have this folder. But i need to type without "/" in front. What is the problem here?
You need to install cmake
and run again
http://www.cmake.org/cmake/help/install.html