Skip to content

fatal error at GetCXXRecordDclFromBaseType in Parser.cpp #1750

Open
@r-schmitt

Description

@r-schmitt
Brief Description

We are attempting to use CppSharp to bind Pixar's USD library to C# to hopefully enable a great development environment for USD in C#

On first pass, we got about a 50% success rate, almost all the failures were here:
Parser.cpp line 884

These fatal parsing errors prevent us from generating any output, but I have unable to identify what specifically is breaking at this point. Any help identifying how we can avoid this error would be awesome! I've been very happy with what we've been able to generate successfully...

OS: Windows 10

Used headers

pxr/usd/sdf/path.h
pxr/usd/usd/prim.h
pxr/usd/usd/stage.h

these are three examples, representing a lot of core USD functionality

Used settings

DriverOptions options = driver.Options;
options.GeneratorKind = GeneratorKind.CSharp;
options.Verbose = true;
options.GenerationOutputMode = GenerationOutputMode.FilePerUnit;

Other settings
USD was exported with the cmake flag set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) which is important for getting all the mangled names exported for bindings, but not needed for these parsing errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions