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

libwebm: add webm directory to include path #26029

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

niktischenko
Copy link
Contributor

Header files of libweb include others without 'webm' path prefix. So if I include any header or libwebm with INCLUDE_PATH to 'include' dir only, it can not resolve other libwebm headers.

In my case it fails to compile on macos

Summary

Changes to recipe: libwebm/1.0.0.31

Motivation

Compilation error on macos due to insufficient include path

Details

Headers of libweb include others without webm prefix, which is required with current cpp_info.includedirs set


Header files of libweb include others without 'webm' path prefix. So if I include any header or libwebm with INCLUDE_PATH to 'include' dir only, it can not resolve other libwebm headers.

In my case it fails to compile on macos
@CLAassistant
Copy link

CLAassistant commented Nov 25, 2024

CLA assistant check
All committers have signed the CLA.

@uilianries uilianries self-assigned this Nov 25, 2024
@uilianries
Copy link
Member

@niktischenko Hello and thank you for your bugfix! Could you please share your full build log with the reported error? It's important tracking not only changes, but their motivation too, so we can understand better for any future change.

@niktischenko
Copy link
Contributor Author

In file included from /<path_to_sources>/RecorderEncoders.cpp:1: In file included from /<path_to_sources>/RecorderEncoders.h:5: 
In file included from /<path_to_sources>/FileWriter.h:4: 
/<home_directory>/.conan2/p/libwe506f46b98403e/p/include/webm/mkvmuxer/mkvmuxer.h:18:10: fatal error: 'common/webmids.h' file not found 18 | #include "common/webmids.h"

In generated webm-debug-arm64-data.cmake:

set(libwebm_INCLUDE_DIRS_DEBUG "${libwebm_PACKAGE_FOLDER_DEBUG}/include")

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Indeed public headers are expecting the webm folder as well in the include path: https://chromium.googlesource.com/webm/libwebm/+/refs/tags/libwebm-1.0.0.31/mkvmuxer/mkvmuxer.h

Thank you for your hotfix!!

Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

@AbrilRBS AbrilRBS merged commit e18a038 into conan-io:master Nov 27, 2024
10 checks passed
memsharded pushed a commit to toge/conan-center-index that referenced this pull request Nov 29, 2024
OMGtechy pushed a commit to OMGtechy/conan-center-index that referenced this pull request Dec 31, 2024
jcar87 added a commit that referenced this pull request Jan 10, 2025
* re2c: add version 4.0

* update 4.0.1

* changing to CMake build

* dropping 1.3

* remove config.yml entry

* simdutf: add version 5.6.3 (#26039)

* SDL: fix Android shared library and expose HIDAPI setting (#26049)

* arrow: add version 18.1.0 (#26035)

* libwebm: add webm directory to include path (#26029)

* libpsl: add v0.21.5, bump deps, simplify patching (#22029)

* libpsl: add v0.21.2, bump deps, simplify patching

* libpsl: rmdir share

* libpsl: bump to v0.21.5

* cleanup

* Automaticlly injected in Conan 2

* Using  option. Using the old patch

* Update recipes/libpsl/all/conanfile.py

---------

Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es>
Co-authored-by: Francisco Ramirez de Anton <franchuti688@gmail.com>

* json_struct receipt (#25335)

* tree-sitter-sql: add version 0.3.7 (#26012)

* OpenColorIO: Fix validation & package_info (#24395)

* OpenColorIO: Fix validation & package_info

* Remove the validation preventing shared building
* Add required libraries to package_info

* update recipe

* fix linux transitive shared

* try to remove redundant requires

* fix previous versions

* removed versions from config.yml

* more fixes previous versions

---------

Co-authored-by: memsharded <james@conan.io>

* openh264: add version 2.5.0 (#26044)

Co-authored-by: PerseoGI <perseog@jfrog.com>
Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es>

* glib: Bump libmount to 2.39.2 to avoid conflicts with libsystemd (#23030)

Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es>
Co-authored-by: Abril Rincón Blanco <rubenrb@jfrog.com>

* sqlite3: add 3.47.1 (#26043)

* removing old 2.0.3

* update 4.0.2

* re2c updates

* fix test_package conanfile

---------

Co-authored-by: memsharded <james@conan.io>
Co-authored-by: Abril Rincón Blanco <git@rinconblanco.es>
Co-authored-by: Andrey Filipenkov <decapitator@ukr.net>
Co-authored-by: Bryce Mecum <petridish@gmail.com>
Co-authored-by: Nikolay Tischenko <niktischenko@gmail.com>
Co-authored-by: Martin Valgur <martin.valgur@gmail.com>
Co-authored-by: Francisco Ramirez de Anton <franchuti688@gmail.com>
Co-authored-by: Jørgen Lind <jorgen.lind@gmail.com>
Co-authored-by: Ingmar Rieger <git@irieger.net>
Co-authored-by: PerseoGI <perseog@jfrog.com>
Co-authored-by: Jordan Williams <jordan@jwillikers.com>
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
Co-authored-by: Abril Rincón Blanco <rubenrb@jfrog.com>
Co-authored-by: Marian Klymov <nekto1989@gmail.com>
Co-authored-by: Luis Caro Campos <3535649+jcar87@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants