Comments (8)
running vcvars64.bat before vs.bat fix the issues.
Thanks for your help.
from cppserver.
According to FindCrypt.cmake:
find_path(CRYPT_INCLUDE_DIR wincrypt.h)
if(MSVC)
find_library(CRYPT_LIBRARY crypt32.lib)
else()
find_library(CRYPT_LIBRARY crypt32)
endif()
wincrypt.h and crypt32.lib should be available via INCLUDE, LIB environment variables. You may try to build in console with VS2019 vcvars64.bat
executed before the build.
from cppserver.
Do you have Windows SDK installed?
When you run CppServer\build\VisualStudio>01-generate.bat
do you see in output:
-- Found OpenSSL: Z:/projects/Projects/CppServer/modules/OpenSSL/VS/lib/libcrypto.lib (found version "1.1.1c")
-- Found Crypt: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/Crypt32.Lib
-- Found WinSock: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.18362.0/um/x64/MsWSock.Lib
from cppserver.
I also have the some problem as @CertitudeDigital. I tried running the 01-generate.bat but I'm not getting the output you specified, this is the output I'm getting:
PS D:\Projects\VS-2019\CppServer\build\VisualStudio> .\01-generate.bat
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- The System identification is Windows-10.0.18362 Windows 10.0.18362 Platform/Windows
-- Could NOT find Crypt (missing: CRYPT_LIBRARY CRYPT_INCLUDE_DIR)
-- Could NOT find WinSock (missing: WINSOCK_LIBRARY WINSOCK2_LIBRARY WINSOCK_INCLUDE_DIR)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- The System identification is Windows-10.0.18362 Windows 10.0.18362 Platform/Windows
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- The System identification is Windows-10.0.18362 Windows 10.0.18362 Platform/Windows
-- Could NOT find DbgHelp (missing: DBGHELP_LIBRARY DBGHELP_INCLUDE_DIR)
-- Could NOT find RPC (missing: RPC_LIBRARY RPC_INCLUDE_DIR)
-- Could NOT find Userenv (missing: USERENV_LIBRARY USERENV_INCLUDE_DIR)
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Projects/VS-2019/CppServer/temp
The SDK is installed and the libs can be found at the path you just stipulated in your comment.
from cppserver.
How do I do this?
I'm new to the cmake and C++ environment using visual studio, I'm sorry if my questions are a little stupid.
from cppserver.
You can use Windows Environment Variables manager for this:
You can try to append the following paths to the variables:
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.22.27905\include;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.22.27905\ATLMFC\include;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt
LIB=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.22.27905\ATLMFC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.22.27905\lib\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64
PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.22.27905\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\ucrt;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64
from cppserver.
Your solution worked perfect! I manged to build the project and also to run the tests without any problems.
Thanks for the help @chronoxor 👍
from cppserver.
from cppserver.
Related Issues (20)
- WHERE IS THE BUILD FOLDER ? HOT 1
- [help][docs] Sample project please
- Unable to compile sample UDP echo server HOT 3
- build error HOT 2
- M1 Mac stuck on UDP server tests
- HttpRequests doesn't work? HOT 8
- How to contorl tcp or udp transmission rate?
- Mac build error
- module not found anymore
- not handle websocket close status code
- install using vcpkg HOT 1
- Support PIC/user-defined build options HOT 2
- Memory leak HOT 1
- build HOT 2
- How to Use UDP Broadcast in Linux?
- Build Error in CppCommon
- Request: Allow specifying OpenSSL path HOT 1
- how to get the form-data?
- SSLClient ReconnectAsync() Access Violation on Windows Debug build
- I am getting wstring_convert deprecated error. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cppserver.