I'm trying to install darknet on Windows 10 using the instructions in the following link:
https://github.com/kiyoshiiriemon/yolov4_darknet/tree/b504cc3b4e47617c2cf28c37a6581fc733854f06
However, I got the following error through Windows PowerShell:
-- Configuring x64-windows CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:106 (message):
Command failed: ninja -v
Working Directory: C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\Users\hedey\vcpkg\buildtrees\opencv4\config-x64-windows-out.log
Call Stack (most recent call first): scripts/cmake/vcpkg_configure_cmake.cmake:312 (vcpkg_execute_required_process) ports/opencv4/portfile.cmake:280 (vcpkg_configure_cmake) scripts/ports.cmake:135 (include)
Error: Building package opencv4:x64-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with `.\vcpkg update`, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: opencv4:x64-windows Vcpkg version:
2020.06.15-nohash
Additionally, attach any relevant sections from the log files above.
I'm totally stuck getting a solution for this issue.
This is the complete log file can be found in the following link:
https://www.dropbox.com/s/f30g354t26n1mvg/log_files.zip?dl=0
I noticed that the png.h file exists at C:\Users\hedey\vcpkg\installed\x64-windows\include\libpng16 instead of C:\Users\hedey\vcpkg\installed\x64-windows\include\libpng (which is where it's being searched for as in the CMakeError file.
Also, both of png.h and pthread.h exist at C:\Users\hedey\vcpkg\installed\x64-windows\include.
EDIT:
The above problem was solved after I updated vcpkg (using git pull).
However, I got another error as follows:
FAILED: modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.obj
cmd.exe /C "cd /D C:\Users\hedey\vcpkg\buildtrees\opencv4\x64-windows-dbg\modules\core\CMakeFiles\cuda_compile_1.dir\src\cuda && C:\Users\hedey\vcpkg\downloads\tools\cmake-3.18.4-windows\cmake-3.18.4-win32-x86\bin\cmake.exe -E make_directory C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/. && C:\Users\hedey\vcpkg\downloads\tools\cmake-3.18.4-windows\cmake-3.18.4-win32-x86\bin\cmake.exe -D verbose:BOOL=OFF -D build_configuration:STRING=Debug -D generated_file:STRING=C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj -D generated_cubin_file:STRING=C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj.cubin.txt -P C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.obj.Debug.cmake"
nvcc fatal : Unsupported gpu architecture 'compute_30'
CMake Error at cuda_compile_1_generated_gpu_mat.cu.obj.Debug.cmake:220 (message):
Error generating
C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj
I faced this problem before with the cmake gui, and it can be solved by setting CUDA_ARCH_BIN to the value that's suitable to the GPU (6.1 in my case).
However, I don't know how to solve it in case of installing using vcpkg. I tried to find a file where I can edit, and I think it's 'OpenCVDetectCUDA.cmake'. I tried some edits to that file, and I'm still getting the same error. Could you pls help me overcome this issue?
Related
I have a problem with the eclipse IDE with ESP-IDF, every time that i build a project i get this massage-
Building in: C:\Users\eclipse-workspace06\blynk\build
Configuring in: C:\Users\eclipse-workspace06\blynk\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=D:\espidfeclipse\esp-idf-v5.0\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32 C:\Users\eclipse-workspace06\blynk
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.28.0.windows.1")
CMake Error at D:/espidfeclipse/esp-idf-v5.0/tools/cmake/build.cmake:181 (file):
file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
-- Configuring incomplete, errors occurred!
exactly three arguments.
Call Stack (most recent call first):
D:/espidfeclipse/esp-idf-v5.0/tools/cmake/idf.cmake:53 (__build_init)
D:/espidfeclipse/esp-idf-v5.0/tools/cmake/project.cmake:12 (include)
CMakeLists.txt:5 (include)
CMake Error at D:/espidfeclipse/esp-idf-v5.0/tools/cmake/project.cmake:18 (message):
Internal error, PYTHON build property not set correctly.
Call Stack (most recent call first):
CMakeLists.txt:5 (include)
cmake --build . -- -v
Error: could not find CMAKE_PROJECT_NAME in Cache
Build complete (1 errors, 0 warnings): C:\Users\eclipse-workspace06\blynk\build
Total time taken to build the project: 246 ms
The code is an example code that works on VScode and Arduino, i installed and reinstalled every thing 100 times already. ( and if i build regular c++ it works alright)
I will be grateful for any help i can get.
Thank you #drescherjm and #Tsyvarev for putting me on the right path.
I solved the problem and the solution is very odd. what i did was to delete all the python instances from the different environment variables and it worked for some bizarre reason.
I wanted to install cgal 5.5.1 in windows10 with the command: ".\vcpkg install cgal:x64-windows"
But I got the following Error:
0 [main] perl (21212) C:\src\vcpkg\downloads\tools\msys2\583ad6e4115a307a\usr\bin\perl.exe: *** fatal error - cygheap base mismatch detected - 0x1322408/0xDE2408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:96 (message):
Command failed: C:/src/vcpkg/downloads/tools/msys2/583ad6e4115a307a/usr/bin/bash.exe --noprofile --norc --debug -c "autoreconf -vfi"
Working Directory: C:/src/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean/
Error code: 127
See logs for more information:
C:\src\vcpkg\buildtrees\gmp\autoconf-x64-windows-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_make.cmake:601 (vcpkg_execute_required_process)
ports/gmp/portfile.cmake:82 (vcpkg_configure_make)
scripts/ports.cmake:147 (include)
error: building gmp:x64-windows failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+gmp
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[gmp]+Build+error
Include '[gmp] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2022-11-10-5fdee72bc1fceca198fb1ab7589837206a8b81ba
vcpkg-scripts version: 5d1f18840 2022-12-06 (10 hours ago)
You can see the log file in following.
Could you please help me?
Computing installation plan...
The following packages will be built and installed:
cgal[core]:x64-windows -> 5.5.1
* gmp[core]:x64-windows -> 6.2.1#14
* mpfr[core]:x64-windows -> 4.1.0#7
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 0 package(s) from C:\Users\sajad.mohseni\AppData\Local\vcpkg\archives in 269.7 us. Use --debug to see more details.
Installing 1/3 gmp:x64-windows...
Building gmp[core]:x64-windows...
-- Using cached gmp-6.2.1.tar.xz.
-- Using cached gmp-arm64-asm-fix-5f32dbc41afc.patch.
-- Cleaning sources at C:/src/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/src/vcpkg/downloads/gmp-6.2.1.tar.xz
-- Applying patch asmflags.patch
-- Applying patch cross-tools.patch
-- Applying patch subdirs.patch
-- Applying patch msvc_symbol.patch
-- Applying patch arm64-coff.patch
-- Applying patch C:/src/vcpkg/downloads/gmp-arm64-asm-fix-5f32dbc41afc.patch
-- Using source at C:/src/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean
-- Found external ninja('1.10.2').
-- Getting CMake variables for x64-windows
-- Getting CMake variables for x64-windows
-- Using cached msys-gzip-1.11-1-x86_64.pkg.tar.zst.
-- Using cached msys-bash-5.1.008-1-x86_64.pkg.tar.zst.
-- Using cached msys-autoconf-2.71-3-any.pkg.tar.zst.
-- Using cached msys-diffutils-3.8-2-x86_64.pkg.tar.zst.
-- Using cached msys-binutils-2.37-5-x86_64.pkg.tar.zst.
-- Using cached msys-libtool-2.4.6-9-x86_64.pkg.tar.xz.
-- Using cached msys-file-5.41-2-x86_64.pkg.tar.zst.
-- Using cached msys-zlib-1.2.11-1-x86_64.pkg.tar.xz.
-- Using cached msys-libbz2-1.0.8-3-x86_64.pkg.tar.zst.
-- Using cached msys-coreutils-8.32-2-x86_64.pkg.tar.zst.
-- Using cached msys-grep-3.0-2-x86_64.pkg.tar.xz.
-- Using cached msys-sed-4.8-2-x86_64.pkg.tar.zst.
-- Using cached msys-libpcre-8.45-1-x86_64.pkg.tar.zst.
-- Using cached msys-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys-automake-wrapper-11-4-any.pkg.tar.zst.
-- Using cached msys-gawk-5.1.0-2-x86_64.pkg.tar.zst.
-- Using cached msys-mpfr-4.1.0-1-x86_64.pkg.tar.zst.
-- Using cached msys-gmp-6.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys-libreadline-8.1.001-1-x86_64.pkg.tar.zst.
-- Using cached msys-ncurses-6.2-2-x86_64.pkg.tar.zst.
-- Using cached msys-automake1.16-1.16.3-3-any.pkg.tar.zst.
-- Using cached msys-perl-5.32.1-2-x86_64.pkg.tar.zst.
-- Using cached msys-libcrypt-2.1-3-x86_64.pkg.tar.zst.
-- Using cached msys-pkg-config-0.29.2-4-x86_64.pkg.tar.zst.
-- Using cached msys-make-4.3-3-x86_64.pkg.tar.zst.
-- Using cached msys-findutils-4.8.0-1-x86_64.pkg.tar.zst.
-- Using cached msys-libintl-0.21-1-x86_64.pkg.tar.zst.
-- Using cached msys-libiconv-1.16-2-x86_64.pkg.tar.zst.
-- Using cached msys-gcc-libs-11.2.0-3-x86_64.pkg.tar.zst.
-- Using cached msys-msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst.
-- Using cached msys-which-2.21-4-x86_64.pkg.tar.zst.
-- Applying patch C:/src/vcpkg/scripts/msys/compile_wrapper_consider_clang-cl.patch
-- Using msys root at C:/src/vcpkg/downloads/tools/msys2/583ad6e4115a307a
-- Generating configure for x64-windows
0 [main] perl (21212) C:\src\vcpkg\downloads\tools\msys2\583ad6e4115a307a\usr\bin\perl.exe: *** fatal error - cygheap base mismatch detected - 0x1322408/0xDE2408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:96 (message):
Command failed: C:/src/vcpkg/downloads/tools/msys2/583ad6e4115a307a/usr/bin/bash.exe --noprofile --norc --debug -c "autoreconf -vfi"
Working Directory: C:/src/vcpkg/buildtrees/gmp/src/v6.2.1-0c723d4b6f.clean/
Error code: 127
See logs for more information:
C:\src\vcpkg\buildtrees\gmp\autoconf-x64-windows-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_make.cmake:601 (vcpkg_execute_required_process)
ports/gmp/portfile.cmake:82 (vcpkg_configure_make)
scripts/ports.cmake:147 (include)
error: building gmp:x64-windows failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+gmp
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[gmp]+Build+error
Include '[gmp] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2022-11-10-5fdee72bc1fceca198fb1ab7589837206a8b81ba
vcpkg-scripts version: 5d1f18840 2022-12-06 (10 hours ago)
I decided to learn C++ GUI development with Qt5 using Visual Studio Code remotely (for personal preference) and from what I found in order to install Qt from command line, you need to use VCPKG file manager. But as I typed, vcpkg/vcpkg install qt5-base (previously I searched vcpkg/vcpkg search qt and found this package is present), it took really long to process and at the end this error message has pop up:
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:96 (message):
Command failed: /workspaces/octopus-browser/vcpkg/buildtrees/qt5-base/src/5.15.5-451bf817fc.clean/configure -confirm-license -opensource -verbose -system-zlib -system-libjpeg -system-libpng -system-freetype -system-pcre -system-doubleconversion -system-sqlite -system-harfbuzz -icu -no-angle -no-glib -openssl-linked -no-sql-psql -no-sql-mysql --vulkan=no -fontconfig -xcb-xlib -xcb -linuxfb -nomake examples -nomake tests -static LIBJPEG_LIBS=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libjpeg.a ZLIB_LIBS=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libz.a "LIBPNG_LIBS=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libpng16d.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libz.a" PCRE2_LIBS=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libpcre2-16.a "FREETYPE_LIBS=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libfreetyped.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libbz2d.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libpng16d.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libz.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libbrotlidec-static.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libbrotlicommon-static.a" "ICU_LIBS=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicui18n.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicutu.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicuuc.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicuio.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicudata.a" QMAKE_LIBS_PRIVATE+=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libbz2d.a QMAKE_LIBS_PRIVATE+=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libpng16d.a "QMAKE_LIBS_PRIVATE+=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicui18n.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicutu.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicuuc.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicuio.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libicudata.a" QMAKE_LIBS_PRIVATE+=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libzstd.a "SQLITE_LIBS=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libsqlite3.a -ldl -lpthread" "HARFBUZZ_LIBS=-lharfbuzz -lm -lfreetyped -lbz2d -lpng16d -lm -lz -lbrotlidec-static -lbrotlicommon-static" "OPENSSL_LIBS=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libssl.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libcrypto.a -ldl -lpthread" "FONTCONFIG_LIBS=/workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libfontconfig.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libfreetyped.a /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/libexpat.a -luuid" -debug -prefix /workspaces/octopus-browser/vcpkg/installed/x64-linux -hostprefix /workspaces/octopus-browser/vcpkg/installed/x64-linux/tools/qt5/debug -hostlibdir /workspaces/octopus-browser/vcpkg/installed/x64-linux/tools/qt5/debug/lib -hostbindir /workspaces/octopus-browser/vcpkg/installed/x64-linux/tools/qt5/debug/bin -archdatadir /workspaces/octopus-browser/vcpkg/installed/x64-linux/tools/qt5/debug -datadir /workspaces/octopus-browser/vcpkg/installed/x64-linux/share/qt5/debug -plugindir /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/plugins -qmldir /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/qml -headerdir /workspaces/octopus-browser/vcpkg/installed/x64-linux/include/qt5 -libexecdir /workspaces/octopus-browser/vcpkg/installed/x64-linux/tools/qt5/debug -bindir /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/bin -libdir /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib -I /workspaces/octopus-browser/vcpkg/installed/x64-linux/include -I /workspaces/octopus-browser/vcpkg/installed/x64-linux/include/qt5 -L /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib -L /workspaces/octopus-browser/vcpkg/installed/x64-linux/debug/lib/manual-link -platform linux-g++
Working Directory: /workspaces/octopus-browser/vcpkg/buildtrees/qt5-base/x64-linux-dbg
Error code: 3
See logs for more information:
/workspaces/octopus-browser/vcpkg/buildtrees/qt5-base/config-x64-linux-dbg-out.log
/workspaces/octopus-browser/vcpkg/buildtrees/qt5-base/config-x64-linux-dbg-err.log
Call Stack (most recent call first):
ports/qt5-base/cmake/configure_qt.cmake:127 (vcpkg_execute_required_process)
ports/qt5-base/portfile.cmake:348 (configure_qt)
scripts/ports.cmake:147 (include)
error: building qt5-base:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+qt5-base
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[qt5-base]+Build+error
Include '[qt5-base] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2022-07-21-a0e87e227afb536c62188c11ad029954f28fdb22
vcpkg-scripts version: e6a000679 2022-08-03 (33 hours ago)
You can also use the prefilled template from /workspaces/octopus-browser/vcpkg/installed/vcpkg/issue_body.md.
I have ensured I have both latest versions of VCPKG by running git pull and vcpkg update. In the process it threw me a few warnings:
CMake Warning at ports/qt5-base/portfile.cmake:4 (message):
qt5-base currently requires some packages from the system package manager,
see https://doc.qt.io/qt-5/linux-requirements.html
Call Stack (most recent call first):
scripts/ports.cmake:147 (include)
CMake Warning at ports/qt5-base/portfile.cmake:5 (message):
qt5-base for qt5-x11extras requires several libraries from the system
package manager. Please refer to
https://github.com/microsoft/vcpkg/blob/master/scripts/azure-pipelines/linux/provision-image.sh
for a complete list of them.
Call Stack (most recent call first):
scripts/ports.cmake:147 (include)
The reason why I cannot use the official installer is because I run it on GitHub Codespaces and cannot install anything there manually, only using the command prompt. What can I do to resolve this issue and what are the alternative ways to install QT if there are any?
I saw this issue "No package 'libcrypto' found". The same error I fixed multiple months ago was to follow this solution: https://github.com/scipr-lab/libsnark/issues/99
I tried this solution today however it doesn't work anymore. (I also tried"brew install openssl, brew info openssl") No luck.
Have you seen this before? Would you help take a look?
-- Checking for module 'libcrypto'
-- No package 'libcrypto' found
CMake Error at /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPkgConfig.cmake:458 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindPkgConfig.cmake:637 (_pkg_check_modules_internal)
PlaylistParser/src/CMakeLists.txt:2 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
brew info openssl says the following: (for me, might be different for you if your version is different)
openssl#1.1 is keg-only, which means it was not symlinked into /usr/local,
because openssl/libressl is provided by macOS so don't link an incompatible version.
If you need to have openssl#1.1 first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl#1.1/bin:$PATH"' >> ~/.zshrc
For compilers to find openssl#1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl#1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl#1.1/include"
For pkg-config to find openssl#1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl#1.1/lib/pkgconfig"
Since your CMake script seems to use pkg-config, you only need to execute the last statement before you run cmake.
When I run ./install_prereq install-unpackaged command, I'd got the following error.
configure: error: Package requirements (libcrypto >= 1.0.1) were not
met:
No package 'libcrypto' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables crypto_CFLAGS and
crypto_LIBS to avoid the need to call pkg-config. See the pkg-config
man page for more details.
Then I run the following command and the problem was solved;
yum install openssl-devel
I am trying to build folly library which is a c++ library and tried to install it via vcpkg.
It downloaded all the dependencies and installed the dependent boost libraries as well.
But it gives an error for in the last step which is installing the folly.
I have used the following command:
.\vcpkg.exe install folly:x64-windows
It has giving the following error:
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
Command failed: ninja;-v
Working Directory: D:/C++Examples/Vcpkg/buildtrees/folly/x64-windows-rel/vcpkg-parallel-configure
See logs for more information:
D:\C++Examples\Vcpkg\buildtrees\folly\config-x64-windows-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:237 (vcpkg_execute_required_process)
ports/folly/portfile.cmake:57 (vcpkg_configure_cmake)
scripts/ports.cmake:72 (include)
Error: Building package folly:x64-windows failed with: BUILD_FAILED
Here is the log file level details of the issue:
CMake Error at CMake/FollyFunctions.cmake:81 (if):
if given arguments:
"D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/Benchmark.cpp" "MATCHES" "^D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/build/"
Regular expression
"^D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/build/"
cannot compile
Call Stack (most recent call first):
CMakeLists.txt:101 (REMOVE_MATCHES_FROM_LISTS)
Do you have any idea how can i handle this issue?
Regular expression
^D:/C++Examples/Vcpkg/buildtrees/folly/src/8.05.14.00-e96738be27/folly/build/
is invalid, because "+" character has special meaning for regular expressions, and "++" combination is meaningless(incorrect).
Looks like the project's CMakeLists.txt expects path to not contain regular-expression-specific characters.
Try to use another path for build the project, without "+" character in it.