Openbr - system runtime library file does not exist: msvcp120.dll - c++

I just found out about Openbr and started to install required libraries like OpenCV and QT. I followed these instructions for windows(win10 64bit):
http://openbiometrics.org/docs/install/#windows
but unfortionatly got stuck when executing the following command:
cmake -G "NMake Makefiles" -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DWITH_FFMPEG=OFF -DCMAKE_BUILD_TYPE=Debug ..
with this output:
CMake Error at C:/opencv-2.4.11/build-msvc2013/win-install/OpenCVConfig.cmake:71 (include):
include could not find load file:
C:/opencv-2.4.11/build-msvc2013/win-install/OpenCVModules.cmake
Call Stack (most recent call first):
CMakeLists.txt:87 (find_package)
-- adding C:/openbr/openbr/plugins/classification
-- adding C:/openbr/openbr/plugins/cluster
-- adding C:/openbr/openbr/plugins/cmake
-- adding C:/openbr/openbr/plugins/core
-- importing C:/openbr/openbr/plugins/cuda/module.cmake
-- adding C:/openbr/openbr/plugins/distance
-- adding C:/openbr/openbr/plugins/format
-- adding C:/openbr/openbr/plugins/gallery
-- adding C:/openbr/openbr/plugins/gui
-- adding C:/openbr/openbr/plugins/imgproc
-- adding C:/openbr/openbr/plugins/io
-- adding C:/openbr/openbr/plugins/metadata
-- adding C:/openbr/openbr/plugins/output
-- adding C:/openbr/openbr/plugins/representation
-- adding C:/openbr/openbr/plugins/video
CMake Error at openbr/CMakeLists.txt:52 (add_subdirectory):
The source directory
C:/openbr/openbr/janus
does not contain a CMakeLists.txt file.
CMake Warning at C:/Program Files/CMake/share/cmake-3.6/Modules /InstallRequiredSystemLibraries.cmake:463 (message):
system runtime library file does not exist:
'MSVC12_REDIST_DIR-NOTFOUND/x64/Microsoft.VC120.CRT/msvcp120.dll'
Call Stack (most recent call first):
share/openbr/cmake/InstallDependencies.cmake:135 (include)
openbr/CMakeLists.txt:67 (install_compiler_libraries)
CMake Warning at C:/Program Files/CMake/share/cmake-3.6/Modules/InstallRequiredSystemLibraries.cmake:463 (message):
system runtime library file does not exist:
'MSVC12_REDIST_DIR-NOTFOUND/x64/Microsoft.VC120.CRT/msvcr120.dll'
Call Stack (most recent call first):
share/openbr/cmake/InstallDependencies.cmake:135 (include)
openbr/CMakeLists.txt:67 (install_compiler_libraries)
-- Configuring incomplete, errors occurred!
See also "C:/openbr/build-msvc2013/CMakeFiles/CMakeOutput.log".

Related

FindJUCE.cmake: Cannot specify sources for imported target “juce_core”

I am trying to compile the hello world program. I have used the CMakeList provided by this link: https://github.com/remymuller/juce-cmake
I don't know what these errors mean and how to solve them. Please help.
CMakeLists.txt
$ cat CMakeLists.txt
cmake_minimum_required(VERSION 3.0)
project(HelloWorld)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/home/sulakshana/Documents/evon/work/juce/helloworld/NewProject/juce-cmake/cmake/")
find_package(JUCE REQUIRED
COMPONENTS
juce_core
juce_data_structures
juce_events
juce_graphics
juce_gui_basics
juce_gui_extra
)
set(SOURCES
../../Source/Main.cpp
../../Source/MainComponent.h
../../Source/MainComponent.cpp
)
add_executable(${PROJECT_NAME} ${SOURCES})
set_target_properties(${PROJECT_NAME} PROPERTIES MACOSX_BUNDLE true)
target_link_libraries(${PROJECT_NAME} ${JUCE_LIBRARIES})
source_group(Source FILES ${SOURCES})
I have used this .cmake: https://github.com/remymuller/juce-cmake/blob/master/cmake/FindJUCE.cmake
Folder structure:
Here juce-cmake is the clone of the above linked repository:
$ ls
Builds juce-cmake JuceLibraryCode NewProject.jucer Source
Place of CMakeLists.txt:
/Builds/LinuxMakefile$ ls
build buildCMake CMakeLists.txt Makefile
Errors:
$ cmake ..
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:344 (target_sources):
Cannot specify sources for imported target "juce_core".
Call Stack (most recent call first):
/home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:490 (juce_add_module)
CMakeLists.txt:7 (find_package)
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:344 (target_sources):
Cannot specify sources for imported target "juce_data_structures".
Call Stack (most recent call first):
/home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:490 (juce_add_module)
CMakeLists.txt:7 (find_package)
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:344 (target_sources):
Cannot specify sources for imported target "juce_events".
Call Stack (most recent call first):
/home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:363 (juce_add_module)
/home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:490 (juce_add_module)
CMakeLists.txt:7 (find_package)
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:344 (target_sources):
Cannot specify sources for imported target "juce_graphics".
Call Stack (most recent call first):
/home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:490 (juce_add_module)
CMakeLists.txt:7 (find_package)
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:344 (target_sources):
Cannot specify sources for imported target "juce_gui_basics".
Call Stack (most recent call first):
/home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:490 (juce_add_module)
CMakeLists.txt:7 (find_package)
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:344 (target_sources):
Cannot specify sources for imported target "juce_gui_extra".
Call Stack (most recent call first):
/home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:490 (juce_add_module)
CMakeLists.txt:7 (find_package)
CMake Error: File /home/sulakshana/Documents/evon/work/juce/helloworld/FindJuceTemplates/AppConfig.h.in does not exist.
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:264 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:501 (juce_generate_app_config)
CMakeLists.txt:7 (find_package)
CMake Error: File /home/sulakshana/Documents/evon/work/juce/helloworld/FindJuceTemplates/JuceHeader.h.in does not exist.
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:283 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:514 (juce_generate_juce_header)
CMakeLists.txt:7 (find_package)
CMake Error: File /home/sulakshana/Documents/evon/work/juce/helloworld/FindJuceTemplates/include_juce_module.cpp.in does not exist.
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:566 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)
CMake Error: File /home/sulakshana/Documents/evon/work/juce/helloworld/FindJuceTemplates/include_juce_module.cpp.in does not exist.
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:566 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)
CMake Error: File /home/sulakshana/Documents/evon/work/juce/helloworld/FindJuceTemplates/include_juce_module.cpp.in does not exist.
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:566 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)
CMake Error: File /home/sulakshana/Documents/evon/work/juce/helloworld/FindJuceTemplates/include_juce_module.cpp.in does not exist.
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:566 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)
CMake Error: File /home/sulakshana/Documents/evon/work/juce/helloworld/FindJuceTemplates/include_juce_module.cpp.in does not exist.
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:566 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)
CMake Error: File /home/sulakshana/Documents/evon/work/juce/helloworld/FindJuceTemplates/include_juce_module.cpp.in does not exist.
CMake Error at /home/sulakshana/Documents/evon/work/juce/helloworld/FindJUCE.cmake:566 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/sulakshana/Documents/evon/work/juce/helloworld/NewProject/Builds/LinuxMakefile/buildCMake/CMakeFiles/CMakeOutput.log".
This module is relying on functionality that was added in CMake 3.11. Make sure you have at least that version.
The last set of errors is because you only copied the FindJUCE.cmake file but not the FindJuceTemplates directory that comes with it. I suggest cloning/downloading the entire repository into your working directory (or adding it as a Git submodule) and then including it. You may need to point CMAKE_MODULE_PATH to the subdirectory.

Why can't cmake find boost?

I'm trying to build SuperTux using this instruction:
But CMake 3.11 fails
D:\OpenSourceProjects\SuperTux\supertux\build>cmake ..
CMake Deprecation Warning at CMakeLists.txt:49 (CMAKE_POLICY):
The OLD behavior for policy CMP0043 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake
:564 (message):
Imported targets and dependency information not available for Boost version
(all versions older than 1.33)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:903 (_Boost_CO
MPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1571 (_Boost_M
ISSING_DEPENDENCIES)
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1
956 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:125 (FIND_PACKAGE)
CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandle
StandardArgs.cmake:137 (message):
Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.
cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.11/Modules/FindOpenAL.cmake:96 (FIND_PACK
AGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:171 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "D:/OpenSourceProjects/SuperTux/supertux/build/CMakeFiles/CMakeOutput.l
og".
I'm trying to specify BOOST_INCLUDEDIR like
SET(BOOST_INCLUDEDIR, "/dependencies64/include/boost")
but nothing changes. In CMakeOutput.log Visual studio say that building was complete. What i do wrong?

CMake Unable to find Boost Libraries (System, Thread, Filesystem)

I'm trying to install and use DeepLab for a segmentation project, but when trying to configure this using CMake it is unable to find boost libraries, despite identifying boost's version and location. I've tried following advice in similar questions by manually specifying locations but still encounter the same issue. Error messages attached below. Any idea what could be causing this issue?
Thanks in advance.
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1956 (message):
Unable to find the requested Boost libraries.
Boost version: 1.65.0
Boost include path: C:/local/boost_1_65_0
Could not find the following Boost libraries:
boost_system
boost_thread
boost_filesystem
Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
Call Stack (most recent call first):
cmake/Dependencies.cmake:5 (find_package)
CMakeLists.txt:50 (include)
Found gflags (include: C:/Program Files/gflags/include, library: optimized;C:/Program Files/gflags/lib;debug;C:/Program Files/gflags/lib)
Found glog (include: C:/Program Files/glog/include, library: optimized;C:/Program Files/glog/lib;debug;C:/Program Files/glog/lib)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindProtobuf.cmake:425 (file):
file STRINGS file
"C:/Users/Benn/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include/google/protobuf/google/protobuf/stubs/common.h"
cannot be read.
Call Stack (most recent call first):
cmake/ProtoBuf.cmake:4 (find_package)
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindProtobuf.cmake:431 (math):
math cannot parse the expression: " / 1000000": syntax error, unexpected
exp_DIVIDE, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
(2)
Call Stack (most recent call first):
cmake/ProtoBuf.cmake:4 (find_package)
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindProtobuf.cmake:432 (math):
math cannot parse the expression: " / 1000 % 1000": syntax error,
unexpected exp_DIVIDE, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or
exp_NUMBER (2)
Call Stack (most recent call first):
cmake/ProtoBuf.cmake:4 (find_package)
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindProtobuf.cmake:433 (math):
math cannot parse the expression: " % 1000": syntax error, unexpected
exp_MOD, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
(2)
Call Stack (most recent call first):
cmake/ProtoBuf.cmake:4 (find_package)
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
Found PROTOBUF Compiler: C:/Users/Benn/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include/google/protobuf
CMake Error at cmake/ProtoBuf.cmake:19 (string):
string sub-command REGEX, mode MATCH needs at least 5 arguments total to
command.
Call Stack (most recent call first):
cmake/Dependencies.cmake:24 (include)
CMakeLists.txt:50 (include)
CMake Error at E:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS
HDF5_HL_LIBRARIES HL) (found version "")
Call Stack (most recent call first):
E:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
E:/Program Files/CMake/share/cmake-3.10/Modules/FindHDF5.cmake:905 (find_package_handle_standard_args)
cmake/Dependencies.cmake:27 (find_package)
CMakeLists.txt:50 (include)
Configuring incomplete, errors occurred!

CMake Error: Could not find include directory and library

I am trying to build PODOFO library with CMake using MinGW compiler. It requires some external libraries like zlib, jpeg, openssl and freetype. My cmake command is as follows:
cmake -G "MinGW Makefiles"
-DCMAKE_INCLUDE_PATH=c:\Users\Abhishek\Downloads\freetype-2.3.5-1-bin\include -DCMAKE_LIBRARY_PATH=c:\Users\Abhishek\Downloads\freetype-2.3.5-1-bin\lib
-DCMAKE_INCLUDE_PATH=c:\Users\Abhishek\Downloads\zlib\include -DCMAKE_LIBRARY_PATH=c:\Users\Abhishek\Downloads\zlib\lib -DCMAKE_INCLUDE_PATH=C:\Users\Abhishek\Downloads\openssl-0.9.8h-1-lib\include -DCMAKE_LIBRARY_PATH=c:\Users\Abhishek\Downloads\openssl-0.9.8h-1-lib\lib
-DPODOFO_BUILD_SHARED:BOOL=FALSE ..
Somehow it is not able to find the freetype files. The error I get is as follows:
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find FREETYPE (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStan dardArgs.cmake:291
(_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindFREETYPE.cmake:75
(FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:372
(FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
One additional point. If I delete the previous CMake build files (cache etc) then it doesn't even find zlib!
I can't understand why this erratic behaviour. Can anyone shed light on this?
When you're configuring, you need to define FREETYPE_INCLUDE_DIR and the other variables for where you keep the libraries it depends on - cmake can't guess these just from your include paths.

Missing dependency when building with CMake

I'm trying to build the Polycode codes using CMake. I followed the instructions in the Build.md file, but I get the following error:
$ cmake -G "Visual Studio 10" ..
No POLYCODE_RELEASE_DIR specified, to C:/Development/Polycode/Release/Windows
DEBUG CMAKE_PREFIX_PATH=C:/Development/Polycode/Release/Windows/Framework/Core/Dependencies;C:/Development/Polycode/Release/Windows/Framework/Modules/Dependencies;C:/Development/Polycode/Release/Windows/Framework/Tools/Dependencies
CMake Error at c:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
c:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
c:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindZLIB.cmake:85 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMake/PolycodeIncludes.cmake:14 (FIND_PACKAGE)
Core/Contents/CMakeLists.txt:2 (INCLUDE)
-- Configuring incomplete, errors occurred!
I see that it needs ZLIB but, I don't know how to handle this. Shouldn't it download the dependency automatically? I could surely find ZLIB and download it but I don't really want to do this with every single lib it might need. Is there a convenient way to solve this?
It is a two-step build process. First you need to build the dependencies:
cd Dependencies # <---- this will run the next steps in the Dependencies subdirectory of your Polycode repo
mkdir Build
cd Build
cmake -G "Visual Studio 10" ..
This step should install the required libraries. Only then you can you proceed to build Polycode itself
# <---- this build step is run inside your Polycode root directory
mkdir Build
cd Build
cmake -G "Visual Studio 10" ..