-
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
libvpx: support for conan v2 #13799
libvpx: support for conan v2 #13799
Conversation
This comment has been minimized.
This comment has been minimized.
I thought I should document this somewhere... libvpx's configure seems to do strange things. Strange to me anyway. On Linux, libvpx's "configure" doesn't understand --bindir and --includedir, so I "fixed it" by adding:
and, it doesn't seem to substitute ${prefix} This results in:
So I add
It then builds and puts the output files into: It would be idea if that wasn't added, but if I add what is effectively the defaults:
Then I get this complaint from configure:
A simple So my end "solution" is:
I literally used "output_goes_here" for easy grepping. |
note that the MSVC conversion hasn't begun yet ... |
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.
Recipe is getting close, would like to start getting some reviews please. |
This comment has been minimized.
This comment has been minimized.
1ebde8a
to
31781bc
Compare
@prince-chrismc linter doesn't like the line: |
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'm just a community reviewer and it looks good to me but let's see what CCI maintainers have to say about it!
self.copy("vpx*.lib", src=libdir, dst="lib") | ||
|
||
autotools = Autotools(self) | ||
# NOT USED # autotools.configure() # FIXME can use this if we can remove --host and --build flags |
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.
Nice job by the way! I had a bit of struggle trying to make a conan v2 version of Ffmpeg and your work may be very helpful!
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.
There's a lot of work here, I did not see any blockers so i'd suggest leaving any smaller issue for the next PR :)
This comment has been minimized.
This comment has been minimized.
The linter check is required but blocked since its a private import |
If I understand correctly, this recipe could be use |
Do you mean, for building for Windows? I'm not sure, it would be nice to just use one build method... |
So, how to progress this? Duplicate the logic? |
create an issue in conan repo to expose |
AFAIK |
I raised the issue to the team but missed the last sync so I am not sure the status. I'll ping them again if there's no response |
This is correct. So we have to use their MS Build stuff for Windows. |
added to weekly meeting for the team to review :) |
85e96ca
Thanks @prince-chrismc for following up with this, have been busy elsewhere so I'm very happy to see progress! |
I totally feel you, super glad to get this over the finish |
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.
Tricky recipe, thank you for detailing all questions!
* libvpx: started work on conan v2 * Workaround for libvpx's unusual configure * Minor fix * Fixes for building on Windows * Fixes for package(), related to 'output_here' ./configure workaround * Clean-up imports * Use f'' strings * Try leaving CFLAGS/CXXFLAGS untouched * Can't use tools_legacy as an import alias anymore * Typo * Link to m and pthread, for Linux and FreeBSD * Fixup tools.microsoft.bash:path usage * Fix libvpx configure script, don't assume gcc can be used as the linker * Added notes on libvpx recipe debugging, not easy. * Enable recipe debugging * Call configure with our own custom command * Support shared builds * unix_path the configure script path * Upgrade away from get_env(), and fix for debug build on windows * Fix debug build on Linux * Fix for windows * Disable recipe debugging * Re-enable recipe debugging, lets see what it does * Disable recipe debugging, the build works * Upgrade for conan 1.54, use stdcpp_library from conan.tools.build import stdcpp_library * Minor cleanup * Apply suggestions from code review Co-authored-by: Martin Delille <martin@delille.org> * dont use private import Co-authored-by: Martin Delille <martin@delille.org> Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
# look for "output_goes_here" below for more in this thread. | ||
self.cpp.package.bindirs = [] | ||
self.cpp.package.includedirs = [] | ||
self.cpp.package.libdirs = [] # not strictly necessary, but lets do all as a group |
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.
this trick defeats fix_apple_shared_install_name()
and even the hook checking whether shared libs are relocatables.
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 might be able to use tc.update_configure_args({"--bindir":None})
instead (or something like that).
I won't be able to look for another ~12 hours, if you have the time please feel free to fix up and suggest more :)
Started work, got this weird message and I'm wondering if conan is injecting --bindir
Any advice please?