yaml-cpp cmake error, boost files not found - yaml-cpp

I just downloaded and tried to build yaml-cpp v. 0.5.1, did everything as specified both in the web page and in the install.txt file, but got the following error: CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1138 (message):Unable to find the requested Boost libraries.
Anyone know how to fix it?

Related

Compiling project that depend on LLVM using CMake on Windows

I'm a *nix user, installing LLVM is easy for me, just download the precompiled file, set LLVM_DIR, and you're done. But I'm having a lot of problems with Windows ...
I downloaded LLVM-<version>-win64.exe from the GitHub release, but I can't find LLVMConfig.cmake file. Then I tried to compile LLVM from the source following this documentation.
When I started compiling my own project, I got this error:
'C:/<...>/Debug/libLLVMSupport.lib', needed by '<...>.exe', missing and no known rule to make it
I guess maybe I'm missing some compile options. but I can't find the documentation for LLVM_ENABLE_PROJECTS or BUILD_SHARED_LIBS, not even a list of component names.
I tried to add -DBUILD_SHARED_LIBS=ON but CMake told me BUILD_SHARED_LIBS option is not supported on Windows.

Problem installing EBU R128 loudness-scanner

I'm a master student working on my master thesis, which require to extract loudness and pitch data each second.
I did some research and found that loudness-scanner might be able to do that.
https://github.com/jiixyj/loudness-scanner
After installing, I typed in below command, but I kept seeing this command not found message.
MacBook-Air:loudness-scanner jhl$ loudness tag 00.1mp3
-bash: loudness: command not found
I believe it happened because loudness-scanner didn't successfully install on my laptop, so I went back to start installing again, then ran into below error message.
CMake Error at CMakeLists.txt:8 (include):
include could not find load file:
utils
CMake Error at CMakeLists.txt:26 (add_subdirectory):
add_subdirectory given source "ebur128/ebur128" which is not an existing
directory.
CMake Error at CMakeLists.txt:27 (add_subdirectory):
add_subdirectory given source "scanner" which is not an existing directory.
CMake Error at CMakeLists.txt:30 (to_yes_no):
Unknown CMake command "to_yes_no".
-- Configuring incomplete, errors occurred!
I guess I faced this issue because I'm all new to this and some file or program are missing and needed to be installed. But I'm not sure which are missing.
Please kindly help, thank you!

Cmake can't read file saying it cannot find it, with correct path

I am trying to use conan in a CLion project. Conan generates a conanbuildinfo.cmake file. In this file, it's trying to read another file, generated by conan too, and called conaninfo.txt.
It's not able to find it, and cmake prints the following error :
CMake Error at D:/Sources/vodrm-ecmg_c++/build/conanbuildinfo.cmake:663 (file):
file failed to open for reading (No such file or directory):
/cygdrive/d/Sources/myproject/D:/Sources/myproject/build/conaninfo.txt
As you can see the error is saying cmake could not find the requested file. But it actullay can, because the following code :
if (EXISTS ${_CONAN_CURRENT_DIR}/conaninfo.txt)
message("Found :" ${_CONAN_CURRENT_DIR}/conaninfo.txt)
endif()
file (READ "${_CONAN_CURRENT_DIR}/conaninfo.txt" CONANINFO)
Prints :
Found :D:/Sources/project/build/conaninfo.txt
It's totally contradicting since cmake is finding the file, but not when using file command.
Did anyone encountered this bug, if it's one, before? Any solution? I really don't see what I am doing wrong, since this file is generated by conan.
By the way, I am using cmake version 3.6.2.
Thanks in advance.

CMake Error with Eigen 3.3.4

I am trying to compile dolfin on openSUSE Leap 42.3. I get an error with CMake when it tries to find Eigen3. I have Eigen3.3.4 installed on my machine and the error is
CMake Error at cmake/modules/FindEigen3.cmake:42 (file):
file failed to open for reading (No such file or directory):
/usr//usr/include/eigen3/Eigen/src/Core/util/Macros.h
I don't know why the extra /usr/ is popping up at the beginning. Can anyone help me? I can't find a solution online.
Okay, this was an...interesting, but perhaps silly error. Forgive me...I'm new to openSUSE. I originally installed eigen3 through YaST. This did not come with a CMakeList.txt file, so naturally I was confused by the answer in c++ - Unable to find Eigen3 with CMake. Moreover I was confused because Eigen is just header files, so naturally I assumed there would be nothing to make.
Long story short, there are MakeList's for Eigen. You just have to download the tarball from eigen.tuxfamily.org, then build them with cmake.
dolfin? I want to know are you in the CFD area.
I also have Eigen installed in my leap 42.3. But i installed it from the official website of Eigen. I think you may have a try and then specify the folder of the Eigne in Cmake-gui.
Good luck to you.

Error with cmake when trying to load yamlcpp

I've tried to install Astron-master using cmake, however there seems to be a problem with cmake not recognizing yamlcpp when doing so. I was told that this is a cmake error and not yamlcpp, since I was able build yamlcpp successfully. cmake gives this error
Could NOT find YamlCpp (missing: YAMLCPP_LIBRARY YAMLCPP_LIBRARY_DIR)
CMake Error at CMakeLists.txt:116 (message):
You need yamlcpp to build this, build yamlcpp in the 'dependencies/'
directory, or install it as a system package
I'm using yaml-cpp-0.5.1 on windows 7
I have images showing my folders and it helps get a better idea, but I am not allowed to upload until I have 10 rep.