Coder Social home page Coder Social logo

Comments (8)

Macfly avatar Macfly commented on September 24, 2024 2

running vcvars64.bat before vs.bat fix the issues.
Thanks for your help.

from cppserver.

chronoxor avatar chronoxor commented on September 24, 2024 1

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.

chronoxor avatar chronoxor commented on September 24, 2024

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.

vulcanUPB avatar vulcanUPB commented on September 24, 2024

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.

vulcanUPB avatar vulcanUPB commented on September 24, 2024

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.

chronoxor avatar chronoxor commented on September 24, 2024

You can use Windows Environment Variables manager for this:
image

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.

vulcanUPB avatar vulcanUPB commented on September 24, 2024

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.

CertitudeDigital avatar CertitudeDigital commented on September 24, 2024

from cppserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.