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

Error building against latest dev branch: 'GfHalf' was not declared in this scope #177

Closed
pmolodo opened this issue Mar 14, 2017 · 3 comments
Assignees

Comments

@pmolodo
Copy link
Contributor

pmolodo commented Mar 14, 2017

Description of Issue

When building against a USD built from the latest dev branch (as of b8bd87c), you get this error:

include/pxr/base/vt/types.h:162:44 error: 'GfHalf' was not declared in this scope

From what I can tell, the root of the problem lies with the the pxr_shared_library / _install_headers CMake macros, which don't properly support installing PUBLIC_HEADERS into subdirectories. As a result, pxr/base/lib/gf/pxrHalf/half.h is NOT installed into pxr/base/gf/pxrHalf/half.h, but into pxr/base/gf/half.h instead, thereby clobbering pxr/base/lib/gf/half.h, which is what defines GfHalf.

Steps to Reproduce

  1. Build USD, then inspect the output include dir's pxr/base/gf/pxrHalf/half.h (or try to build against it)

System Information (OS, Hardware)

CentOS 7

Package Versions

alembic-1.5.8
boost-1.55.0
gcc-4.8.3
ilmbase-2.2.0
maya-2016.53
ptex-2.1.28
python-2.7.4
qt-4.8.6
tbb-4.3.6

Build Flags

-D PXR_BUILD_ALEMBIC_PLUGIN=TRUE
-D PXR_MAYA_TBB_BUG_WORKAROUND=TRUE
-D PXR_BUILD_MAYA_PLUGIN=FALSE
-D PXR_BUILD_KATANA_PLUGIN=FALSE
-D PXR_STRICT_BUILD_MODE=TRUE

@pmolodo
Copy link
Contributor Author

pmolodo commented Mar 14, 2017

Also, the headers are "installed" in the build directory correctly (with the pxrHalf subdir) - it's only on install that they lose the pxrHalf subdir...

@pmolodo pmolodo changed the title Error linking against latest dev branch: 'GfHalf' was not declared in this scope Error building against latest dev branch: 'GfHalf' was not declared in this scope Mar 14, 2017
@sunyab
Copy link
Contributor

sunyab commented Mar 14, 2017

Thanks for filing this @elrond79, we're looking at this now.

@sunyab sunyab assigned sunyab and pixar-oss and unassigned sunyab Mar 14, 2017
@jtran56
Copy link

jtran56 commented Mar 15, 2017

Filed as internal issue #144103.

AdamFelt pushed a commit to autodesk-forks/USD that referenced this issue Apr 16, 2024
…AnimationStudios#177)

Reason: We cache geometry for every text prim in _textGeometryCache in USD. In Fusion, when edit sketch and move cursor, the old text prims on the axes will be removed and new prims will be created, but new prim id could be same with prim id which has been used before and its geometry has been cached in textGeometryCache, so the old wrong geometry is found.
Done: Remove geometry cache if the prim is removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants