Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use vcpkg::tracy as a dependency #2730

Closed
braxtons12 opened this issue Aug 29, 2022 · 4 comments
Closed

Can't use vcpkg::tracy as a dependency #2730

braxtons12 opened this issue Aug 29, 2022 · 4 comments
Labels

Comments

@braxtons12
Copy link

Xmake Version

v2.7.1+master.6ae8de7

Operating System Version and Architecture

Arch Linux, 5.19.4-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 25 Aug 2022 17:31:19 +0000 x86_64 GNU/Linux

Describe Bug

Trying to require vcpkg::tracy as a dependency fails.

Relying on xmake to get the latest version via:

add_requires("vcpkg::tracy", {
    alias = "tracy",
    system = false,
    configs = {
        languages = cxx20
    }
})

results in "fetch vcpkg::tracy-latest failed!" being printed in both the CLI and the install log, with no further information.

Using ether of this:

add_requires("vcpkg::tracy 0.8.2", {
    alias = "tracy",
    system = false,
    configs = {
        languages = cxx20
    }
})

or this:

add_requires("vcpkg::tracy >=0.8.0", {
    alias = "tracy",
    system = false,
    configs = {
        languages = cxx20
    }
})

results in "error: the baseline does not contain an entry for port tracy" in both the CLI and install log.

In the first case, vcpkg actually does successfully install tracy, xmake just seems to think it didn't for some reason.
If I run vcpkg list, tracy is listed as installed at version 0.8.2.

In the second and third cases, vcpkg does not install tracy, even though running
vcpkg search tracy returns:
tracy 0.8.2 A real time, nanosecond resolution, remote telemetry, hybrid frame and sam...
which means there is in fact an entry for tracy at version 0.8.2.

Expected Behavior

xmake should successfully fetch tracy from vcpkg

Project Configuration

No response

Additional Information and Error Logs

No response

@braxtons12 braxtons12 added the bug label Aug 29, 2022
@waruqi
Copy link
Member

waruqi commented Aug 29, 2022

results in "fetch vcpkg::tracy-latest failed!" being printed in both the CLI and the install log, with no further information.

run xmake f -c -vD and give me verbose logs

In the first case, vcpkg actually does successfully install tracy, xmake just seems to think it didn't for some reason.
If I run vcpkg list, tracy is listed as installed at version 0.8.2.

xmake runs vcpkg install tracy:x64-windows-static by default, so it installs the x64-windows-static version.

Even if you have installed it with vcpkg install tracy, they are not an exact match and xmake cannot find it.

Unless you switch to the dynamic library version using configs = {shared = true}, or install vcpkg install tracy:x64-windows-static manually

@waruqi
Copy link
Member

waruqi commented Aug 29, 2022

it works for your configuration on my host. x64-windows-static/lib

image

@braxtons12
Copy link
Author

run xmake f -c -vD and give me verbose logs

This helped solve the problem.
checkinfo: vcpkg root directory not found, maybe you need set $VCPKG_ROOT!

Apparently $VCPKG_ROOT wasn't being set correctly in my environment. Fixing that has solved the problem and I've got it working now!

@waruqi
Copy link
Member

waruqi commented Aug 29, 2022

you can also run vcpkg integrate install or xmake f --vcpkg=/vcpkgroot or xmake g --vcpkg=/vcpkgroot to let xmake find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants