From f3eec209c566ca09d2ec6a5c8a9fc1f996ff4325 Mon Sep 17 00:00:00 2001 From: Marina Moreira Date: Thu, 20 Aug 2020 18:07:58 -0700 Subject: [PATCH 01/10] changing unavailable eigen source --- elibs/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elibs/CMakeLists.txt b/elibs/CMakeLists.txt index ad61888a..66432b4d 100644 --- a/elibs/CMakeLists.txt +++ b/elibs/CMakeLists.txt @@ -22,8 +22,8 @@ externalproject_add(ext_rayint externalproject_add(ext_eigen PREFIX ext_eigen - URL https://bitbucket.org/eigen/eigen/get/3.3.2.tar.gz - URL_MD5 36b5731ab7d7e0c10843ac93bd9fd270 + URL https://gitlab.com/libeigen/eigen/-/archive/3.3.2/eigen-3.3.2.tar.gz + URL_MD5 02edfeec591ae09848223d622700a10b SOURCE_DIR ${CMAKE_SOURCE_DIR}/elibs/eigen CONFIGURE_COMMAND "" BUILD_COMMAND "" From b0b124da239a4dd570efbf4ff2510a37829bbcd9 Mon Sep 17 00:00:00 2001 From: Daniil Nikulin Date: Mon, 31 Aug 2020 16:14:43 +0300 Subject: [PATCH 02/10] change loop condition for fix boundary bug in function tex::from_images_and_camera_files --- libs/tex/generate_texture_views.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/tex/generate_texture_views.cpp b/libs/tex/generate_texture_views.cpp index 9993aa31..f473a125 100644 --- a/libs/tex/generate_texture_views.cpp +++ b/libs/tex/generate_texture_views.cpp @@ -83,11 +83,10 @@ from_images_and_camera_files(std::string const & path, /* Find corresponding image file. */ int step = 1; - for (std::size_t j = i + 1; j < dir.size(); j += step) { - util::fs::File const & img_file = dir[j]; + for (std::size_t j = i + 1; ; j += step) { /* Since the files are sorted we can break - no more files with the same prefix exist. */ - if (util::string::left(img_file.name, prefix.size()) != prefix) { + if (j >= dir.size() || util::string::left(dir[j].name, prefix.size()) != prefix) { if (step == 1) { j = i; step = -1; @@ -96,6 +95,7 @@ from_images_and_camera_files(std::string const & path, break; } } + util::fs::File const & img_file = dir[j]; /* Image file (based on extension)? */ std::string img_file_ext = util::string::uppercase(util::string::right(img_file.name, 4)); From ef13f9efe6103926c4990539adb8bd33c702ccec Mon Sep 17 00:00:00 2001 From: Madhav Humagain Date: Mon, 11 Jan 2021 15:07:04 +0545 Subject: [PATCH 03/10] Update eigen repo path and hash --- elibs/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elibs/CMakeLists.txt b/elibs/CMakeLists.txt index ad61888a..66432b4d 100644 --- a/elibs/CMakeLists.txt +++ b/elibs/CMakeLists.txt @@ -22,8 +22,8 @@ externalproject_add(ext_rayint externalproject_add(ext_eigen PREFIX ext_eigen - URL https://bitbucket.org/eigen/eigen/get/3.3.2.tar.gz - URL_MD5 36b5731ab7d7e0c10843ac93bd9fd270 + URL https://gitlab.com/libeigen/eigen/-/archive/3.3.2/eigen-3.3.2.tar.gz + URL_MD5 02edfeec591ae09848223d622700a10b SOURCE_DIR ${CMAKE_SOURCE_DIR}/elibs/eigen CONFIGURE_COMMAND "" BUILD_COMMAND "" From 9d1aa3266a202605201b5881bd5aaa8277b59602 Mon Sep 17 00:00:00 2001 From: David Koller Date: Fri, 26 Mar 2021 17:36:33 -0400 Subject: [PATCH 04/10] Fix description of *.cam file distortion models --- apps/texrecon/arguments.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/texrecon/arguments.cpp b/apps/texrecon/arguments.cpp index 17cc6be4..2c9c269f 100644 --- a/apps/texrecon/arguments.cpp +++ b/apps/texrecon/arguments.cpp @@ -36,8 +36,8 @@ Arguments parse_args(int argc, char **argv) { "\nFirst line: Extrinsics - translation vector and rotation matrix (the transform from world to camera)" "\nSecond line: Intrinsics - focal length, distortion coefficients, pixel aspect ratio and principal point" "\nThe focal length is the distance between camera center and image plane normalized by dividing with the larger image dimension." - "\nFor non zero distortion coefficients the image will be undistorted prior to the texturing process." - " If only d0 is non zero the Noah Snavely's distortion model is assumed otherwise the distortion model of VSFM is assumed." + "\nFor non-zero distortion coefficients the image will be undistorted prior to the texturing process." + " If only d0 is non-zero then the radial distortion model of VisualSFM is assumed, otherwise the Bundler distortion model is assumed." "\nThe pixel aspect ratio is usually 1 or close to 1. If your SfM system doesn't output it, but outputs a different focal length in x and y direction, you have to encode this here." "\nThe principal point has to be given in unit dimensions (e.g. 0.5 0.5)." "\n\nBUNDLE_FILE:" From c1db2231bc1223bcf4e83e360e1b912c9e007e82 Mon Sep 17 00:00:00 2001 From: lionelbishwash Date: Thu, 24 Feb 2022 10:33:22 +0545 Subject: [PATCH 05/10] Updated git tag for mapmap --- elibs/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elibs/CMakeLists.txt b/elibs/CMakeLists.txt index 66432b4d..4c17eb8d 100644 --- a/elibs/CMakeLists.txt +++ b/elibs/CMakeLists.txt @@ -1,7 +1,7 @@ externalproject_add(ext_mapmap PREFIX ext_mapmap GIT_REPOSITORY https://github.com/dthuerck/mapmap_cpu.git - GIT_TAG master + GIT_TAG 55d14fd UPDATE_COMMAND "" SOURCE_DIR ${CMAKE_SOURCE_DIR}/elibs/mapmap CONFIGURE_COMMAND "" From eb2f6d77a3b0fe9e2cd80b954a39498e26812ce6 Mon Sep 17 00:00:00 2001 From: santeriok Date: Tue, 15 Oct 2024 19:12:30 +0300 Subject: [PATCH 06/10] Fix tbb-issues --- CMakeLists.txt | 2 - apps/texrecon/texrecon.cpp | 6 +- elibs/CMakeLists.txt | 2 +- elibs/tbb/FindTBB.cmake | 295 ------------------------------------- libs/tex/CMakeLists.txt | 2 +- 5 files changed, 6 insertions(+), 301 deletions(-) delete mode 100644 elibs/tbb/FindTBB.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index f0006c0a..bcda0271 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,5 @@ cmake_minimum_required(VERSION 3.1) -LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/elibs/tbb") - project(Texturing) include(ExternalProject) diff --git a/apps/texrecon/texrecon.cpp b/apps/texrecon/texrecon.cpp index 42568302..d8f0dc8d 100644 --- a/apps/texrecon/texrecon.cpp +++ b/apps/texrecon/texrecon.cpp @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include @@ -60,7 +60,9 @@ int main(int argc, char **argv) { } // Set the number of threads to use. - tbb::task_scheduler_init schedule(conf.num_threads > 0 ? conf.num_threads : tbb::task_scheduler_init::automatic); + //tbb::task_scheduler_init schedule(conf.num_threads > 0 ? conf.num_threads : tbb::task_scheduler_init::automatic); + tbb::task_arena arena(conf.num_threads > 0 ? conf.num_threads : tbb::this_task_arena::max_concurrency()); + if (conf.num_threads > 0) { omp_set_dynamic(0); omp_set_num_threads(conf.num_threads); diff --git a/elibs/CMakeLists.txt b/elibs/CMakeLists.txt index 4c17eb8d..0e4c833e 100644 --- a/elibs/CMakeLists.txt +++ b/elibs/CMakeLists.txt @@ -1,7 +1,7 @@ externalproject_add(ext_mapmap PREFIX ext_mapmap GIT_REPOSITORY https://github.com/dthuerck/mapmap_cpu.git - GIT_TAG 55d14fd + GIT_TAG fa526e0 UPDATE_COMMAND "" SOURCE_DIR ${CMAKE_SOURCE_DIR}/elibs/mapmap CONFIGURE_COMMAND "" diff --git a/elibs/tbb/FindTBB.cmake b/elibs/tbb/FindTBB.cmake deleted file mode 100644 index a1131aad..00000000 --- a/elibs/tbb/FindTBB.cmake +++ /dev/null @@ -1,295 +0,0 @@ -# The MIT License (MIT) -# -# Copyright (c) 2015 Justus Calvin -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - -# -# FindTBB -# ------- -# -# Find TBB include directories and libraries. -# -# Usage: -# -# find_package(TBB [major[.minor]] [EXACT] -# [QUIET] [REQUIRED] -# [[COMPONENTS] [components...]] -# [OPTIONAL_COMPONENTS components...]) -# -# where the allowed components are tbbmalloc and tbb_preview. Users may modify -# the behavior of this module with the following variables: -# -# * TBB_ROOT_DIR - The base directory the of TBB installation. -# * TBB_INCLUDE_DIR - The directory that contains the TBB headers files. -# * TBB_LIBRARY - The directory that contains the TBB library files. -# * TBB__LIBRARY - The path of the TBB the corresponding TBB library. -# These libraries, if specified, override the -# corresponding library search results, where -# may be tbb, tbb_debug, tbbmalloc, tbbmalloc_debug, -# tbb_preview, or tbb_preview_debug. -# * TBB_USE_DEBUG_BUILD - The debug version of tbb libraries, if present, will -# be used instead of the release version. -# -# Users may modify the behavior of this module with the following environment -# variables: -# -# * TBB_INSTALL_DIR -# * TBBROOT -# * LIBRARY_PATH -# -# This module will set the following variables: -# -# * TBB_FOUND - Set to false, or undefined, if we haven’t found, or -# don’t want to use TBB. -# * TBB__FOUND - If False, optional part of TBB sytem is -# not available. -# * TBB_VERSION - The full version string -# * TBB_VERSION_MAJOR - The major version -# * TBB_VERSION_MINOR - The minor version -# * TBB_INTERFACE_VERSION - The interface version number defined in -# tbb/tbb_stddef.h. -# * TBB__LIBRARY_RELEASE - The path of the TBB release version of -# , where may be tbb, tbb_debug, -# tbbmalloc, tbbmalloc_debug, tbb_preview, or -# tbb_preview_debug. -# * TBB__LIBRARY_DEGUG - The path of the TBB release version of -# , where may be tbb, tbb_debug, -# tbbmalloc, tbbmalloc_debug, tbb_preview, or -# tbb_preview_debug. -# -# The following varibles should be used to build and link with TBB: -# -# * TBB_INCLUDE_DIRS - The include directory for TBB. -# * TBB_LIBRARIES - The libraries to link against to use TBB. -# * TBB_LIBRARIES_RELEASE - The release libraries to link against to use TBB. -# * TBB_LIBRARIES_DEBUG - The debug libraries to link against to use TBB. -# * TBB_DEFINITIONS - Definitions to use when compiling code that uses -# TBB. -# * TBB_DEFINITIONS_RELEASE - Definitions to use when compiling release code that -# uses TBB. -# * TBB_DEFINITIONS_DEBUG - Definitions to use when compiling debug code that -# uses TBB. -# -# This module will also create the "tbb" target that may be used when building -# executables and libraries. - -include(FindPackageHandleStandardArgs) - -if(NOT TBB_FOUND) - - ################################## - # Check the build type - ################################## - - if(NOT DEFINED TBB_USE_DEBUG_BUILD) - if(CMAKE_BUILD_TYPE MATCHES "(Debug|DEBUG|debug|RelWithDebInfo|RELWITHDEBINFO|relwithdebinfo)") - set(TBB_BUILD_TYPE DEBUG) - else() - set(TBB_BUILD_TYPE RELEASE) - endif() - elseif(TBB_USE_DEBUG_BUILD) - set(TBB_BUILD_TYPE DEBUG) - else() - set(TBB_BUILD_TYPE RELEASE) - endif() - - ################################## - # Set the TBB search directories - ################################## - - # Define search paths based on user input and environment variables - set(TBB_SEARCH_DIR ${TBB_ROOT_DIR} $ENV{TBB_INSTALL_DIR} $ENV{TBBROOT}) - - # Define the search directories based on the current platform - if(CMAKE_SYSTEM_NAME STREQUAL "Windows") - set(TBB_DEFAULT_SEARCH_DIR "C:/Program Files/Intel/TBB" - "C:/Program Files (x86)/Intel/TBB") - - # Set the target architecture - if(CMAKE_SIZEOF_VOID_P EQUAL 8) - set(TBB_ARCHITECTURE "intel64") - else() - set(TBB_ARCHITECTURE "ia32") - endif() - - # Set the TBB search library path search suffix based on the version of VC - if(WINDOWS_STORE) - set(TBB_LIB_PATH_SUFFIX "lib/${TBB_ARCHITECTURE}/vc11_ui") - elseif(MSVC14) - set(TBB_LIB_PATH_SUFFIX "lib/${TBB_ARCHITECTURE}/vc14") - elseif(MSVC12) - set(TBB_LIB_PATH_SUFFIX "lib/${TBB_ARCHITECTURE}/vc12") - elseif(MSVC11) - set(TBB_LIB_PATH_SUFFIX "lib/${TBB_ARCHITECTURE}/vc11") - elseif(MSVC10) - set(TBB_LIB_PATH_SUFFIX "lib/${TBB_ARCHITECTURE}/vc10") - endif() - - # Add the library path search suffix for the VC independent version of TBB - list(APPEND TBB_LIB_PATH_SUFFIX "lib/${TBB_ARCHITECTURE}/vc_mt") - - elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") - # OS X - set(TBB_DEFAULT_SEARCH_DIR "/opt/intel/tbb") - - # TODO: Check to see which C++ library is being used by the compiler. - if(NOT ${CMAKE_SYSTEM_VERSION} VERSION_LESS 13.0) - # The default C++ library on OS X 10.9 and later is libc++ - set(TBB_LIB_PATH_SUFFIX "lib/libc++" "lib") - else() - set(TBB_LIB_PATH_SUFFIX "lib") - endif() - elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") - # Linux - set(TBB_DEFAULT_SEARCH_DIR "/opt/intel/tbb") - - # TODO: Check compiler version to see the suffix should be /gcc4.1 or - # /gcc4.1. For now, assume that the compiler is more recent than - # gcc 4.4.x or later. - if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") - set(TBB_LIB_PATH_SUFFIX "lib/intel64/gcc4.4") - elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^i.86$") - set(TBB_LIB_PATH_SUFFIX "lib/ia32/gcc4.4") - endif() - endif() - - ################################## - # Find the TBB include dir - ################################## - - find_path(TBB_INCLUDE_DIRS tbb/tbb.h - HINTS ${TBB_INCLUDE_DIR} ${TBB_SEARCH_DIR} - PATHS ${TBB_DEFAULT_SEARCH_DIR} - PATH_SUFFIXES include) - - ################################## - # Set version strings - ################################## - - if(TBB_INCLUDE_DIRS) - file(READ "${TBB_INCLUDE_DIRS}/tbb/tbb_stddef.h" _tbb_version_file) - string(REGEX REPLACE ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1" - TBB_VERSION_MAJOR "${_tbb_version_file}") - string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1" - TBB_VERSION_MINOR "${_tbb_version_file}") - string(REGEX REPLACE ".*#define TBB_INTERFACE_VERSION ([0-9]+).*" "\\1" - TBB_INTERFACE_VERSION "${_tbb_version_file}") - set(TBB_VERSION "${TBB_VERSION_MAJOR}.${TBB_VERSION_MINOR}") - endif() - - ################################## - # Find TBB components - ################################## - - if(TBB_VERSION VERSION_LESS 4.3) - set(TBB_SEARCH_COMPOMPONENTS tbb_preview tbbmalloc tbb) - else() - set(TBB_SEARCH_COMPOMPONENTS tbb_preview tbbmalloc_proxy tbbmalloc tbb) - endif() - - # Find each component - foreach(_comp ${TBB_SEARCH_COMPOMPONENTS}) - if(";${TBB_FIND_COMPONENTS};tbb;" MATCHES ";${_comp};") - - # Search for the libraries - find_library(TBB_${_comp}_LIBRARY_RELEASE ${_comp} - HINTS ${TBB_LIBRARY} ${TBB_SEARCH_DIR} - PATHS ${TBB_DEFAULT_SEARCH_DIR} ENV LIBRARY_PATH - PATH_SUFFIXES ${TBB_LIB_PATH_SUFFIX}) - - find_library(TBB_${_comp}_LIBRARY_DEBUG ${_comp}_debug - HINTS ${TBB_LIBRARY} ${TBB_SEARCH_DIR} - PATHS ${TBB_DEFAULT_SEARCH_DIR} ENV LIBRARY_PATH - PATH_SUFFIXES ${TBB_LIB_PATH_SUFFIX}) - - if(TBB_${_comp}_LIBRARY_DEBUG) - list(APPEND TBB_LIBRARIES_DEBUG "${TBB_${_comp}_LIBRARY_DEBUG}") - endif() - if(TBB_${_comp}_LIBRARY_RELEASE) - list(APPEND TBB_LIBRARIES_RELEASE "${TBB_${_comp}_LIBRARY_RELEASE}") - endif() - if(TBB_${_comp}_LIBRARY_${TBB_BUILD_TYPE} AND NOT TBB_${_comp}_LIBRARY) - set(TBB_${_comp}_LIBRARY "${TBB_${_comp}_LIBRARY_${TBB_BUILD_TYPE}}") - endif() - - if(TBB_${_comp}_LIBRARY AND EXISTS "${TBB_${_comp}_LIBRARY}") - set(TBB_${_comp}_FOUND TRUE) - else() - set(TBB_${_comp}_FOUND FALSE) - endif() - - # Mark internal variables as advanced - mark_as_advanced(TBB_${_comp}_LIBRARY_RELEASE) - mark_as_advanced(TBB_${_comp}_LIBRARY_DEBUG) - mark_as_advanced(TBB_${_comp}_LIBRARY) - - endif() - endforeach() - - set(TBB_LIBRARIES "${TBB_LIBRARIES_${TBB_BUILD_TYPE}}") - - ################################## - # Set compile flags - ################################## - - set(TBB_DEFINITIONS_RELEASE "") - set(TBB_DEFINITIONS_DEBUG "-DTBB_USE_DEBUG=1") - set(TBB_DEFINITIONS "${TBB_DEFINITIONS_${TBB_BUILD_TYPE}}") - - find_package_handle_standard_args(TBB - REQUIRED_VARS TBB_INCLUDE_DIRS TBB_LIBRARIES - HANDLE_COMPONENTS - VERSION_VAR TBB_VERSION) - - ################################## - # Create targets - ################################## - - if(NOT CMAKE_VERSION VERSION_LESS 3.0 AND TBB_FOUND) - add_library(tbb SHARED IMPORTED) - set_target_properties(tbb PROPERTIES - INTERFACE_INCLUDE_DIRECTORIES ${TBB_INCLUDE_DIRS} - IMPORTED_LOCATION ${TBB_LIBRARIES}) - if(TBB_LIBRARIES_RELEASE AND TBB_LIBRARIES_DEBUG) - set_target_properties(tbb PROPERTIES - INTERFACE_COMPILE_DEFINITIONS "$<$,$>:TBB_USE_DEBUG=1>" - IMPORTED_LOCATION_DEBUG ${TBB_LIBRARIES_DEBUG} - IMPORTED_LOCATION_RELWITHDEBINFO ${TBB_LIBRARIES_DEBUG} - IMPORTED_LOCATION_RELEASE ${TBB_LIBRARIES_RELEASE} - IMPORTED_LOCATION_MINSIZEREL ${TBB_LIBRARIES_RELEASE} - ) - elseif(TBB_LIBRARIES_RELEASE) - set_target_properties(tbb PROPERTIES IMPORTED_LOCATION ${TBB_LIBRARIES_RELEASE}) - else() - set_target_properties(tbb PROPERTIES - INTERFACE_COMPILE_DEFINITIONS "${TBB_DEFINITIONS_DEBUG}" - IMPORTED_LOCATION ${TBB_LIBRARIES_DEBUG} - ) - endif() - endif() - - mark_as_advanced(TBB_INCLUDE_DIRS TBB_LIBRARIES) - - unset(TBB_ARCHITECTURE) - unset(TBB_BUILD_TYPE) - unset(TBB_LIB_PATH_SUFFIX) - unset(TBB_DEFAULT_SEARCH_DIR) - -endif() diff --git a/libs/tex/CMakeLists.txt b/libs/tex/CMakeLists.txt index 6efa10f3..8a646acb 100644 --- a/libs/tex/CMakeLists.txt +++ b/libs/tex/CMakeLists.txt @@ -5,5 +5,5 @@ set(LIBRARY tex) add_library(${LIBRARY} STATIC ${SOURCES}) set_property(TARGET ${LIBRARY} PROPERTY INTERPROCEDURAL_OPTIMIZATION True) add_dependencies(${LIBRARY} ext_mve ext_rayint ext_eigen ext_mapmap) -target_link_libraries(${LIBRARY} ${TBB_LIBRARIES} -lmve -lmve_util ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${TIFF_LIBRARIES}) +target_link_libraries(${LIBRARY} -lmve -lmve_util ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${TIFF_LIBRARIES} TBB::tbb) install(TARGETS ${LIBRARY} ARCHIVE DESTINATION lib) From cec3715cb014f369f29639a1675ee8b4e7b8dd24 Mon Sep 17 00:00:00 2001 From: santeriok Date: Tue, 15 Oct 2024 19:24:16 +0300 Subject: [PATCH 07/10] Remove commented line --- apps/texrecon/texrecon.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/texrecon/texrecon.cpp b/apps/texrecon/texrecon.cpp index d8f0dc8d..5aee0125 100644 --- a/apps/texrecon/texrecon.cpp +++ b/apps/texrecon/texrecon.cpp @@ -60,7 +60,6 @@ int main(int argc, char **argv) { } // Set the number of threads to use. - //tbb::task_scheduler_init schedule(conf.num_threads > 0 ? conf.num_threads : tbb::task_scheduler_init::automatic); tbb::task_arena arena(conf.num_threads > 0 ? conf.num_threads : tbb::this_task_arena::max_concurrency()); if (conf.num_threads > 0) { From 88b70c79cd53690d13c5c380262eb1e4af42f742 Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 31 Jul 2025 17:04:45 -0700 Subject: [PATCH 08/10] remove failed dependency --- libs/tex/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/tex/CMakeLists.txt b/libs/tex/CMakeLists.txt index 719f41d5..5e0b737e 100644 --- a/libs/tex/CMakeLists.txt +++ b/libs/tex/CMakeLists.txt @@ -4,7 +4,7 @@ file (GLOB SOURCES "[^_]*.cpp") set(LIBRARY tex) add_library(${LIBRARY} STATIC ${SOURCES}) set_property(TARGET ${LIBRARY} PROPERTY INTERPROCEDURAL_OPTIMIZATION True) -add_dependencies(${LIBRARY} ext_mve ext_rayint ext_eigen ext_mapmap) +add_dependencies(${LIBRARY} ext_rayint ext_eigen ext_mapmap) include_directories(${TBB_INCLUDE_DIRS}) target_link_libraries(${LIBRARY} -lmve -lmve_util ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${TIFF_LIBRARIES} TBB::tbb) install(TARGETS ${LIBRARY} ARCHIVE DESTINATION lib) From 6146764d97c939c19cde296f5a839394991ade13 Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 31 Jul 2025 17:11:13 -0700 Subject: [PATCH 09/10] use newest mapmap --- elibs/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elibs/CMakeLists.txt b/elibs/CMakeLists.txt index ac4519f7..8128284e 100644 --- a/elibs/CMakeLists.txt +++ b/elibs/CMakeLists.txt @@ -1,7 +1,7 @@ externalproject_add(ext_mapmap PREFIX ext_mapmap - GIT_REPOSITORY https://github.com/OpenDroneMap/mapmap_cpu.git - GIT_TAG 250 + GIT_REPOSITORY https://github.com/dthuerck/mapmap_cpu + GIT_TAG fa526e0963ca3e431a02aa7b9e87b85ba8a8e304 UPDATE_COMMAND "" SOURCE_DIR ${CMAKE_SOURCE_DIR}/elibs/mapmap CONFIGURE_COMMAND "" From 5d55cc4b2d789ee09551185faba2b010a82ae91c Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 31 Jul 2025 17:14:27 -0700 Subject: [PATCH 10/10] finx link --- libs/tex/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/tex/CMakeLists.txt b/libs/tex/CMakeLists.txt index 5e0b737e..f2415285 100644 --- a/libs/tex/CMakeLists.txt +++ b/libs/tex/CMakeLists.txt @@ -6,5 +6,5 @@ add_library(${LIBRARY} STATIC ${SOURCES}) set_property(TARGET ${LIBRARY} PROPERTY INTERPROCEDURAL_OPTIMIZATION True) add_dependencies(${LIBRARY} ext_rayint ext_eigen ext_mapmap) include_directories(${TBB_INCLUDE_DIRS}) -target_link_libraries(${LIBRARY} -lmve -lmve_util ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${TIFF_LIBRARIES} TBB::tbb) +target_link_libraries(${LIBRARY} ${MVE_MVE_LIBRARY} ${MVE_UTIL_LIBRARY} ${JPEG_LIBRARIES} ${PNG_LIBRARIES} ${TIFF_LIBRARIES} TBB::tbb) install(TARGETS ${LIBRARY} ARCHIVE DESTINATION lib)