Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CMake+Vcpkg] Could NOT find Python (missing: Python_LIBRARIES Development Development.Module Development.Embed) (found version "3.11.8") #3405

Open
s-dakshin opened this issue Nov 6, 2024 · 11 comments
Labels
build Build-related issue/PR

Comments

@s-dakshin
Copy link

Description of Issue

Facing issue when building USD with Python tools on Windows 10, the same build seems to pass through on Windows 11. Getting USD through Vcpkg and building it using CMake for C++ project.

config-x64-windows-vs2022-out.log

FAILED: ../CMakeCache.txt 
"C:/Jenk/workspace/vcpkg_4e08971/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/bin/cmake.exe" -E chdir ".." "C:/Jenk/workspace/vcpkg_4e08971/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/bin/cmake.exe" "C:/Jenk/workspace/vcpkg_4e08971/buildtrees/usd/src/v23.05-aec4b32f39.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/Jenk/workspace/vcpkg_4e08971/packages/usd_x64-windows-vs2022" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DPXR_BUILD_ALEMBIC_PLUGIN:BOOL=OFF" "-DPXR_BUILD_EMBREE_PLUGIN:BOOL=OFF" "-DPXR_BUILD_IMAGING:BOOL=OFF" "-DPXR_BUILD_MONOLITHIC:BOOL=OFF" "-DPXR_BUILD_TESTS:BOOL=OFF" "-DPXR_BUILD_USD_IMAGING:BOOL=OFF" "-DPXR_BUILD_EXAMPLES:BOOL=OFF" "-DPXR_BUILD_TUTORIALS:BOOL=OFF" "-DPXR_ENABLE_PYTHON_SUPPORT:BOOL=ON" "-DPXR_BUILD_USD_TOOLS:BOOL=ON" "-DCMAKE_MAKE_PROGRAM=C:/Jenk/workspace/vcpkg_4e08971/downloads/tools/ninja/1.10.2-windows/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Jenk/workspace/vcpkg_4e08971/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows-vs2022" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Jenk/workspace/vcpkg_4e08971/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Jenk/workspace/vcpkg_4e08971" "-D_VCPKG_INSTALLED_DIR=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF"
-- The C compiler identification is MSVC 19.36.32538.0
-- The CXX compiler identification is MSVC 19.36.32538.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting PXR_BUILD_USDVIEW=OFF because PXR_BUILD_USD_IMAGING=OFF
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Found Boost: C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/boost/BoostConfig.cmake (found version "1.85.0")
-- Found Python3: C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/tools/python3/python.exe (found version "3.11.8") found components: Interpreter Development Development.Module Development.Embed
CMake Error at C:/Jenk/workspace/vcpkg_4e08971/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python (missing: Python_LIBRARIES Development
  Development.Module Development.Embed) (found version "3.11.8")
Call Stack (most recent call first):
  C:/Jenk/workspace/vcpkg_4e08971/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  C:/Jenk/workspace/vcpkg_4e08971/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/share/cmake-3.29/Modules/FindPython.cmake:616 (find_package_handle_standard_args)
  C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/python/vcpkg-cmake-wrapper.cmake:67 (_find_package)
  C:/Jenk/workspace/vcpkg_4e08971/scripts/buildsystems/vcpkg.cmake:813 (include)
  C:/Jenk/workspace/vcpkg_4e08971/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/boost_python311/boost_python311-config.cmake:68 (find_dependency)
  C:/Jenk/workspace/vcpkg_4e08971/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
  C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/boost/BoostConfig.cmake:67 (find_package)
  C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/boost/BoostConfig.cmake:128 (boostcfg_find_component)
  C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/boost/vcpkg-cmake-wrapper.cmake:3 (_find_package)
  C:/Jenk/workspace/vcpkg_4e08971/scripts/buildsystems/vcpkg.cmake:813 (include)
  C:/Jenk/workspace/vcpkg_4e08971/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/share/cmake-3.29/Modules/FindBoost.cmake:594 (find_package)
  C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/boost/vcpkg-cmake-wrapper.cmake:3 (_find_package)
  C:/Jenk/workspace/vcpkg_4e08971/scripts/buildsystems/vcpkg.cmake:813 (include)
  cmake/defaults/Packages.cmake:132 (find_package)
  CMakeLists.txt:23 (include)


-- Configuring incomplete, errors occurred!
ninja: build stopped: subcommand failed.

vcpkg command log -

C:\Jenk\workspace\vcpkg_4e08971>.\vcpkg install --x-manifest-root=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes --x-install-root=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed --triplet=x64-windows-vs2022 --host-triplet=x64-windows-vs2022
Loading dependency information for 122 packages...
Detecting compiler hash for triplet x64-windows-vs2022...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe
The following packages will be built and installed:
    usd:[email protected]#5 -- C:\Jenk\workspace\e_GHE_sd_USDSILTesting_WithFixes\./External/vcpkgOverlay/ports\usd
Restored 0 package(s) from C:\Users\batserve\AppData\Local\vcpkg\archives in 134 us. Use --debug to see more details.
Installing 1/1 usd:[email protected]#5...
Building usd:[email protected]#5...
C:\Jenk\workspace\e_GHE_sd_USDSILTesting_WithFixes\External\vcpkgOverlay\triplets\x64-windows-vs2022.cmake: info: loaded overlay triplet from here
C:\Jenk\workspace\e_GHE_sd_USDSILTesting_WithFixes\./External/vcpkgOverlay/ports\usd: info: installing overlay port from here
-- The usd port does not work with the version of Threading Building Blocks (tbb) currently chosen by vcpkg's baselines,
and does not expect to be updated to work with current versions soon. See
https://github.com/PixarAnimationStudios/USD/issues/1600

If you must use this port in your project, pin a version of tbb of 2020_U3 or older via a manifest file.
See https://vcpkg.io/en/docs/examples/versioning.getting-started.html for instructions.

-- Using cached PixarAnimationStudios-OpenUSD-v23.05.tar.gz.
-- Cleaning sources at C:/Jenk/workspace/vcpkg_4e08971/buildtrees/usd/src/v23.05-aec4b32f39.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Jenk/workspace/vcpkg_4e08971/downloads/PixarAnimationStudios-OpenUSD-v23.05.tar.gz
-- Applying patch fix_build-location.patch
-- Applying patch enable_if_fix.patch
-- Using source at C:/Jenk/workspace/vcpkg_4e08971/buildtrees/usd/src/v23.05-aec4b32f39.clean
-- Configuring x64-windows-vs2022
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: C:/Jenk/workspace/vcpkg_4e08971/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
    Working Directory: C:/Jenk/workspace/vcpkg_4e08971/buildtrees/usd/x64-windows-vs2022-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\Jenk\workspace\vcpkg_4e08971\buildtrees\usd\config-x64-windows-vs2022-rel-CMakeCache.txt.log
      C:\Jenk\workspace\vcpkg_4e08971\buildtrees\usd\config-x64-windows-vs2022-rel-CMakeConfigureLog.yaml.log
      C:\Jenk\workspace\vcpkg_4e08971\buildtrees\usd\config-x64-windows-vs2022-out.log

Call Stack (most recent call first):
  C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:269 (vcpkg_execute_required_process)
  C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/External/vcpkgOverlay/ports/usd/portfile.cmake:57 (vcpkg_cmake_configure)
  scripts/ports.cmake:192 (include)


error: building usd:x64-windows-vs2022 failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle usd:x64-windows-vs2022: 16 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+usd
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[usd]+Build+error+on+x64-windows-vs2022&body=Copy+issue+body+from+C%3A%2FJenk%2Fworkspace%2Fe_GHE_sd_USDSILTesting_WithFixes%2F_build%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md

Steps to Reproduce

  1. Get USD through vcpkg in manifest mode
  2. Turn on -DPXR_ENABLE_PYTHON_SUPPORT:BOOL=ON and -DPXR_BUILD_USD_TOOLS:BOOL=ON
  3. Build using CMake

System Information (OS, Hardware)

OS - Windows 10, x64, MINGW

Package Versions

vcpkg package management program version 2024-08-01-fd884a0d390d12783076341bd43d77c3a6a15658
Cmake - 3.29.2
Triplet x64-windows-vs2022...
Compiler found - 14.36.32532/bin/Hostx64/x64/cl.exe
USD version - usd:[email protected]#5

Build Flags

-DPXR_ENABLE_PYTHON_SUPPORT:BOOL=ON and -DPXR_BUILD_USD_TOOLS:BOOL=ON

@dgovil
Copy link
Collaborator

dgovil commented Nov 6, 2024

I don't believe the vcpkg build supports Python out of the box.

You'd likely need to provide the Python variables to CMake as well so it knows what Python executable to run.

I'm just copying from the other issue so you'd need to change these values to what you have on your system.

-DPython3_EXECUTABLE="/home/mb230/anaconda3/envs/test/bin/python3" -DPython3_LIBRARY="/home/mb230/anaconda3/envs/test/lib/libpython3.10.so" -DPython3_INCLUDE_DIR="/home/mb230/anaconda3/envs/test/include/python3.10" 

@s-dakshin
Copy link
Author

I don't believe the vcpkg build supports Python out of the box.

You'd likely need to provide the Python variables to CMake as well so it knows what Python executable to run.

I'm just copying from the other issue so you'd need to change these values to what you have on your system.

-DPython3_EXECUTABLE="/home/mb230/anaconda3/envs/test/bin/python3" -DPython3_LIBRARY="/home/mb230/anaconda3/envs/test/lib/libpython3.10.so" -DPython3_INCLUDE_DIR="/home/mb230/anaconda3/envs/test/include/python3.10" 

Thanks for the suggestion, couple of follow ups -

  1. It seems to build out of the box without setting variables on windows 11 but not in windows 10, would you happen to know if this can be related to OSxCmake combination?
  2. Could you share a link to the other issue you mentioned if you have it handy?

@s-dakshin
Copy link
Author

On further investigation - I am getting python3 from vcpkg as well, I don't explicitly use the system python. I checked for some CMake variables, and they all seem to be set.

config-x64-windows-vs2022-rel-CMakeCache.txt.log -

//Generate Python documentation
PXR_BUILD_PYTHON_DOCUMENTATION:BOOL=OFF

//Enable Python based components for USD
PXR_ENABLE_PYTHON_SUPPORT:BOOL=ON

//Build with debug python
PXR_USE_DEBUG_PYTHON:BOOL=OFF

//Path to a program.
Python3_EXECUTABLE:FILEPATH=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/tools/python3/python.exe

//Path to a file.
Python3_INCLUDE_DIR:PATH=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/include/python3.11

//Path to a program.
Python_EXECUTABLE:FILEPATH=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/tools/python3/python.exe

//Path to a file.
Python_INCLUDE_DIR:PATH=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/include/python3.11

//The directory containing a CMake configuration file for boost_python311.
boost_python311_DIR:PATH=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/boost_python311

//Details about finding Boost
FIND_PACKAGE_MESSAGE_DETAILS_Boost:INTERNAL=[C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/share/boost/BoostConfig.cmake][c ][v1.85.0()]
//Details about finding Python3
FIND_PACKAGE_MESSAGE_DETAILS_Python3:INTERNAL=[C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/tools/python3/python.exe][optimized;C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/lib/python311.lib;debug;C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/debug/lib/python311_d.lib][C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/include/python3.11][cfound components: Interpreter Development Development.Module Development.Embed ][v3.11.8()]

//Compiler reason failure
_Python3_Compiler_REASON_FAILURE:INTERNAL=
_Python3_DEVELOPMENT_EMBED_SIGNATURE:INTERNAL=c659e6d36c616d11438e93c3ffe5e090
_Python3_DEVELOPMENT_MODULE_SIGNATURE:INTERNAL=c659e6d36c616d11438e93c3ffe5e090
//Development reason failure
_Python3_Development_REASON_FAILURE:INTERNAL=
_Python3_EXECUTABLE:INTERNAL=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/tools/python3/python.exe
_Python3_INCLUDE_DIR:INTERNAL=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/include/python3.11
//Python3 Properties
_Python3_INTERPRETER_PROPERTIES:INTERNAL=Python;3;11;8;64;;cp311-win_amd64;;C:\Jenk\workspace\e_GHE_sd_USDSILTesting_WithFixes\_build\vcpkg_installed\x64-windows-vs2022\tools\python3\Lib;C:\Jenk\workspace\e_GHE_sd_USDSILTesting_WithFixes\_build\vcpkg_installed\x64-windows-vs2022\tools\python3\Lib;C:\Jenk\workspace\e_GHE_sd_USDSILTesting_WithFixes\_build\vcpkg_installed\x64-windows-vs2022\tools\python3\Lib\site-packages;C:\Jenk\workspace\e_GHE_sd_USDSILTesting_WithFixes\_build\vcpkg_installed\x64-windows-vs2022\tools\python3\Lib\site-packages
_Python3_INTERPRETER_SIGNATURE:INTERNAL=2727421381ca9e835a7611518d621e30
//Path to a library.
_Python3_LIBRARY_DEBUG:INTERNAL=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/debug/lib/python311_d.lib
//Path to a library.
_Python3_LIBRARY_RELEASE:INTERNAL=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/lib/python311.lib
//NumPy reason failure
_Python3_NumPy_REASON_FAILURE:INTERNAL=
//Path to a library.
_Python3_RUNTIME_LIBRARY_DEBUG:INTERNAL=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/debug/bin/python311_d.dll
//Path to a library.
_Python3_RUNTIME_LIBRARY_RELEASE:INTERNAL=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/bin/python311.dll
//Path to a program.
_Python_CONFIG:INTERNAL=_Python_CONFIG-NOTFOUND
//Compiler reason failure
_Python_Compiler_REASON_FAILURE:INTERNAL=
//Development reason failure
_Python_Development_REASON_FAILURE:INTERNAL=
_Python_INCLUDE_DIR:INTERNAL=C:/Jenk/workspace/e_GHE_sd_USDSILTesting_WithFixes/_build/vcpkg_installed/x64-windows-vs2022/include/python3.11
//Interpreter reason failure
_Python_Interpreter_REASON_FAILURE:INTERNAL=
//Path to a library.
_Python_LIBRARY_RELEASE:INTERNAL=_Python_LIBRARY_RELEASE-NOTFOUND
//NumPy reason failure
_Python_NumPy_REASON_FAILURE:INTERNAL=

@asluk asluk added the build Build-related issue/PR label Nov 6, 2024
@dgovil
Copy link
Collaborator

dgovil commented Nov 6, 2024

For the other issue, I mean the issue you initially posted on #3401 . I was just copying the CMake flags out from there.

@asluk you're more familiar with the vcpkg setup. Any ideas? It seems like the VCPKG Python build is failing to get the Devel libs for it.

@asluk
Copy link
Collaborator

asluk commented Nov 7, 2024

We generally build with a python install that's outside of the vcpkg setup, i.e., c:\path\to\my\python, and invoke build_usd.py with that. @pmolodo and @tylerm-nv might know more.

@jesschimein
Copy link
Contributor

Filed as internal issue #USD-10409

@pmolodo
Copy link
Contributor

pmolodo commented Nov 7, 2024

We generally build with a python install that's outside of the vcpkg setup, i.e., c:\path\to\my\python, and invoke build_usd.py with that. @pmolodo and @tylerm-nv might know more.

IIRC, we invoke build_usd.py with it, AND pass the various python cmake vars.

(I think we first tried just invoking build_usd.py, but still ran into some issues with some interpreters, like those installed via venv. Both may not be required for most use cases... or even for our common use cases. But it also doesn't hurt...)

@asluk
Copy link
Collaborator

asluk commented Nov 8, 2024

Thanks @pmolodo -- when you get a chance, can you copy/paste the build_usd.py and cmake command lines that get generated by our internal usd-ci?

@s-dakshin
Copy link
Author

I think I might have found the reason for the issue. I am getting python 3.11 from vcpkg, but the system was pre-installed with python 3.12 which seems to be having conflicting environment variables. I was able to solve the issue in two ways -

  1. Uninstalling any python on the machine
  2. Installing the same version of python as vcpkg

Thanks to all for looking into this issue, but this doesn't seem to be a USD+Python issue. Though it would be nice to have an override parameter that can explicitly look for python to build for USD - in this case to look into the vcpkg python.

@dgovil
Copy link
Collaborator

dgovil commented Nov 12, 2024

Both the CMake and the build_usd.py allow for passing in information on how to find Python. I'm not sure who maintains the vcpkg package though or how vcpkg exposes overrides.

@s-dakshin
Copy link
Author

s-dakshin commented Nov 12, 2024

That would be nice to have for vcpkg, the only options I see are -

-DPXR_BUILD_ALEMBIC_PLUGIN:BOOL=OFF
-DPXR_BUILD_EMBREE_PLUGIN:BOOL=OFF
-DPXR_BUILD_IMAGING:BOOL=OFF
-DPXR_BUILD_MONOLITHIC:BOOL=OFF
-DPXR_BUILD_TESTS:BOOL=OFF
-DPXR_BUILD_USD_IMAGING:BOOL=OFF
-DPXR_BUILD_EXAMPLES:BOOL=OFF
-DPXR_BUILD_TUTORIALS:BOOL=OFF
-DPXR_ENABLE_PYTHON_SUPPORT:BOOL=ON
-DPXR_BUILD_USD_TOOLS:BOOL=ON

The problem is that to build USD Tools->Python and I don't see anywhere we can set it explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build-related issue/PR
Projects
None yet
Development

No branches or pull requests

5 participants