Hi ,
I 've trying to compile this project with Clion 2023.2 IDE on ubuntu 22.04, I 've updated the code to the latest version and downloaded the oneTBB version 2020.3 into the third party subdirectory, and made some changes to the FindTBB.cmake, like this:
# Obtained from Justus Calvin:
# https://github.com/justusc/FindTBB/blob/25ecdea817b3af4a26d74ddcd439642dbd706acb/FindTBB.cmake
#
# With the following modifications:
# * Move the "tbb" imported library target into a namespace as "TBB::tbb" to
# conform to modern CMake conventions.
# * Append "lib" as a library path suffix on all platforms.
#
# 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>_LIBRARY - The path of the TBB the corresponding TBB library.
# These libraries, if specified, override the
# corresponding library search results, where <library>
# 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_<component>_FOUND - If False, optional <component> 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>_LIBRARY_RELEASE - The path of the TBB release version of
# <library>, where <library> may be tbb, tbb_debug,
# tbbmalloc, tbbmalloc_debug, tbb_preview, or
# tbb_preview_debug.
# * TBB_<library>_LIBRARY_DEGUG - The path of the TBB release version of
# <library>, where <library> 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::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
##################################
message("FindTBB.cmake" "Dirs Initialization")
message("TBB_INCLUDE_DIRS (line 126): " "${TBB_INCLUDE_DIRS}")
# Define search paths based on user input and environment variables
set(TBB_ROOT_DIR "${PROJECT_SOURCE_DIR}/third_party/oneTBB/tbb-2020.3-linux/tbb/")
set(TBB_INSTALL_DIR "${PROJECT_SOURCE_DIR}/third_party/oneTBB/tbb-2020.3-linux/tbb/")
set(TBBROOT "${PROJECT_SOURCE_DIR}/third_party/oneTBB/tbb-2020.3-linux/tbb/")
# set(TBB_SEARCH_DIR ${TBB_ROOT_DIR} $ENV{TBB_INSTALL_DIR} $ENV{TBBROOT})
set(TBB_SEARCH_DIR "${PROJECT_SOURCE_DIR}/third_party/oneTBB/tbb-2020.3-linux/tbb/")
set(TBB_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/third_party/oneTBB/tbb-2020.3-linux/tbb/")
set(TBB_LIBRARY "${PROJECT_SOURCE_DIR}/third_party/oneTBB/tbb-2020.3-linux/tbb/")
set(TBB_DIR "${PROJECT_SOURCE_DIR}/third_party/oneTBB/tbb-2020.3-linux/tbb/cmake/")
# 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++")
endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Linux
# set(TBB_DEFAULT_SEARCH_DIR "/opt/intel/tbb")
set(TBB_DEFAULT_SEARCH_DIR "${PROJECT_SOURCE_DIR}/third_party/oneTBB/tbb-2020.3-linux/tbb/")
message("TBB_DEFAULT_SEARCH_DIR : " "${TBB_DEFAULT_SEARCH_DIR}")
# TODO: Check compiler version to see the suffix should be <arch>/gcc4.1 or
# <arch>/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")
set(TBB_LIB_PATH_SUFFIX "lib/intel64/gcc4.8/")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^i.86$")
# set(TBB_LIB_PATH_SUFFIX "lib/ia32/gcc4.4")
set(TBB_LIB_PATH_SUFFIX "lib/ia32/gcc4.8/")
endif()
endif()
message("TBB_LIB_PATH_SUFFIX : " "${TBB_LIB_PATH_SUFFIX}")
# The above TBB_LIB_PATH_SUFFIX is based on where Intel puts the libraries
# in the package of prebuilt libraries it distributes. However, users may
# install these shared libraries into the more conventional "lib" directory
# (especially when building from source), so we add that as an additional
# location to search.
list(APPEND TBB_LIB_PATH_SUFFIX "lib")
message("TBB_LIB_PATH_SUFFIX : " "${TBB_LIB_PATH_SUFFIX}")
##################################
# Find the TBB include dir
##################################
message("TBB_INCLUDE_DIRS : " "${TBB_INCLUDE_DIRS}")
message("TBB_INCLUDE_DIR : " "${TBB_INCLUDE_DIR}")
find_path(TBB_INCLUDE_DIRS NAMES tbb/tbb.h
HINTS ${TBB_INCLUDE_DIR} ${TBB_SEARCH_DIR}
PATHS ${TBB_DEFAULT_SEARCH_DIR}
PATH_SUFFIXES /include
NO_DEFAULT_PATH
NO_SYSTEM_ENVIRONMENT_PATH
NO_CMAKE_ENVIRONMENT_PATH
NO_CMAKE_FIND_ROOT_PATH
NO_CMAKE_SYSTEM_PATH
NO_CMAKE_PATH)
message("TBB_INCLUDE_DIRS : " "${TBB_INCLUDE_DIRS}")
##################################
# 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()
message("TBB_VERSION : " "${TBB_VERSION}")
##################################
# 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()
message("TBB_SEARCH_COMPOMPONENTS : " "${TBB_SEARCH_COMPOMPONENTS}")
message("TBB_FIND_COMPONENTS : " "${TBB_FIND_COMPONENTS}")
# Find each component
foreach(_comp ${TBB_SEARCH_COMPOMPONENTS})
if(";${TBB_FIND_COMPONENTS};tbb;" MATCHES ";${_comp};")
message("_comp : " "${_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})
message("TBB_${_comp}_LIBRARY_RELEASE : " "${TBB_${_comp}_LIBRARY_RELEASE}")
message("TBB_LIBRARY : " "${TBB_LIBRARY}")
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})
message("TBB_${_comp}_LIBRARY_DEBUG : " "${TBB_${_comp}_LIBRARY_DEBUG}")
message("TBB_LIBRARY : " "${TBB_LIBRARY}")
message("_comp : " "${_comp}")
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()
message("TBB_${_comp}_FOUND : " "${TBB_${_comp}_FOUND}")
# 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 compile flags and libraries
##################################
set(TBB_DEFINITIONS_RELEASE "")
set(TBB_DEFINITIONS_DEBUG "-DTBB_USE_DEBUG=1")
message("TBB_BUILD_TYPE : " "${TBB_BUILD_TYPE}")
message("TBB_LIBRARIES_ : " "${TBB_LIBRARIES_}")
message("TBB_LIBRARIES_ : " TBB_LIBRARIES_)
message("TBB_DEFINITIONS_RELEASE : " "${TBB_DEFINITIONS_RELEASE}")
message("TBB_LIBRARIES_RELEASE : " "${TBB_LIBRARIES_RELEASE}")
message("TBB_DEFINITIONS_DEBUG : " "${TBB_DEFINITIONS_DEBUG}")
message("TBB_LIBRARIES_DEBUG : " "${TBB_LIBRARIES_DEBUG}")
if(TBB_LIBRARIES_${TBB_BUILD_TYPE})
set(TBB_DEFINITIONS "${TBB_DEFINITIONS_${TBB_BUILD_TYPE}}")
set(TBB_LIBRARIES "${TBB_LIBRARIES_${TBB_BUILD_TYPE}}")
elseif(TBB_LIBRARIES_RELEASE)
set(TBB_DEFINITIONS "${TBB_DEFINITIONS_RELEASE}")
set(TBB_LIBRARIES "${TBB_LIBRARIES_RELEASE}")
elseif(TBB_LIBRARIES_DEBUG)
set(TBB_DEFINITIONS "${TBB_DEFINITIONS_DEBUG}")
set(TBB_LIBRARIES "${TBB_LIBRARIES_DEBUG}")
endif()
message("TBB_DEFINITIONS : " "${TBB_DEFINITIONS}")
message("TBB_LIBRARIES : " "${TBB_LIBRARIES}")
message("TBB_VERSION : " "${TBB_VERSION}")
find_package_handle_standard_args(TBB
REQUIRED_VARS TBB_INCLUDE_DIRS TBB_LIBRARIES
# HANDLE_COMPONENTS tbb tbb_debug tbbmalloc tbbmalloc_debug tbb_preview tbb_preview_debug
VERSION_VAR TBB_VERSION)
# message(STATUS "FindTBB.cmake : Found TBB 1")
if (TBB_FOUND)
message(STATUS "FindTBB.cmake : Found TBB")
# set(JINJA2_FOUND True)
endif()
##################################
# Create targets
##################################
if(NOT CMAKE_VERSION VERSION_LESS 3.0 AND TBB_FOUND)
add_library(TBB::tbb SHARED IMPORTED)
set_target_properties(TBB::tbb PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${TBB_INCLUDE_DIRS}
IMPORTED_LOCATION ${TBB_LIBRARIES})
if(TBB_LIBRARIES_RELEASE AND TBB_LIBRARIES_DEBUG)
set_target_properties(TBB::tbb PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>: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::tbb PROPERTIES IMPORTED_LOCATION ${TBB_LIBRARIES_RELEASE})
else()
set_target_properties(TBB::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()
finally it find the TBB library and all the variables in the cmake file were valued, but it gave some new errors after the “-- Configuring done (1.3s)” line:
/media/liusheng/Programs/Programs/jetbrains/clion/clion-2023.2/ubuntu/bin/cmake/linux/x64/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/media/liusheng/Programs/Programs/jetbrains/clion/clion-2023.2/ubuntu/bin/ninja/linux/x64/ninja -G Ninja -S /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD -B /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/cmake-build-debug
-- Found Boost: /usr/include (found version "1.74.0")
-- Disabling boost-provided cmake config
-- Found Boost: /usr/include (found version "1.74.0") found components: python310
-- Found Jinja2
FindTBB.cmakeDirs Initialization
TBB_INCLUDE_DIRS (line 126): /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include
TBB_DEFAULT_SEARCH_DIR : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/
TBB_LIB_PATH_SUFFIX : lib/intel64/gcc4.8/
TBB_LIB_PATH_SUFFIX : lib/intel64/gcc4.8/;lib
TBB_INCLUDE_DIRS : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include
TBB_INCLUDE_DIR : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/
TBB_INCLUDE_DIRS : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include
TBB_VERSION : 2020.3
TBB_SEARCH_COMPOMPONENTS : tbb_preview;tbbmalloc_proxy;tbbmalloc;tbb
TBB_FIND_COMPONENTS : tbb
_comp : tbb
TBB_tbb_LIBRARY_RELEASE : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/lib/intel64/gcc4.8/libtbb.so
TBB_LIBRARY : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/
TBB_tbb_LIBRARY_DEBUG : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/lib/intel64/gcc4.8/libtbb_debug.so
TBB_LIBRARY : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/
_comp : tbb
TBB_tbb_FOUND : TRUE
TBB_BUILD_TYPE : DEBUG
TBB_LIBRARIES_ :
TBB_LIBRARIES_ : TBB_LIBRARIES_
TBB_DEFINITIONS_RELEASE :
TBB_LIBRARIES_RELEASE : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/lib/intel64/gcc4.8/libtbb.so
TBB_DEFINITIONS_DEBUG : -DTBB_USE_DEBUG=1
TBB_LIBRARIES_DEBUG : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/lib/intel64/gcc4.8/libtbb_debug.so
TBB_DEFINITIONS : -DTBB_USE_DEBUG=1
TBB_LIBRARIES : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/lib/intel64/gcc4.8/libtbb_debug.so
TBB_VERSION : 2020.3
-- FindTBB.cmake : Found TBB
-- Using default system allocator because PXR_MALLOC_LIBRARY is unspecified
CMake Deprecation Warning at cmake/defaults/Packages.cmake:232 (cmake_policy):
The OLD behavior for policy CMP0072 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:23 (include)
OPENSUBDIV_INCLUDE_DIR : /usr/local/include
OPENSUBDIV_LIBRARIES : /usr/local/lib/libosdCPU.so;/usr/local/lib/libosdGPU.so
OPENSUBDIV_VERSION : 3.6.0
-- Found PySide6: with /usr/bin/python3.10, will use /usr/local/bin/pyside6-uic for pyside-uic binary
-- Found PyOpenGL
-- C++ namespace configured to (external) pxr, (internal) pxrInternal_v0_24
-- Skipping validation of gf generated code because PXR_VALIDATE_GENERATED_CODE=OFF
-- Skipping validation of sdf generated code because PXR_VALIDATE_GENERATED_CODE=OFF
pcp/CMakeLists.txt : Boost_INCLUDE_DIRS : /usr/include
pcp/CMakeLists.txt : TBB_INCLUDE_DIRS : /media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include
-- Skipping alembic-based usddiff tests because PXR_BUILD_ALEMBIC_PLUGIN=OFF
-- Skipping Draco-based usddiff tests because PXR_BUILD_DRACO_PLUGIN=OFF
-- Skipping hgiMetal because PXR_BUILD_GPU_SUPPORT or PXR_ENABLE_METAL_SUPPORT is OFF
-- Skipping hgiVulkan because PXR_BUILD_GPU_SUPPORT or PXR_ENABLE_VULKAN_SUPPORT is OFF
-- Configuring done (1.3s)
CMake Error in pxr/base/tf/CMakeLists.txt:
Target "tf" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/base/trace/CMakeLists.txt:
Target "trace" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/base/work/CMakeLists.txt:
Target "work" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/base/plug/CMakeLists.txt:
Target "plug" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/base/vt/CMakeLists.txt:
Target "vt" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/usd/pcp/CMakeLists.txt:
Target "pcp" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/usd/usd/CMakeLists.txt:
Target "usd" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/usd/usdGeom/CMakeLists.txt:
Target "usdGeom" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/usd/usdSkel/CMakeLists.txt:
Target "usdSkel" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/usd/usdPhysics/CMakeLists.txt:
Target "usdPhysics" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/imaging/hd/CMakeLists.txt:
Target "hd" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/imaging/hdGp/CMakeLists.txt:
Target "hdGp" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/usdImaging/usdImaging/CMakeLists.txt:
Target "usdImaging" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/usdImaging/usdImagingGL/CMakeLists.txt:
Target "usdImagingGL" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
CMake Error in pxr/usdImaging/usdRiPxrImaging/CMakeLists.txt:
Target "usdRiPxrImaging" INTERFACE_INCLUDE_DIRECTORIES property contains
path:
"/media/liusheng/Programs/Programs/libs/OpenUSD/PixarAnimationStudios/master/OpenUSD/third_party/oneTBB/tbb-2020.3-linux/tbb/include"
which is prefixed in the source directory.
-- Generating done (19.3s)
CMake Generate step failed. Build files cannot be regenerated correctly.
[Failed to reload]
so, what does that mean ? And how to fix that issue ? Much appreciated!