Posted to tcl by mjanssen at Tue Feb 02 10:52:40 GMT 2021view raw
- c:\Users\Mark\Src\tcl-act\example>act build manifests\manifest.txt --vcpkg c:\Bin\vcpkg
- -- Building for: Visual Studio 16 2019
- -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
- -- The CXX compiler identification is MSVC 19.28.29336.0
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- CMake Error at CMakeLists.txt:29 (find_package):
- Could not find a package configuration file provided by "unofficial-sodium"
- with any of the following names:
- unofficial-sodiumConfig.cmake
- unofficial-sodium-config.cmake
- Add the installation prefix of "unofficial-sodium" to CMAKE_PREFIX_PATH or
- set "unofficial-sodium_DIR" to a directory containing one of the above
- files. If "unofficial-sodium" provides a separate development package or
- SDK, be sure it has been installed.
- -- Configuring incomplete, errors occurred!
- See also "C:/Users/Mark/Src/tcl-act/example/build/CMakeFiles/CMakeOutput.log".
- Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
- Copyright (C) Microsoft Corporation. All rights reserved.
- MSBUILD : error MSB1009: Project file does not exist.
- Switch: ALL_BUILD.vcxproj
- ERROR: could not find example_cutil library in build/ build/Release
- c:\Users\Mark\Src\tcl-act\example>
Comments
Posted by anticrisis at Tue Feb 02 17:38:09 GMT 2021 [text] [code]
Thank you for testing this! This is caused by your vcpkg being in an unusual place -- The --vcpkg option makes it sound like that's all you have to do, but it isn't. The CMakeLists.txt file is dependent on finding your vcpkg installation. It only looks in two standard places, the parent directory of the project, and the parent's parent. There are many ways to make this more robust, but I do not transmit the --vcpkg option to CMake. Right now, you have to edit the top the CMakeLists.txt to suit your own installation.
Posted by anticrisis at Tue Feb 02 17:41:30 GMT 2021 [text] [code]
One more thing to note: On Windows CMake will also complain about how libsodium is packaged, using an 'unofficial-sodium' name. It notes that the warning is intended for project developers, and can be ignored.