-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
wildmidi: add new recipe, version 0.4.5 #15345
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good so far!
This comment has been minimized.
This comment has been minimized.
On Windows, Conan Center's CI is building with the Visual Studio generator, which is a multi-configuration generator. Multiconfiguration generators do not set or use
It probably adds the
Try switching the library name to
I suspect that these will work if you rename the library, but the
|
This comment has been minimized.
This comment has been minimized.
ee079f2
to
e1d0f99
Compare
Thanks! All issues are resolved now :)
I not a CMake expert, I don't really know what I'm doing, please check if it's ok :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just need to tweak the CMake target names and config filename to match those provided by the upstream project.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
So with latest changes, I have build errors:
Test package can't find include file.
I checked that dir and it's right there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Thanks for the contribution!
d2930da
to
d79bc91
Compare
This comment has been minimized.
This comment has been minimized.
Thanks for help! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just a small comment.
Please do not force push 🙏 GitHub forces us to restart the review which is not fun! |
|
||
def generate(self): | ||
tc = CMakeToolchain(self) | ||
if self.settings.os == "Windows": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jcar87 the behavior of CMakeToolchain is a little wonky here if you can take a look please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is more a problem with the project than CMakeToolchain. The project seems to incorrectly handle multi-configuration generators, like the Visual Studio generator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely agreed but I am curious if this is the right solution of perhaps patches might be more robust... maybe fixing upstream could be an option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the right thing to do is to add a proper support for multi-config. I will try to make a change in upstream and come back with new PR when new version comes out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I definitely think upstream could be better but I also think this is an edge case the new Conan generators weren't tested with so it would be nice to at least have test code to make sure this is intended
So I want to be clear, this PR is good :)
cmake.build() | ||
|
||
def package(self): | ||
copy(self, pattern="docs/license/LGPLv3.txt", dst=os.path.join( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs says there's also a GPL licenseny reason why is that not copied?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm I found its only the demo app
Conan v1 pipeline ✔️All green in build 19 (
Conan v2 pipeline (informative, not required for merge) ✔️
All green in build 20 (
|
Specify library name and version: wildmidi/0.4.5
WildMIDI is a simple software midi player which has a core softsynth library that can be used with other applications.
Unlike other MIDI libraries here, it supports Redbook's extended MIDI files (XMI) that are used by many old games.
There are few issues that I'd like to resolve, I don't know where else I can ask for help.
[HOOK - conan-center.py] post_package_info(): ERROR: [LIBRARY DOES NOT EXIST (KB-H054)] Component wildmidi::wildmidi library 'libwildmidi' is listed in the recipe, but not found installed at self.cpp_info.libdirs. Make sure you compiled the library correctly. If so, then the library name should probably be fixed. Otherwise, then the component should be removed. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H054)
Even though the library is in correct location, test_package and my app works well. Is it ok?
self.cpp_info.set_property("cmake_file_name", "wildmidi")
self.cpp_info.set_property("cmake_target_name", "libwildmidi")
How to debug this issue?