Closed PucklaJ closed 3 years ago
In the meantime, I have a working kinect sensor sdk package here if you wish: https://github.com/SirLynix/obs-kinect/blob/master/xmake-repo/packages/k/k4a/xmake.lua
you can add some print logs in your local script and debug it. https://github.com/xmake-io/xmake/blob/master/xmake/modules/package/manager/vcpkg/find_package.lua
then add -c
to force to find package for each time.
xmake f -c
This was unexpected @SirLynix . Thank you, I will try it out.
When adding the VCPKG_ROOT
environment variable I fixed the issue.
But I found another bug. When vcpkgdir
is inserted into the detectcache and the directory has not been found, then the value in the cache is false
. In this if clause false == nil
will be false
, which means that xmake will never look for the directory again.
Maybe this line should be changed to this:
detectcache:set("detect.sdks.find_vcpkgdir", vcpkgdir or nil)
Maybe this line should be changed to this:
detectcache:set("detect.sdks.find_vcpkgdir", vcpkgdir or nil)
This is not a bug. Even if it is not found, the failed result will be cached as false to avoid repeated finding. If you want to force to re-find it every time, you can pass the -c
parameter to ignore the cache. xmake f -c
Even if it is not found, the failed result will be cached as false to avoid repeated finding
Oh yes. This makes sense. So this issue can be closed now.
Describe the bug
I want to use
azure-kinect-sensor-sdk
from vcpkg with xmake. I installedazure-kinect-sensor-sdk:x64-windows
andazure-kinect-sensor-sdk:x64-windows-static
from vcpkg, but when trying to use it viaadd_requires("vcpkg:azure-kinect-sensor-sdk")
xmake finds the correct vcpkg package, but then immediatly after fails to find it again.Expected behavior
xmake should find the
x64-windows-static
versionError output
Related Environment
Please provide compiling and running environment information:
Additional context
vcpkg list
output: