question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vcpkg packages are not reachable

See original GitHub issue

I have generated a nuget-package with vcpkg, and this file uses a .targets-file to insert includes etc. However, the includes are not found by clang-power-tools:

  <ItemDefinitionGroup Condition="'$(VcpkgEnabled)' == 'true'">
    <Link>
      <AdditionalDependencies Condition="'$(VcpkgNormalizedConfiguration)' == 'Debug' and '$(VcpkgAutoLink)' != 'false'">%(AdditionalDependencies);$(VcpkgRoot)debug\lib\*.lib</AdditionalDependencies>
      <AdditionalDependencies Condition="'$(VcpkgNormalizedConfiguration)' == 'Release' and '$(VcpkgAutoLink)' != 'false'">%(AdditionalDependencies);$(VcpkgRoot)lib\*.lib</AdditionalDependencies>
      <AdditionalLibraryDirectories Condition="'$(VcpkgNormalizedConfiguration)' == 'Release'">%(AdditionalLibraryDirectories);$(VcpkgRoot)lib;$(VcpkgRoot)lib\manual-link</AdditionalLibraryDirectories>
      <AdditionalLibraryDirectories Condition="'$(VcpkgNormalizedConfiguration)' == 'Debug'">%(AdditionalLibraryDirectories);$(VcpkgRoot)debug\lib;$(VcpkgRoot)debug\lib\manual-link</AdditionalLibraryDirectories>
    </Link>
    <ClCompile>
      <AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(VcpkgRoot)include</AdditionalIncludeDirectories>
    </ClCompile>
    <ResourceCompile>
      <AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(VcpkgRoot)include</AdditionalIncludeDirectories>
    </ResourceCompile>
  </ItemDefinitionGroup>

My code uses boost from the nuget-package:

C:\development\QMS_Src\BaseModel\QsGeodataMod\Source\src\PersistentObject.cpp:10:10: fatal error: 'boost/uuid/uuid.hpp' file not found
#include <boost/uuid/uuid.hpp>
         ^~~~~~~~~~~~~~~~~~~~~

Tell me if you need a vcpkg-made nuget-package to experiment with (with e.g. zlib).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
hero101111commented, Jul 3, 2018

Hello,

We’re happy to inform you that we’ve fixed this and vcpkg packages are now detected by ClangPowerTools. Version 3.7, to be released today, will contain the fix.

Regards, Gabriel

3reactions
cpp-red-lioncommented, Mar 21, 2018

Hi @Twon,

Thanks for your feedback.

My colleague, @hero101111 is already investigating this. When we’ve made some progress, we’ll update this thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to access library after `integrate install` ...
Note: I installed VCPKG on my M drive. VCPKG is installed no where else on this computer (typically I use virtual machines.. not...
Read more >
Vcpkg package not showing up on Visual Studio 2019
I have installed colmap via vcpkg and it's not showing up for me. It shows up on .\vcpkg list but not on Visual...
Read more >
Vcpkg Libraries not detected by Visual Studio 2019 ...
Hello, I'm been using the spdlog:x86-windows library installed via vcpkg and it was working in VS2019 CE. However, I tried adding my ...
Read more >
Setting up vcpkg for VS2022. vcpkg integrate install not ...
If I run vcpkg integrate install in admin powershell, it outputs: Applied user-wide integration for this vcpkg root.
Read more >
Compiling - vcpkg fails to install libraries
Hello there, I am on my WINDOWS 10 PC trying to install all required packages for TFS. I am using "Node.js command prompt...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found