-
Notifications
You must be signed in to change notification settings - Fork 6.9k
[devil] build failure on mac os arm64 #38559
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
Comments
@chicoferreira, Thanks for posting this issue, devil not provide find_package() usage, just provide
|
How can I then use it both on Windows, Linux and MacOS with the same vcpkg.json and CMakeLists.txt? |
The default linux and osx triplets use static library linkage, the default windows triplet uses dynamic library linkage. I guess this explains the different observations. |
I was expecting that vcpkg would abstract that and just link the package correctly in any supported OS, which it doesn't, or at least tell me how to do it like other packages do. @JonLiu1993 as this issue is no longer marked as a bug, could you please tell me how could I do #38559 (comment)? Thank you for the support. |
Option 1: use triplets with dynamic linkage (e.g. find_package(PkgConfig REQUIRED)
pkg_check_modules(DevIL REQUIRED IMPORTED_TARGET DevIL)
target_link_libraries(my_target PRIVATE PkgConfig::DevIL) (Note that it's still possible that pkg-config files installed by |
|
Thank you for the options given. Unfortunately they didn't fit my needs so I end up switch from |
Please re-open. This need a fix. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
Uh oh!
There was an error while loading. Please reload this page.
Operating system
MacOS (ARM)
Compiler
Clang
Steps to reproduce the behavior
Add
devil
as a dependency tovcpkg.json
.Add the following to
CMakeLists.txt
:Include the file on
main.cpp
and call some function:Compile and run with CMake.
Failure logs
Additional context
Removing "devil" as a dependency from
vcpkg.json
solves the issue, but then can't compile on Windows.The text was updated successfully, but these errors were encountered: