renderdoc: add new recipe
PATCH v3 1/1 renderdoc: add new recipe
RenderDoc is a MIT licensed stand-alone multi-platform graphics debugger that allows easy frame by frame capture and detailed introspection of any applications using Vulkan, OpenGL, OpenGL ES, and others.
---
Changes since v2:
- Replace the multiple COMPATIBLE_MACHINE assignments with a single COMPATIBLE_HOST regexp
Changes since v1:
- Add COMPATIBLE_MACHINE assignemnts to avoid CI failures on unsupported architectures
- Add libc test because recipe is only buildable with glibc, tested against musl
- Minor whitespace fixes
...d-instead-of-cross-compiling-shim-bi.patch | 57 +++++++++++++++++++ ...eLists.txt-remove-flag-unsupported-b.patch | 48 ++++++++++++++++ .../renderdoc/renderdoc_1.4.bb | 37 ++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc/0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch create mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch create mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb
meta-oe/recipes-graphics/renderdoc/renderdoc/0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch new file +57 -0
@@ -0,0 +1,57 @@ +From 41a8c9b5ac13066770baee476ebf9828371f4dad Mon Sep 17 00:00:00 2001 +From: Adrian Ratiu <[email protected]> +Date: Tue, 24 Sep 2019 16:07:18 +0300 +Subject: [PATCH] renderdoc: use xxd instead of cross-compiling shim binary + +Renderdoc's attempt to cross compile an xxd replacement by directly +calling a host cross-compiler breaks under OE's recipe specific +sysroots protection because this is not a native recipe, so we just +use xxd-native instead. + +Upstream-Status: Inappropriate [embedded-specific] + +--- + renderdoc/CMakeLists.txt | 23 +---------------------- + 1 file changed, 1 insertion(+), 22 deletions(-) + +diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt +index 5cb7440a4..453a034ba 100644 +--- a/renderdoc/CMakeLists.txt ++++ b/renderdoc/CMakeLists.txt +@@ -370,26 +370,6 @@ set(data + set(data_objects) + + if(UNIX) +- # If we're cross-compiling, include-bin will get built for the target and we +- # then can't execute it. Instead, we force calling c++ (which we can safely +- # assume is present) directly to build the binary +- +- if(CMAKE_CROSSCOMPILING) +- set(HOST_NATIVE_CPP_COMPILER c++ CACHE STRING "Command to run to compile a .cpp into an executable. Default is just c++") +- +- add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin +- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +- COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} +- COMMAND ${HOST_NATIVE_CPP_COMPILER} 3rdparty/include-bin/main.cpp -o ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin +- DEPENDS 3rdparty/include-bin/main.cpp) +- set(INCLUDE_BIN_EXE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin") +- set(INCLUDE_BIN_DEP "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin") +- else() +- add_executable(include-bin 3rdparty/include-bin/main.cpp) +- set(INCLUDE_BIN_EXE $<TARGET_FILE:include-bin>) +- set(INCLUDE_BIN_DEP include-bin) +- endif() +- + foreach(res ${data}) + set(in ${res}) + set(working_dir ${CMAKE_CURRENT_SOURCE_DIR}) +@@ -399,8 +379,7 @@ if(UNIX) + add_custom_command(OUTPUT ${out_src} + WORKING_DIRECTORY ${working_dir} + COMMAND ${CMAKE_COMMAND} -E make_directory ${out_src_dir} +- COMMAND ${INCLUDE_BIN_EXE} ${in} ${out_src} +- DEPENDS ${INCLUDE_BIN_DEP} ++ COMMAND xxd -i ${in} ${out_src} + DEPENDS ${res}) + + list(APPEND data_objects ${out_src})
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +48 -0
48 lines not on this page · raw message
meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +37 -0
@@ -0,0 +1,37 @@ +SUMMARY = "RenderDoc recipe providing renderdoccmd" +DESCRIPTION = "RenderDoc is a frame-capture based graphics debugger" +HOMEPAGE = "https://github.com/baldurk/renderdoc" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9753b1b4fba3261c27d1ce5c1acef667" + +SRCREV = "214d85228538e71cc63a0d7fa11dd75b1d56cc81" +SRC_URI = "git://github.com/baldurk/${BPN}.git;protocol=http;branch=v1.x \ + file://0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch \ + file://0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch \ +" +S = "${WORKDIR}/git" + +DEPENDS += "virtual/libx11 virtual/libgl libxcb xcb-util-keysyms vim-native" + +RDEPENDS_${PN} = "libxcb xcb-util-keysyms" + +inherit cmake python3native + +python __anonymous () { + # only works on glibc systems + if d.getVar('TCLIBC') != "glibc": + raise bb.parse.SkipRecipe("incompatible with %s C library" % d.getVar('TCLIBC')) +} + +COMPATIBLE_HOST = "(x86_64|i.86|arm|aarch64).*-linux" + +EXTRA_OECMAKE += "\ + -DENABLE_QRENDERDOC=OFF \ + -DENABLE_PYRENDERDOC=OFF \ + -DENABLE_RENDERDOCCMD=ON \ +" + +TARGET_CFLAGS += "-Wno-error=deprecated-copy" + +FILES_${PN} += "${libdir}" +FILES_${PN}-dev = "${includedir}"
Signature · 1 line
2.23.0
Quoted 98 lines · Adrian Ratiu
RenderDoc is a MIT licensed stand-alone multi-platform graphics debugger that allows easy frame by frame capture and detailed introspection of any applications using Vulkan, OpenGL, OpenGL ES, and others.
Signed-off-by Adrian Ratiu <[email protected]>---
Changes since v2:
- Replace the multipleCOMPATIBLE_MACHINEassignments with a singleCOMPATIBLE_HOSTregexpChanges since v1:
- AddCOMPATIBLE_MACHINEassignemnts to avoid CI failures on unsupported architectures
- Add libc test because recipe is only buildable with glibc, tested against musl
- Minor whitespace fixes...d-instead-of-cross-compiling-shim-bi.patch | 57 +++++++++++++++++++ ...eLists.txt-remove-flag-unsupported-b.patch | 48 ++++++++++++++++ .../renderdoc/renderdoc_1.4.bb | 37 ++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc/0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch create mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch create mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bbmeta-oe/recipes-graphics/renderdoc/renderdoc/0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch new file +57
-0@@ -0,0 +1,57 @@ +From 41a8c9b5ac13066770baee476ebf9828371f4dad Mon Sep 17 00:00:00 2001 +From: Adrian Ratiu <[email protected]> +Date: Tue, 24 Sep 2019 16:07:18 +0300 +Subject: [PATCH] renderdoc: use xxd instead of cross-compiling shim binary + +Renderdoc's attempt to cross compile an xxd replacement by directly +calling a host cross-compiler breaks under OE's recipe specific +sysroots protection because this is not a native recipe, so we just +use xxd-native instead. + +Upstream-Status: Inappropriate [embedded-specific] + +--- + renderdoc/CMakeLists.txt | 23 +---------------------- + 1 file changed, 1 insertion(+), 22 deletions(-) + +diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt +index 5cb7440a4..453a034ba 100644 +--- a/renderdoc/CMakeLists.txt ++++ b/renderdoc/CMakeLists.txt +@@ -370,26 +370,6 @@ set(data + set(data_objects) + + if(UNIX) +- # If we're cross-compiling, include-bin will get built for the target and we +- # then can't execute it. Instead, we force calling c++ (which we can safely +- # assume is present) directly to build the binary +- +- if(CMAKE_CROSSCOMPILING) +- set(HOST_NATIVE_CPP_COMPILER c++ CACHE STRING "Command to run to compile a .cpp into an executable. Default is just c++") +- +- add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin +- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +- COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} +- COMMAND ${HOST_NATIVE_CPP_COMPILER} 3rdparty/include-bin/main.cpp -o ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin +- DEPENDS 3rdparty/include-bin/main.cpp) +- set(INCLUDE_BIN_EXE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin") +- set(INCLUDE_BIN_DEP "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin") +- else() +- add_executable(include-bin 3rdparty/include-bin/main.cpp) +- set(INCLUDE_BIN_EXE $<TARGET_FILE:include-bin>) +- set(INCLUDE_BIN_DEP include-bin) +- endif() +- + foreach(res ${data}) + set(in ${res}) + set(working_dir ${CMAKE_CURRENT_SOURCE_DIR}) +@@ -399,8 +379,7 @@ if(UNIX) + add_custom_command(OUTPUT ${out_src} + WORKING_DIRECTORY ${working_dir} + COMMAND ${CMAKE_COMMAND} -E make_directory ${out_src_dir} +- COMMAND ${INCLUDE_BIN_EXE} ${in} ${out_src} +- DEPENDS ${INCLUDE_BIN_DEP} ++ COMMAND xxd -i ${in} ${out_src} + DEPENDS ${res}) + + list(APPEND data_objects ${out_src})meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +1
-0@@ -0,0 +1,48 @@ +From 40511a6f4dc6311c8cf7f2954d1202ede55881ff Mon Sep 17 00:00:00 2001
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch line 11
Quoted 10 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +10
-0+From: Adrian Ratiu <[email protected]> +Date: Wed, 25 Sep 2019 19:31:14 +0300 +Subject: [PATCH] (q)renderdoc/CMakeLists.txt: remove flag unsupported by GCC + +-Wno-unknown-warning is not supported by GCC, only by Clang so we +remove it because newer GCC versions like 9.2.0 will complain, older +versions would just ignore it. + +Upstream-Status: Pending [https://github.com/baldurk/renderdoc/pull/1530] +
gcc9 does support -Wno-unknown-warning perhaps you want -Wno-error=unknown-warning
Quoted 68 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +37
-0+Signed-off-by: Adrian Ratiu <[email protected]> + +--- + qrenderdoc/CMakeLists.txt | 2 +- + renderdoc/CMakeLists.txt | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/qrenderdoc/CMakeLists.txt b/qrenderdoc/CMakeLists.txt +index 9fd65b2d3..d52dd274e 100644 +--- a/qrenderdoc/CMakeLists.txt ++++ b/qrenderdoc/CMakeLists.txt +@@ -149,7 +149,7 @@ file(WRITE + if(CMAKE_COMPILER_IS_GNUCXX) + file(APPEND + ${CMAKE_BINARY_DIR}/qrenderdoc/qrenderdoc_cmake.pri +- "QMAKE_CXXFLAGS+=-Wno-unknown-warning -Wno-implicit-fallthrough -Wno-cast-function-type -Wno-stringop-truncation\n") ++ "QMAKE_CXXFLAGS+=-Wno-implicit-fallthrough -Wno-cast-function-type -Wno-stringop-truncation\n") + endif() + + # propagate build version info. Lots of escaping needed here to pass ""s into the define value +diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt +index 453a034ba..abe7e1302 100644 +--- a/renderdoc/CMakeLists.txt ++++ b/renderdoc/CMakeLists.txt +@@ -320,10 +320,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR APPLE) + + if(CMAKE_COMPILER_IS_GNUCXX) + set_property(SOURCE 3rdparty/jpeg-compressor/jpgd.cpp +- APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unknown-warning -Wno-implicit-fallthrough") ++ APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-implicit-fallthrough") + + set_property(SOURCE strings/utf8printf.cpp +- APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unknown-warning -Wno-format-truncation") ++ APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-format-truncation") + endif() + + # Need to add -Wno-unknown-warning-option since only newer clang versions havemeta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +25
-0@@ -0,0 +1,37 @@ +SUMMARY = "RenderDoc recipe providing renderdoccmd" +DESCRIPTION = "RenderDoc is a frame-capture based graphics debugger" +HOMEPAGE = "https://github.com/baldurk/renderdoc" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9753b1b4fba3261c27d1ce5c1acef667" + +SRCREV = "214d85228538e71cc63a0d7fa11dd75b1d56cc81" +SRC_URI = "git://github.com/baldurk/${BPN}.git;protocol=http;branch=v1.x \ + file://0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch \ + file://0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch \ +" +S = "${WORKDIR}/git" + +DEPENDS += "virtual/libx11 virtual/libgl libxcb xcb-util-keysyms vim-native" + +RDEPENDS_${PN} = "libxcb xcb-util-keysyms" + +inherit cmake python3native + +python __anonymous () { + # only works on glibc systems + if d.getVar('TCLIBC') != "glibc": + raise bb.parse.SkipRecipe("incompatible with %s C library" % d.getVar('TCLIBC')) +} +
meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb line 35
Quoted 10 lines
meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +10
-0+COMPATIBLE_HOST = "(x86_64|i.86|arm|aarch64).*-linux" + +EXTRA_OECMAKE += "\ + -DENABLE_QRENDERDOC=OFF \ + -DENABLE_PYRENDERDOC=OFF \ + -DENABLE_RENDERDOCCMD=ON \ +" + +TARGET_CFLAGS += "-Wno-error=deprecated-copy" +
this option is GCC specific mark it
TARGET_CFLAGS_append_toolchain-gcc
Quoted 5 lines
meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +2
-1+FILES_${PN} += "${libdir}" +FILES_${PN}-dev = "${includedir}" --2.23.0
Quoted 20 lines · Khem Raj
On Fri, Sep 27, 2019 at 9:56 AM Adrian Ratiu <[email protected]> wrote:
...Quoted 4 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +1
-0@@ -0,0 +1,48 @@ +From 40511a6f4dc6311c8cf7f2954d1202ede55881ff Mon Sep 17 00:00:00 2001meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch line 11
Quoted 10 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +10
-0+From: Adrian Ratiu <[email protected]> +Date: Wed, 25 Sep 2019 19:31:14 +0300 +Subject: [PATCH] (q)renderdoc/CMakeLists.txt: remove flag unsupported by GCC + +-Wno-unknown-warning is not supported by GCC, only by Clang so we +remove it because newer GCC versions like 9.2.0 will complain, older +versions would just ignore it. + +Upstream-Status: Pending [https://github.com/baldurk/renderdoc/pull/1530] +gcc9 does support -Wno-unknown-warning perhaps you want -Wno-error=unknown-warning
...
Quoted 6 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch line 13
Quoted 2 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +2
-0+TARGET_CFLAGS += "-Wno-error=deprecated-copy" +this option is GCC specific mark it
TARGET_CFLAGS_append_toolchain-gcc
...
Using -Wno-error always could solve both problems, and would also avoid similar problems in the future.
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 28 lines · Adrian Bunk
Quoted 20 lines · Khem Raj
On Fri, Sep 27, 2019 at 9:56 AM Adrian Ratiu <[email protected]> wrote:
...Quoted 4 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +1
-0@@ -0,0 +1,48 @@ +From 40511a6f4dc6311c8cf7f2954d1202ede55881ff Mon Sep 17 00:00:00 2001meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch line 11
Quoted 10 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +10
-0+From: Adrian Ratiu <[email protected]> +Date: Wed, 25 Sep 2019 19:31:14 +0300 +Subject: [PATCH] (q)renderdoc/CMakeLists.txt: remove flag unsupported by GCC + +-Wno-unknown-warning is not supported by GCC, only by Clang so we +remove it because newer GCC versions like 9.2.0 will complain, older +versions would just ignore it. + +Upstream-Status: Pending [https://github.com/baldurk/renderdoc/pull/1530] +gcc9 does support -Wno-unknown-warning perhaps you want -Wno-error=unknown-warning
...Quoted 6 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch line 13
Quoted 2 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +2
-0+TARGET_CFLAGS += "-Wno-error=deprecated-copy" +this option is GCC specific mark it
TARGET_CFLAGS_append_toolchain-gcc
...
Quoted 2 lines
Using -Wno-error always could solve both problems, and would also avoid similar problems in the future.
That's a good idea, however I can't pass directly -Wno-error in the recipe because of how the top-level CMakelists.txt is written: it always *appends* -Werror to the flags, so it overwrites our -Wno-error.
A better solution which has the same effect is to use -DCMAKE_BUILD_TYPE=Release which prevents -Werror being appended at all in the top-level CMakelists.txt (there is no other effect than this!)
Thanks! Will send an updatet v4 soon.
Quoted 10 lines
cu
AdrianSignature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed
This should have x11 in REQUIRED_DISTRO_FEATURES to fix:
ERROR: Nothing PROVIDES 'libxcb' (but meta-oe/meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb DEPENDS on or otherwise requires it)
libxcb was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES)
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'renderdoc', 'libxcb']
Quoted 63 lines · Adrian Ratiu
Quoted 2 lines · Adrian Bunk
Quoted 1 line · Khem Raj
On Fri, Sep 27, 2019 at 9:56 AM Adrian Ratiu <
Quoted 3 lines · [email protected]> wrote:
Quoted 3 lines
...
Quoted 2 lines
---
/dev/null
+++
b/meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patchQuoted 2 lines
Quoted 2 lines
Review line 1
Quoted 2 lines
(quoted diff) +1
-0@@ -0,0 +1,48 @@ +From 40511a6f4dc6311c8cf7f2954d1202ede55881ff Mon Sep 17 00:00:002001
Quoted 3 lines
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +3
-0+From: Adrian Ratiu <[email protected]> +Date: Wed, 25 Sep 2019 19:31:14 +0300 +Subject: [PATCH] (q)renderdoc/CMakeLists.txt: remove flagunsupported by GCC
Quoted 6 lines
Quoted 6 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch
Quoted 6 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +6
-0+ +-Wno-unknown-warning is not supported by GCC, only by Clang so we +remove it because newer GCC versions like 9.2.0 will complain, older +versions would just ignore it. + +Upstream-Status: Pending [https://github.com/baldurk/renderdoc/pull/1530]
Quoted 12 lines
Quoted 11 lines
Review line 11
Quoted 1 line
(quoted diff) +1
-0+gcc9 does support -Wno-unknown-warning perhaps you want -Wno-error=unknown-warning
...meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb line 35
Quoted 2 lines
meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +2
-0+TARGET_CFLAGS += "-Wno-error=deprecated-copy" +this option is GCC specific mark it
TARGET_CFLAGS_append_toolchain-gcc
...Quoted 2 lines
Using -Wno-error always could solve both problems, and would also avoid similar problems in the future.
That's a good idea, however I can't pass directly -Wno-error in the recipe because of how the top-level CMakelists.txt is written: it always *appends* -Werror to the flags, so it overwrites our -Wno-error.
A better solution which has the same effect is to use -DCMAKE_BUILD_TYPE=Release which prevents -Werror being appended at all in the top-level CMakelists.txt (there is no other effect than this!)
Thanks! Will send an updatet v4 soon.
Quoted 10 lines
cu
Adrian--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi
Quoted 11 lines · Martin Jansa
This should have x11 in
REQUIRED_DISTRO_FEATURESto fix:ERROR: Nothing PROVIDES 'libxcb' (but meta-oe/meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb DEPENDS on or otherwise requires it)
libxcb was skipped: missing required distro feature 'x11' (not inDISTRO_FEATURES)
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'renderdoc', 'libxcb']
v4 of this patch was merged into master. I will send a new patch to add the change you suggest. Thank you!
Quoted 67 lines
Quoted 63 lines · Adrian Ratiu
Quoted 2 lines · Adrian Bunk
Quoted 1 line · Khem Raj
On Fri, Sep 27, 2019 at 9:56 AM Adrian Ratiu <
Quoted 3 lines · [email protected]> wrote:
Quoted 3 lines
...
Quoted 2 lines
---
/dev/null
+++
b/meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patchQuoted 2 lines
Quoted 2 lines
Review line 1
Quoted 2 lines
(quoted diff) +1
-0@@ -0,0 +1,48 @@ +From 40511a6f4dc6311c8cf7f2954d1202ede55881ff Mon Sep 17 00:00:002001
Quoted 3 lines
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +3
-0+From: Adrian Ratiu <[email protected]> +Date: Wed, 25 Sep 2019 19:31:14 +0300 +Subject: [PATCH] (q)renderdoc/CMakeLists.txt: remove flagunsupported by GCC
Quoted 6 lines
Quoted 6 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch
Quoted 6 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +6
-0+ +-Wno-unknown-warning is not supported by GCC, only by Clang so we +remove it because newer GCC versions like 9.2.0 will complain, older +versions would just ignore it. + +Upstream-Status: Pending [https://github.com/baldurk/renderdoc/pull/1530]
Quoted 12 lines
Quoted 11 lines
Review line 11
Quoted 1 line
(quoted diff) +1
-0+gcc9 does support -Wno-unknown-warning perhaps you want -Wno-error=unknown-warning
...meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb line 35
Quoted 2 lines
meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +2
-0+TARGET_CFLAGS += "-Wno-error=deprecated-copy" +this option is GCC specific mark it
TARGET_CFLAGS_append_toolchain-gcc
...Quoted 2 lines
Using -Wno-error always could solve both problems, and would also avoid similar problems in the future.
That's a good idea, however I can't pass directly -Wno-error in the recipe because of how the top-level CMakelists.txt is written: it always *appends* -Werror to the flags, so it overwrites our -Wno-error.
A better solution which has the same effect is to use -DCMAKE_BUILD_TYPE=Release which prevents -Werror being appended at all in the top-level CMakelists.txt (there is no other effect than this!)
Thanks! Will send an updatet v4 soon.
Quoted 10 lines
cu
Adrian--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Thanks Adrian
Quoted 90 lines · Adrian Ratiu
Hi
Quoted 4 lines · Martin Jansa
This should have x11 in
REQUIRED_DISTRO_FEATURESto fix:ERROR: Nothing PROVIDES 'libxcb' (but meta-oe/meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb DEPENDS on
or
Quoted 7 lines
otherwise requires it)
libxcb was skipped: missing required distro feature 'x11' (not inDISTRO_FEATURES)
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'renderdoc', 'libxcb']v4 of this patch was merged into master. I will send a new patch to add the change you suggest. Thank you!
Quoted 13 lines
On Sun, Sep 29, 2019 at 7:46 PM Adrian Ratiu <[email protected]
Quoted 8 lines · wrote:
Quoted 2 lines · Adrian Bunk
Quoted 1 line · Khem Raj
On Fri, Sep 27, 2019 at 9:56 AM Adrian Ratiu <
Quoted 3 lines · [email protected]> wrote:
Quoted 3 lines
...
Quoted 2 lines
---
/dev/null
+++
b/meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patchQuoted 10 lines
Quoted 10 lines
Quoted 2 lines
Quoted 2 lines
Review line 1
Quoted 2 lines
(quoted diff) +1
-0@@ -0,0 +1,48 @@ +From 40511a6f4dc6311c8cf7f2954d1202ede55881ff Mon Sep 17 00:00:002001
Quoted 3 lines
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +3
-0+From: Adrian Ratiu <[email protected]> +Date: Wed, 25 Sep 2019 19:31:14 +0300 +Subject: [PATCH] (q)renderdoc/CMakeLists.txt: remove flagunsupported by GCC
Quoted 3 lines
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +3
-0+ +-Wno-unknown-warning is not supported by GCC, only by Clang so we +remove it because newer GCC versions like 9.2.0 will complain,older
Quoted 45 lines
Quoted 45 lines
Quoted 3 lines
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch
Quoted 3 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +3
-0+versions would just ignore it. + +Upstream-Status: Pending [https://github.com/baldurk/renderdoc/pull/1530]
Quoted 12 lines
Quoted 11 lines
Review line 11
Quoted 1 line
(quoted diff) +1
-0+gcc9 does support -Wno-unknown-warning perhaps you want -Wno-error=unknown-warning
...meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb line 35
Quoted 2 lines
meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +2
-0+TARGET_CFLAGS += "-Wno-error=deprecated-copy" +this option is GCC specific mark it
TARGET_CFLAGS_append_toolchain-gcc
...Quoted 2 lines
Using -Wno-error always could solve both problems, and would also avoid similar problems in the future.
That's a good idea, however I can't pass directly -Wno-error in the recipe because of how the top-level CMakelists.txt is written: it always *appends* -Werror to the flags, so it overwrites our -Wno-error.
A better solution which has the same effect is to use -DCMAKE_BUILD_TYPE=Release which prevents -Werror being appended at all in the top-level CMakelists.txt (there is no other effect than this!)
Thanks! Will send an updatet v4 soon.
Quoted 10 lines
cu
Adrian--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 104 lines · Khem Raj
Quoted 103 lines · Adrian Ratiu
RenderDoc is a MIT licensed stand-alone multi-platform graphics debugger that allows easy frame by frame capture and detailed introspection of any applications using Vulkan, OpenGL, OpenGL ES, and others.
Signed-off-by Adrian Ratiu <[email protected]>---
Changes since v2:
- Replace the multipleCOMPATIBLE_MACHINEassignments with a singleCOMPATIBLE_HOSTregexpChanges since v1:
- AddCOMPATIBLE_MACHINEassignemnts to avoid CI failures on unsupported architectures
- Add libc test because recipe is only buildable with glibc, tested against musl
- Minor whitespace fixes...d-instead-of-cross-compiling-shim-bi.patch | 57 +++++++++++++++++++ ...eLists.txt-remove-flag-unsupported-b.patch | 48 ++++++++++++++++ .../renderdoc/renderdoc_1.4.bb | 37 ++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc/0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch create mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch create mode 100644 meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bbmeta-oe/recipes-graphics/renderdoc/renderdoc/0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch new file +57
-0@@ -0,0 +1,57 @@ +From 41a8c9b5ac13066770baee476ebf9828371f4dad Mon Sep 17 00:00:00 2001 +From: Adrian Ratiu <[email protected]> +Date: Tue, 24 Sep 2019 16:07:18 +0300 +Subject: [PATCH] renderdoc: use xxd instead of cross-compiling shim binary + +Renderdoc's attempt to cross compile an xxd replacement by directly +calling a host cross-compiler breaks under OE's recipe specific +sysroots protection because this is not a native recipe, so we just +use xxd-native instead. + +Upstream-Status: Inappropriate [embedded-specific] + +--- + renderdoc/CMakeLists.txt | 23 +---------------------- + 1 file changed, 1 insertion(+), 22 deletions(-) + +diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt +index 5cb7440a4..453a034ba 100644 +--- a/renderdoc/CMakeLists.txt ++++ b/renderdoc/CMakeLists.txt +@@ -370,26 +370,6 @@ set(data + set(data_objects) + + if(UNIX) +- # If we're cross-compiling, include-bin will get built for the target and we +- # then can't execute it. Instead, we force calling c++ (which we can safely +- # assume is present) directly to build the binary +- +- if(CMAKE_CROSSCOMPILING) +- set(HOST_NATIVE_CPP_COMPILER c++ CACHE STRING "Command to run to compile a .cpp into an executable. Default is just c++") +- +- add_custom_command(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin +- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} +- COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} +- COMMAND ${HOST_NATIVE_CPP_COMPILER} 3rdparty/include-bin/main.cpp -o ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin +- DEPENDS 3rdparty/include-bin/main.cpp) +- set(INCLUDE_BIN_EXE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin") +- set(INCLUDE_BIN_DEP "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/include-bin") +- else() +- add_executable(include-bin 3rdparty/include-bin/main.cpp) +- set(INCLUDE_BIN_EXE $<TARGET_FILE:include-bin>) +- set(INCLUDE_BIN_DEP include-bin) +- endif() +- + foreach(res ${data}) + set(in ${res}) + set(working_dir ${CMAKE_CURRENT_SOURCE_DIR}) +@@ -399,8 +379,7 @@ if(UNIX) + add_custom_command(OUTPUT ${out_src} + WORKING_DIRECTORY ${working_dir} + COMMAND ${CMAKE_COMMAND} -E make_directory ${out_src_dir} +- COMMAND ${INCLUDE_BIN_EXE} ${in} ${out_src} +- DEPENDS ${INCLUDE_BIN_DEP} ++ COMMAND xxd -i ${in} ${out_src} + DEPENDS ${res}) + + list(APPEND data_objects ${out_src})meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +6
-0@@ -0,0 +1,48 @@ +From 40511a6f4dc6311c8cf7f2954d1202ede55881ff Mon Sep 17 00:00:00 2001 +From: Adrian Ratiu <[email protected]> +Date: Wed, 25 Sep 2019 19:31:14 +0300 +Subject: [PATCH] (q)renderdoc/CMakeLists.txt: remove flag unsupported by GCC + +-Wno-unknown-warning is not supported by GCC, only by Clang so we
Quoted 8 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch line 11
Quoted 5 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +5
-0+remove it because newer GCC versions like 9.2.0 will complain, older +versions would just ignore it. + +Upstream-Status: Pending [https://github.com/baldurk/renderdoc/pull/1530] +gcc9 does support -Wno-unknown-warning perhaps you want -Wno-error=unknown-warning
Thanks! Indeed -Wno-unknown-warning is supported (-Wunknown-warning is not) and the negative form is only used for not complaining when the unknown option is passed. Will drop the patch and github PR.
Quoted 88 lines
Quoted 69 lines
meta-oe/recipes-graphics/renderdoc/renderdoc/0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch new file +37
-0+Signed-off-by: Adrian Ratiu <[email protected]> + +--- + qrenderdoc/CMakeLists.txt | 2 +- + renderdoc/CMakeLists.txt | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/qrenderdoc/CMakeLists.txt b/qrenderdoc/CMakeLists.txt +index 9fd65b2d3..d52dd274e 100644 +--- a/qrenderdoc/CMakeLists.txt ++++ b/qrenderdoc/CMakeLists.txt +@@ -149,7 +149,7 @@ file(WRITE + if(CMAKE_COMPILER_IS_GNUCXX) + file(APPEND + ${CMAKE_BINARY_DIR}/qrenderdoc/qrenderdoc_cmake.pri +- "QMAKE_CXXFLAGS+=-Wno-unknown-warning -Wno-implicit-fallthrough -Wno-cast-function-type -Wno-stringop-truncation\n") ++ "QMAKE_CXXFLAGS+=-Wno-implicit-fallthrough -Wno-cast-function-type -Wno-stringop-truncation\n") + endif() + + # propagate build version info. Lots of escaping needed here to pass ""s into the define value +diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt +index 453a034ba..abe7e1302 100644 +--- a/renderdoc/CMakeLists.txt ++++ b/renderdoc/CMakeLists.txt +@@ -320,10 +320,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR APPLE) + + if(CMAKE_COMPILER_IS_GNUCXX) + set_property(SOURCE 3rdparty/jpeg-compressor/jpgd.cpp +- APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unknown-warning -Wno-implicit-fallthrough") ++ APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-implicit-fallthrough") + + set_property(SOURCE strings/utf8printf.cpp +- APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unknown-warning -Wno-format-truncation") ++ APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-format-truncation") + endif() + + # Need to add -Wno-unknown-warning-option since only newer clang versions havemeta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +25
-0@@ -0,0 +1,37 @@ +SUMMARY = "RenderDoc recipe providing renderdoccmd" +DESCRIPTION = "RenderDoc is a frame-capture based graphics debugger" +HOMEPAGE = "https://github.com/baldurk/renderdoc" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9753b1b4fba3261c27d1ce5c1acef667" + +SRCREV = "214d85228538e71cc63a0d7fa11dd75b1d56cc81" +SRC_URI = "git://github.com/baldurk/${BPN}.git;protocol=http;branch=v1.x \ + file://0001-renderdoc-use-xxd-instead-of-cross-compiling-shim-bi.patch \ + file://0002-q-renderdoc-CMakeLists.txt-remove-flag-unsupported-b.patch \ +" +S = "${WORKDIR}/git" + +DEPENDS += "virtual/libx11 virtual/libgl libxcb xcb-util-keysyms vim-native" + +RDEPENDS_${PN} = "libxcb xcb-util-keysyms" + +inherit cmake python3native + +python __anonymous () { + # only works on glibc systems + if d.getVar('TCLIBC') != "glibc": + raise bb.parse.SkipRecipe("incompatible with %s C library" % d.getVar('TCLIBC')) +} +meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb line 35
Quoted 10 lines
meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +10
-0+COMPATIBLE_HOST = "(x86_64|i.86|arm|aarch64).*-linux" + +EXTRA_OECMAKE += "\ + -DENABLE_QRENDERDOC=OFF \ + -DENABLE_PYRENDERDOC=OFF \ + -DENABLE_RENDERDOCCMD=ON \ +" + +TARGET_CFLAGS += "-Wno-error=deprecated-copy" +this option is GCC specific mark it
TARGET_CFLAGS_append_toolchain-gccQuoted 5 lines
meta-oe/recipes-graphics/renderdoc/renderdoc_1.4.bb new file +2
-1+FILES_${PN} += "${libdir}" +FILES_${PN}-dev = "${includedir}" --2.23.0