web-eid / web-eid-app

The Web eID application performs cryptographic digital signing and authentication operations with electronic ID smart cards for the Web eID browser extension
https://web-eid.eu
MIT License
25 stars 29 forks source link

Windows build instructions in the README are wrong (OpenSSL 3) #203

Open mbakhoff opened 2 years ago

mbakhoff commented 2 years ago

I tried building the app using the build instructions from readme, but it fails.

Installed some dependencies:

.\vcpkg install --recurse --triplet x64-windows --clean-after-build gtest openssl
..other stuff..
cmake --build . --config ${BUILD_TYPE} --target installer

C:\Users\User\web-eid-app\install\web-eid.wxs(91): error LGHT0103: The system cannot find the file 'C:/vcpkg/installed/x64-windows/bin\libcrypto-1_1-x64.dll'. [C:\Users\User\web-eid-app\build\src\app\installer.vcxproj]

Looks like vcpkg now installs openssl 3.x, see https://github.com/microsoft/vcpkg/commit/407bc79b391a8e30866c95294babca5b111f6006#diff-d274f14813540f3a0420c68884476dc2d6117b0af37bb9d43e48176c5f6b8ed9

Checking out https://github.com/microsoft/vcpkg/commit/a69b65229b before running .\vcpkg install ... is a workaround.

Another note: "Building and testing in Windows" should say

-Use Powershell to run the following commands
+Use Developer PowerShell for VS 2019 to run the following commands

Otherwise cmake is not found

mrts commented 2 years ago

Thank you for bringing this up! We will update the README accordingly after v2.2.0 is out.