diff --git a/ports/crashpad/crashpadConfig.cmake.in b/ports/crashpad/crashpadConfig.cmake.in index 120247a1b1..85e4507397 100644 --- a/ports/crashpad/crashpadConfig.cmake.in +++ b/ports/crashpad/crashpadConfig.cmake.in @@ -13,7 +13,7 @@ if(NOT TARGET crashpad::crashpad) add_library(crashpad::crashpad INTERFACE IMPORTED) target_include_directories(crashpad::crashpad INTERFACE "${_IMPORT_PREFIX}/include/crashpad") - set(_libs client common util base) + set(_libs crashpad_client crashpad_client_common crashpad_util crashpad_base) if(APPLE) list(APPEND _libs mig_output) endif() diff --git a/ports/crashpad/fix-lib-name-conflict-1.patch b/ports/crashpad/fix-lib-name-conflict-1.patch new file mode 100644 index 0000000000..bab9d3b0b7 --- /dev/null +++ b/ports/crashpad/fix-lib-name-conflict-1.patch @@ -0,0 +1,12 @@ +diff --git a/base/BUILD.gn b/base/BUILD.gn +index 0bcf519..c637f2b 100644 +--- a/base/BUILD.gn ++++ b/base/BUILD.gn +@@ -5,6 +5,7 @@ + import("../build/platform.gni") + + static_library("base") { ++ output_name = "crashpad_base" + sources = [ + "atomicops.h", + "atomicops_internals_atomicword_compat.h", diff --git a/ports/crashpad/fix-lib-name-conflict.patch b/ports/crashpad/fix-lib-name-conflict.patch new file mode 100644 index 0000000000..0068eb9b9a --- /dev/null +++ b/ports/crashpad/fix-lib-name-conflict.patch @@ -0,0 +1,44 @@ +diff --git a/client/BUILD.gn b/client/BUILD.gn +index bd150ab..5cbf469 100644 +--- a/client/BUILD.gn ++++ b/client/BUILD.gn +@@ -15,6 +15,7 @@ + import("../build/crashpad_buildconfig.gni") + + crashpad_static_library("client") { ++ output_name = "crashpad_client" + sources = [ + "crashpad_client.h", + "prune_crash_reports.cc", +@@ -114,6 +115,7 @@ crashpad_static_library("client") { + } + + static_library("common") { ++ output_name = "crashpad_client_common" + sources = [ + "annotation.cc", + "annotation.h", +diff --git a/handler/BUILD.gn b/handler/BUILD.gn +index a2d6f7f..70a997e 100644 +--- a/handler/BUILD.gn ++++ b/handler/BUILD.gn +@@ -94,6 +94,7 @@ if (crashpad_is_android) { + } + + static_library("common") { ++ output_name = "crashpad_handler_common" + sources = [ + "crash_report_upload_thread.cc", + "crash_report_upload_thread.h", +diff --git a/util/BUILD.gn b/util/BUILD.gn +index e7ff4a8..9efcb41 100644 +--- a/util/BUILD.gn ++++ b/util/BUILD.gn +@@ -167,6 +167,7 @@ if (crashpad_is_win) { + } + + crashpad_static_library("util") { ++ output_name = "crashpad_util" + sources = [ + "file/delimited_file_reader.cc", + "file/delimited_file_reader.h", diff --git a/ports/crashpad/portfile.cmake b/ports/crashpad/portfile.cmake index 305dedffd3..e868e9b129 100644 --- a/ports/crashpad/portfile.cmake +++ b/ports/crashpad/portfile.cmake @@ -6,6 +6,7 @@ vcpkg_from_git( REF 7e0af1d4d45b526f01677e74a56f4a951b70517d PATCHES fix-linux.patch + fix-lib-name-conflict.patch ) vcpkg_find_acquire_program(PYTHON3) @@ -19,6 +20,7 @@ if(NOT EXISTS "${SOURCE_PATH}/third_party/mini_chromium/mini_chromium/BUILD.gn") PATCHES fix-std-20.patch ndk-toolchain.diff + fix-lib-name-conflict-1.patch ) file(REMOVE_RECURSE "${SOURCE_PATH}/third_party/mini_chromium/mini_chromium") file(RENAME "${mini_chromium}" "${SOURCE_PATH}/third_party/mini_chromium/mini_chromium") diff --git a/ports/crashpad/vcpkg.json b/ports/crashpad/vcpkg.json index 13297044f1..e221f0be37 100644 --- a/ports/crashpad/vcpkg.json +++ b/ports/crashpad/vcpkg.json @@ -1,7 +1,7 @@ { "name": "crashpad", "version-date": "2024-04-11", - "port-version": 2, + "port-version": 3, "description": [ "Crashpad is a crash-reporting system.", "Crashpad is a library for capturing, storing and transmitting postmortem crash reports from a client to an upstream collection server. Crashpad aims to make it possible for clients to capture process state at the time of crash with the best possible fidelity and coverage, with the minimum of fuss." diff --git a/ports/openmvs/fix-build.patch b/ports/openmvs/fix-build.patch index 6fe3d6ecf0..26839fc629 100644 --- a/ports/openmvs/fix-build.patch +++ b/ports/openmvs/fix-build.patch @@ -1,8 +1,8 @@ diff --git a/build/Templates/OpenMVSConfig.cmake.in b/build/Templates/OpenMVSConfig.cmake.in -index 9747b3e1..a8eb87df 100644 +index 9747b3e..ed2347e 100644 --- a/build/Templates/OpenMVSConfig.cmake.in +++ b/build/Templates/OpenMVSConfig.cmake.in -@@ -15,9 +15,67 @@ set(OpenMVS_INCLUDE_DIRS "@INSTALL_INCLUDE_DIR_IN@") +@@ -15,9 +15,64 @@ set(OpenMVS_INCLUDE_DIRS "@INSTALL_INCLUDE_DIR_IN@") set(OpenMVS_DEFINITIONS "@OpenMVS_DEFINITIONS@") @@ -41,7 +41,7 @@ index 9747b3e1..a8eb87df 100644 + add_definitions(${BREAKPAD_DEFINITIONS} -D_USE_BREAKPAD) +endif() + -+find_dependency(Boost) ++find_dependency(Boost COMPONENTS iostreams program_options system serialization) +add_definitions(${Boost_DEFINITIONS} -D_USE_BOOST) +include_directories(${Boost_INCLUDE_DIRS}) +find_dependency(Eigen3) @@ -52,9 +52,6 @@ index 9747b3e1..a8eb87df 100644 +find_dependency(CGAL) +add_definitions(${CGAL_DEFINITIONS}) + -+find_dependency(VCG REQUIRED) -+add_definitions(${VCG_DEFINITIONS}) -+ +if(@OpenMVS_USE_CERES@) + find_dependency(Ceres) + add_definitions(${CERES_DEFINITIONS}) @@ -74,7 +71,6 @@ index 9747b3e1..a8eb87df 100644 -include("${CMAKE_CURRENT_LIST_DIR}/OpenMVSTargets.cmake") -check_required_components("OpenMVS") +set(OpenMVS_BINARIES InterfaceCOLMAP InterfaceMetashape InterfaceMVSNet DensifyPointCloud ReconstructMesh RefineMesh TextureMesh TransformScene Viewer) - diff --git a/build/Utils.cmake b/build/Utils.cmake index 0cb2d8e1..62e1661f 100644 --- a/build/Utils.cmake diff --git a/ports/openmvs/fix-lib-name-conflict.patch b/ports/openmvs/fix-lib-name-conflict.patch new file mode 100644 index 0000000000..240d74d6e6 --- /dev/null +++ b/ports/openmvs/fix-lib-name-conflict.patch @@ -0,0 +1,12 @@ +diff --git a/libs/Common/CMakeLists.txt b/libs/Common/CMakeLists.txt +index 18899af..1dd2c8d 100644 +--- a/libs/Common/CMakeLists.txt ++++ b/libs/Common/CMakeLists.txt +@@ -16,6 +16,7 @@ TARGET_LINK_LIBRARIES(Common ${Boost_LIBRARIES} ${OpenCV_LIBS}) + + # Install + SET_TARGET_PROPERTIES(Common PROPERTIES ++ OUTPUT_NAME "OpenMVS_Common" + PUBLIC_HEADER "${LIBRARY_FILES_H}") + INSTALL(TARGETS Common + EXPORT OpenMVSTargets diff --git a/ports/openmvs/portfile.cmake b/ports/openmvs/portfile.cmake index 3c2ae27808..22d36d5e7f 100644 --- a/ports/openmvs/portfile.cmake +++ b/ports/openmvs/portfile.cmake @@ -10,6 +10,7 @@ vcpkg_from_github( fix-build.patch no-absolute-paths.patch fix-static-build.patch + fix-lib-name-conflict.patch ) vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS diff --git a/ports/openmvs/vcpkg.json b/ports/openmvs/vcpkg.json index a2a416c9da..efaa701f3b 100644 --- a/ports/openmvs/vcpkg.json +++ b/ports/openmvs/vcpkg.json @@ -1,7 +1,7 @@ { "name": "openmvs", "version": "2.1.0", - "port-version": 5, + "port-version": 6, "description": "OpenMVS: open Multi-View Stereo reconstruction library", "homepage": "https://cdcseacave.github.io/openMVS", "license": "AGPL-3.0-only", diff --git a/versions/baseline.json b/versions/baseline.json index 292a1f1f74..db6c92e228 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2018,7 +2018,7 @@ }, "crashpad": { "baseline": "2024-04-11", - "port-version": 2 + "port-version": 3 }, "crashrpt": { "baseline": "1.4.3", @@ -6638,7 +6638,7 @@ }, "openmvs": { "baseline": "2.1.0", - "port-version": 5 + "port-version": 6 }, "openni2": { "baseline": "2.2.0.33", diff --git a/versions/c-/crashpad.json b/versions/c-/crashpad.json index 15deb5e6be..14ca38ef75 100644 --- a/versions/c-/crashpad.json +++ b/versions/c-/crashpad.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "3c65a9330a2d6d53ab6afad83ec165e708b1cc4e", + "version-date": "2024-04-11", + "port-version": 3 + }, { "git-tree": "a8c3dac7327cb12c8f1885797a7d63ed99b6963c", "version-date": "2024-04-11", diff --git a/versions/o-/openmvs.json b/versions/o-/openmvs.json index 9c1cd6fe72..7562e06260 100644 --- a/versions/o-/openmvs.json +++ b/versions/o-/openmvs.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "369a7d4c69c78fa832f60105f1a132860eff111a", + "version": "2.1.0", + "port-version": 6 + }, { "git-tree": "43075275b943fe5d74faef9ae858c8e8ed5a5735", "version": "2.1.0",