diff options
| author | Francisco Facioni <francisco@remyrobotics.com> | 2021-03-29 19:17:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-29 10:17:50 -0700 |
| commit | 5eae23f558cdae22bd894c450dbb43d26e916467 (patch) | |
| tree | 405e3a1f63b26e795a8625fb7d5a089d181731e3 /ports/azure-kinect-sensor-sdk/fix-linux.patch | |
| parent | 7adc87efe1a4d04d60c271c6d3f63a1505e3bf9d (diff) | |
| download | vcpkg-5eae23f558cdae22bd894c450dbb43d26e916467.tar.gz vcpkg-5eae23f558cdae22bd894c450dbb43d26e916467.zip | |
[azure-kinect-sensor-sdk] not working on Linux (#14750)
* [azure-kinect-sensor-sdk] fix linux build and other issues
- linux: warnings stopping the build
- linux: set correct casing for dependecies
- linux: depthengine
- upgrade to 1.4.1
* Update ports/azure-kinect-sensor-sdk/CONTROL
* Update ports/azure-kinect-sensor-sdk/portfile.cmake
* Force to re-download archive, revert 9cd44db8e32939fa6f5fa4c2166d32d3ce63ff16
* update version record
* Update ports/azure-kinect-sensor-sdk/CONTROL
* Update versions/a-/azure-kinect-sensor-sdk.json
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'ports/azure-kinect-sensor-sdk/fix-linux.patch')
| -rw-r--r-- | ports/azure-kinect-sensor-sdk/fix-linux.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ports/azure-kinect-sensor-sdk/fix-linux.patch b/ports/azure-kinect-sensor-sdk/fix-linux.patch new file mode 100644 index 000000000..0dd8a15ae --- /dev/null +++ b/ports/azure-kinect-sensor-sdk/fix-linux.patch @@ -0,0 +1,39 @@ +diff --git a/cmake/k4aCompilerFlags.cmake b/cmake/k4aCompilerFlags.cmake +index e938c907..ccea0a8e 100644 +--- a/cmake/k4aCompilerFlags.cmake ++++ b/cmake/k4aCompilerFlags.cmake +@@ -34,22 +34,16 @@ if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") + list(APPEND CLANG_ALL_WARNINGS "-Wno-extra-semi-stmt") # Allow semi-colons to be used after #define's + list(APPEND CLANG_ALL_WARNINGS "-Wno-atomic-implicit-seq-cst") # Allow use of __sync_add_and_fetch() atomic + endif() +- set(CLANG_WARNINGS_AS_ERRORS "-Werror") + add_compile_options(${CLANG_ALL_WARNINGS}) +- add_compile_options(${CLANG_WARNINGS_AS_ERRORS}) + elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") + set(GNU_ALL_WARNINGS "-Wall" "-Wextra") + list(APPEND GNU_ALL_WARNINGS "-Wno-missing-field-initializers") # Allow c structs without all fields initialized +- set(GNU_WARNINGS_AS_ERRORS "-Werror") + add_compile_options(${GNU_ALL_WARNINGS}) +- add_compile_options(${GNU_WARNINGS_AS_ERRORS}) + elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC") + set(MSVC_ALL_WARNINGS "/W4" "/wd4200") #Note: allow zero length arrays +- set(MSVC_WARNINGS_AS_ERRORS "/WX") + string(REGEX REPLACE " /W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + string(REGEX REPLACE " /W[0-4]" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") + add_compile_options(${MSVC_ALL_WARNINGS}) +- add_compile_options(${MSVC_WARNINGS_AS_ERRORS}) + else() + message(FATAL_ERROR "Unknown C++ compiler: ${CMAKE_CXX_COMPILER_ID}") + endif() +diff --git a/src/logging/logging.cpp b/src/logging/logging.cpp +index 05264c5f..6cd41d32 100644 +--- a/src/logging/logging.cpp ++++ b/src/logging/logging.cpp +@@ -15,6 +15,7 @@ + #include <stdlib.h> + #include <stdio.h> + #include <string.h> ++#include <stdarg.h> + + // External dependencies + |
