Git Product home page Git Product logo

Comments (8)

aboelens avatar aboelens commented on June 16, 2024 1

I get the following error:
ERROR: Environment variable "LIB" is not found.
INFO: Could not find files for the given pattern(s).

from vcpkg.

JonLiu1993 avatar JonLiu1993 commented on June 16, 2024

Try this command on your machine?
1.
vcpkg env --triplet x64-windows
2.
where $LIB:kernel32.lib

from vcpkg.

JonLiu1993 avatar JonLiu1993 commented on June 16, 2024

Reinstall Win SDK and give it a try.

from vcpkg.

JonLiu1993 avatar JonLiu1993 commented on June 16, 2024

PS F:\Feature-test\vcpkg> ./vcpkg env --triplet x64-windows
Microsoft Windows [Version 10.0.19045.4170]
(c) Microsoft Corporation. All rights reserved.

F:\Feature-test\vcpkg>where $LIB:kernel32.lib
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64\kernel32.Lib

from vcpkg.

aboelens avatar aboelens commented on June 16, 2024

I just did a reinstall, but I still get the same error:

where $LIB:kernel32.lib
ERROR: Environment variable "LIB" is not found.
INFO: Could not find files for the given pattern(s).

from vcpkg.

aboelens avatar aboelens commented on June 16, 2024

I just checked, "kernel32.lib" is there.

from vcpkg.

JonLiu1993 avatar JonLiu1993 commented on June 16, 2024

Try adding the kernel32.lib path to your environment variables.

from vcpkg.

aboelens avatar aboelens commented on June 16, 2024

After adding these lines to my triplet file, I was able to build the package. Thanks.

Set LIB

set(ENV{LIB} "C:/Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/um/x64;C:/Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/ucrt/x64;C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.39.33519/lib/x64")

Set INCLUDE

set(ENV{INCLUDE} "C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/ucrt;C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/um;C:/Program Files (x86)/Windows Kits/10/Include/10.0.22621.0/shared;C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.39.33519/include")

from vcpkg.

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.