PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
6.14k stars 1.22k forks source link

C++17 required ‘IrregularPatchSharedPtr’ in namespace ‘OpenSubdiv::v3_5_0::Bfr::internal’ does not name a type #2404

Closed samhodge closed 1 year ago

samhodge commented 1 year ago

Description of Issue

Error: ‘IrregularPatchSharedPtr’ in namespace ‘OpenSubdiv::v3_5_0::Bfr::internal’ does not name a type used C++14 when C++17 is required??

Steps to Reproduce

  1. Install gcc 11.2 and Python 3.9 with conda
  2. Install PySide 2 and PyOpenGL with pip
  3. python USD/build_scripts/build_usd.py $PWD/build/USD --prman --prman-location /opt/pixar/RenderManProServer-25.0/ --opencolorio --openimageio --use-cxx11-abi=0

System Information (OS, Hardware)

CentOS 7.9.2009 conda 4.13.0 Python 3.9.16 x86_64-conda-linux-gnu-cc (Anaconda gcc) 11.2.0 x86_64-conda-linux-gnu-g++ (Anaconda gcc) 11.2.0

relates to https://github.com/PixarAnimationStudios/USD/issues/2081

Package Versions

Build Flags

$PWD/build/USD --prman --prman-location /opt/pixar/RenderManProServer-25.0/ --opencolorio --openimageio --use-cxx11-abi=0

samhodge commented 1 year ago

Excuse the noise, the conda environment sets a number of CXX and CXXFLAGS arguements that cause the error.

I am trying now under Unbuntu 20.04 with system gcc 9.4 and conda for Python 3.9 only and things are working out a lot better.