Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e8bf766
[vcpkg baseline][pangolin] Add features, fix dependency pybind11
Sep 6, 2021
141bf89
Fix dependency name realsense2
Sep 6, 2021
a1e66b0
Remove default-feature gles
Sep 6, 2021
71f1524
Re-generated patch, add MAYBE_UNUSED_VARIABLES, fix build with core
Sep 6, 2021
4d5cfea
version
Sep 6, 2021
b16cd9d
Fix desc, add more MAYBE_UNUSED_VARIABLES
Sep 6, 2021
e9b6ede
version
Sep 6, 2021
b797cdb
more MAYBE_UNUSED_VARIABLES
Sep 6, 2021
a8ea05f
version
Sep 6, 2021
a4eccd0
Remove some CMAKE_DISABLE_FIND_PACKAGE_*
Sep 6, 2021
9ae0a1e
version
Sep 6, 2021
7c447c0
Remove more CMAKE_DISABLE_FIND_* since they are disabled
Sep 6, 2021
d74bd68
Remove BUILD_FOR_GLES_2
Sep 6, 2021
6423938
version
Sep 6, 2021
178bd12
Restore BUILD_FOR_GLES_2
Sep 6, 2021
049e43a
version
Sep 6, 2021
4feb739
Fix more dependencies
Sep 6, 2021
6f8cde6
[libuvc]Fix build type, fix usage
Sep 6, 2021
04c47a2
version
Sep 6, 2021
e3d3332
Re-make patch
Sep 6, 2021
e037fd3
version
Sep 6, 2021
797d92a
Use libjpeg macros instead of target name to avoid use `find_dependency`
Sep 6, 2021
a143627
version
Sep 6, 2021
9022acc
Fix usage on non-Windows
Sep 7, 2021
a6b4720
version
Sep 7, 2021
2e4f459
commit suggestions
Sep 7, 2021
f85c387
version
Sep 7, 2021
b1662e7
Apply suggestion
Sep 8, 2021
fee2692
version
Sep 8, 2021
41b3bf8
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal Sep 8, 2021
64b8900
Re-fix JPEG
Sep 9, 2021
8aa7e25
version
Sep 9, 2021
15a1b0d
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/…
Sep 9, 2021
2f301b7
typo
Sep 9, 2021
31c70e3
format
Sep 9, 2021
35c3116
version
Sep 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions ports/pangolin/add-definition.patch

This file was deleted.

64 changes: 64 additions & 0 deletions ports/pangolin/fix-dependencies.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
diff --git a/include/pangolin/gl/colour.h b/include/pangolin/gl/colour.h
index 92bedf4..8c3e542 100644
--- a/include/pangolin/gl/colour.h
+++ b/include/pangolin/gl/colour.h
@@ -28,6 +28,7 @@
#pragma once

#include <cmath>
+#include <limits>

#include <stdexcept>

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ddeb144..0b0708e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -299,7 +299,9 @@ if(BUILD_PANGOLIN_PYTHON AND BUILD_PANGOLIN_GUI AND BUILD_PANGOLIN_VARS AND NOT

if(pybind11_FOUND)
set(HAVE_PYTHON 1)
-
+ if (UNIX)
+ set(PYTHON_LIBRARY ${PYTHON_LIBRARY} dl util)
+ endif()
file(GLOB pypangolin_SRC "python/pypangolin/*.cpp" )
file(GLOB pypangolin_HDR "python/pypangolin/*.hpp" )
list(APPEND HEADERS
@@ -382,6 +384,7 @@ endif()

option(BUILD_PANGOLIN_FFMPEG "Build support for ffmpeg video input" ON)
if(BUILD_PANGOLIN_FFMPEG AND BUILD_PANGOLIN_VIDEO)
+ add_definitions(-DHAVE_FFMPEG_AVPIXELFORMAT)
find_package(FFMPEG QUIET)
if(FFMPEG_FOUND)
set(HAVE_FFMPEG 1)
@@ -630,6 +633,13 @@ endif()

set(INSTALL_INCLUDE_DIR "include")

+# Required by geometry
+if(NOT BUILD_EXTERN_GLEW)
+ find_package(GLEW REQUIRED)
+endif()
+list(APPEND USER_INC ${GLEW_INCLUDE_DIR})
+list(APPEND LINK_LIBS ${GLEW_LIBRARY})
+
add_library(${LIBRARY_NAME} ${SOURCES} ${HEADERS})
Comment on lines +73 to +80

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same as above.

# 'System' includes shield us from warnings in those includes.
target_include_directories(${LIBRARY_NAME} SYSTEM PUBLIC ${USER_INC} PRIVATE ${INTERNAL_INC})
@@ -692,7 +702,13 @@ CreateMethodCallFile(
option(BUILD_PYPANGOLIN_MODULE "Python wrapper for Pangolin" ON)
if(BUILD_PYPANGOLIN_MODULE AND HAVE_PYTHON )
file(GLOB pypangolin_SRC "python/pypangolin/*.hpp" "python/pypangolin/*.cpp" "python/pypangolin_module.cpp")
- pybind11_add_module(pypangolin ${pypangolin_SRC})
+ if (BUILD_SHARED_LIBS)
+ set(PYBIND11_MODULE_TYPE SHARED)
+ else()
+ set(PYBIND11_MODULE_TYPE STATIC)
+ endif()
+
+ pybind11_add_module(pypangolin ${PYBIND11_MODULE_TYPE} ${pypangolin_SRC})
target_link_libraries(pypangolin PRIVATE ${LIBRARY_NAME})
target_include_directories(pypangolin PRIVATE "${USER_INC}")
endif()
15 changes: 0 additions & 15 deletions ports/pangolin/fix-dependency-python.patch

This file was deleted.

47 changes: 42 additions & 5 deletions ports/pangolin/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,32 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
fix-includepath-error.patch # include path has one more ../
fix-dependency-python.patch
add-definition.patch
fix-cmake-version.patch
fix-build-error-in-vs2019.patch
fix-dependencies.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
test BUILD_TESTS
tools BUILD_TOOLS
examples BUILD_EXAMPLES
test BUILD_TESTS
tools BUILD_TOOLS
examples BUILD_EXAMPLES
gui BUILD_PANGOLIN_GUI
vars BUILD_PANGOLIN_VARS
video BUILD_PANGOLIN_VIDEO
pybind11 BUILD_PANGOLIN_PYTHON
eigen BUILD_PANGOLIN_EIGEN
ffmpeg BUILD_PANGOLIN_FFMPEG
realsense BUILD_PANGOLIN_LIBREALSENSE2
openni2 BUILD_PANGOLIN_OPENNI2
uvc BUILD_PANGOLIN_LIBUVC
png BUILD_PANGOLIN_LIBPNG
jpeg BUILD_PANGOLIN_LIBJPEG
tiff BUILD_PANGOLIN_LIBTIFF
openexr BUILD_PANGOLIN_LIBOPENEXR
zstd BUILD_PANGOLIN_ZSTD
lz4 BUILD_PANGOLIN_LZ4
module BUILD_PYPANGOLIN_MODULE
)

file(REMOVE "${SOURCE_PATH}/CMakeModules/FindGLEW.cmake")
Expand All @@ -36,6 +51,18 @@ vcpkg_cmake_configure(
-DBUILD_EXTERN_GLEW=OFF
-DBUILD_EXTERN_LIBPNG=OFF
-DBUILD_EXTERN_LIBJPEG=OFF
-DBUILD_PANGOLIN_PLEORA=OFF
-DBUILD_PANGOLIN_TELICAM=OFF
-DBUILD_PANGOLIN_DEPTHSENSE=OFF
-DBUILD_PANGOLIN_OPENNI=OFF
-DBUILD_PANGOLIN_UVC_MEDIAFOUNDATION=OFF
-DBUILD_PANGOLIN_LIBREALSENSE=OFF
-DBUILD_PANGOLIN_V4L=OFF
-DBUILD_PANGOLIN_LIBDC1394=OFF
-DBUILD_PANGOLIN_TOON=OFF
-DDISPLAY_WAYLAND=OFF
-DDISPLAY_X11=OFF
-DBUILD_FOR_GLES_2=OFF
-DCMAKE_DISABLE_FIND_PACKAGE_TooN=ON
-DCMAKE_DISABLE_FIND_PACKAGE_DC1394=ON
-DCMAKE_DISABLE_FIND_PACKAGE_LibRealSense=ON
Expand All @@ -50,6 +77,16 @@ vcpkg_cmake_configure(
-DMSVC_USE_STATIC_CRT=${MSVC_USE_STATIC_CRT}
MAYBE_UNUSED_VARIABLES
MSVC_USE_STATIC_CRT
BUILD_FOR_GLES_2
CMAKE_DISABLE_FIND_PACKAGE_DC1394
CMAKE_DISABLE_FIND_PACKAGE_DepthSense
CMAKE_DISABLE_FIND_PACKAGE_LibRealSense
CMAKE_DISABLE_FIND_PACKAGE_OpenNI
CMAKE_DISABLE_FIND_PACKAGE_OpenNI2
Comment thread
JackBoosY marked this conversation as resolved.
Outdated
CMAKE_DISABLE_FIND_PACKAGE_uvc
CMAKE_DISABLE_FIND_PACKAGE_Pleora
CMAKE_DISABLE_FIND_PACKAGE_TeliCam
CMAKE_DISABLE_FIND_PACKAGE_TooN
)

vcpkg_cmake_install()
Expand Down
111 changes: 102 additions & 9 deletions ports/pangolin/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
{
"name": "pangolin",
"version": "0.6",
"port-version": 1,
"description": "Lightweight GUI Library",
"homepage": "https://github.com/stevenlovegrove/Pangolin",
"supports": "!uwp",
"dependencies": [
"eigen3",
{
"name": "ffmpeg",
"features": [
"avformat"
]
},
"glew",

@JackBoosY JackBoosY Sep 6, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is required by the core component geometry.

"libjpeg-turbo",
"libpng",
{
"name": "vcpkg-cmake",
"host": true
Expand All @@ -24,15 +16,116 @@
"host": true
}
],
"default-features": [
"eigen",
"ffmpeg",
"gui",
"jpeg",
"png",
"vars",
"video"
],
"features": {
"eigen": {
"description": "Build support for Eigen matrix types",
"dependencies": [
"eigen3"
]
},
"examples": {
"description": "Build Examples"
},
"ffmpeg": {
"description": "Build support for ffmpeg video input",
"dependencies": [
{
"name": "ffmpeg",
"features": [
"avformat"
]
}
]
},
"gui": {
"description": "Build support for Pangolin GUI"
},
"jpeg": {
"description": "Build support for libjpeg image input",
"dependencies": [
"libjpeg-turbo"
]
},
"lz4": {
"description": "Build support for liblz4 compression",
"dependencies": [
"lz4"
]
},
"module": {
"description": "Python wrapper for Pangolin",
"dependencies": [
"python3"
]
},
"openexr": {
"description": "Build support for libopenexr image input",
"dependencies": [
"openexr"
]
},
"openni2": {
"description": "Build support for OpenNI2 video input",
"dependencies": [
"openni2"
]
},
"png": {
"description": "Build support for libpng image input",
"dependencies": [
"libpng"
]
},
"pybind11": {
"description": "Build support for Pangolin Interactive Console",
"dependencies": [
"pybind11"
]
},
"realsense": {
"description": "Build support for LibRealSense2 video input",
"dependencies": [
"realsense2"
]
},
"test": {
"description": "Build Tests"
},
"tiff": {
"description": "Build support for libtiff image input",
"dependencies": [
"tiff"
]
},
"tools": {
"description": "Build Tools"
},
"uvc": {
"description": "Build support for MediaFoundation UVC input",
"dependencies": [
"libuvc"
]
},
"vars": {
"description": "Build support for Pangolin Vars"
},
"video": {
"description": "Build support for Pangolin Video Utilities"
},
"zstd": {
"description": "Build support for libzstd compression",
"dependencies": [
"zstd"
]
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4862,7 +4862,7 @@
},
"pangolin": {
"baseline": "0.6",
"port-version": 0
"port-version": 1
},
"pangomm": {
"baseline": "2.48.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/pangolin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "67ae8e38d9b56ccd424239e8314ddbd1b270b267",
"version": "0.6",
"port-version": 1
},
{
"git-tree": "e28a4e1603d5ee1843787223a55dce439b579b94",
"version": "0.6",
Expand Down