Coder Social home page Coder Social logo

Comments (6)

na2axl avatar na2axl commented on May 28, 2024

The issue is the name of the directory macos-aarch64 which is instead macosx-aarch64 (macosx) on disk. Also, I needed to use --allow-unsupported to install the package, or the package actually supports the arm64-osx if we look at the warning:

warning: shader-slang is only supported on '((x86 & windows) | (x64 & (windows | linux | osx)) | (arm64 & (linux | osx))) & !uwp & !static', which does not match arm64-osx. This usually means that there are known build failures, or runtime problems, when building other platforms. Proceeding anyway due to `--allow-unsupported`.

I think the platform condition (arm64 & (linux | osx)) matches the arm64-osx triplet right ?

from vcpkg.

dg0yt avatar dg0yt commented on May 28, 2024

I think the platform condition (arm64 & (linux | osx)) matches the arm64-osx triplet right ?

Yes, if using the official triplet file.

  file INSTALL cannot find
 "/Users/workbudairone/.vcpkg-clion/vcpkg/buildtrees/shader-slang/src/slang-2024-033a74ec75.clean/bin/macos-aarch64/release/libslang.dylib":

This tries to install a dylib from from the source dir, but artifacts should normally be in the build dirs, e.g.

"/Users/workbudairone/.vcpkg-clion/vcpkg/buildtrees/shader-slang/arm64-osx-rel/...

from vcpkg.

na2axl avatar na2axl commented on May 28, 2024

Yes, if using the official triplet file.

I think I'm using the official triplet file since I didn't do extra config so far. Just created a vcpkg.json file in the root of my project, enabled manifest mode and set the path to the vcpkg toolchain file in CMake, that's all. Everything worked great so far until I added shader-slang in the manifest.

This tries to install a dylib from from the source dir, but artifacts should normally be in the build dirs, e.g.

Just checked the directory, and there is no arm64-osx-rel folder here, but I can see the dylib files in /Users/workbudairone/.vcpkg-clion/vcpkg/buildtrees/shader-slang/src/slang-2024-033a74ec75.clean/bin/macosx-aarch64/release/ (note the x after macos)

from vcpkg.

na2axl avatar na2axl commented on May 28, 2024

Also, after having manually edited the path in the portfile, I found that it also want to install libslang-llvm.dylib which is not built by the port...

from vcpkg.

dg0yt avatar dg0yt commented on May 28, 2024

And x64-osx fails, too. #38602.

from vcpkg.

dg0yt avatar dg0yt commented on May 28, 2024

I think the platform condition (arm64 & (linux | osx)) matches the arm64-osx triplet right ?

Yes, if using the official triplet file.

Oh, I didn't spot the trailing !static.
This port is full of problems.

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.