LumaPictures / usd-qt

Reusable Qt Components for Pixar's USD
Other
153 stars 40 forks source link

windows build link error #24

Closed 1xinghuan closed 6 years ago

1xinghuan commented 6 years ago

I'm trying to build the luma outliner on windows. I used the latest dev package and there are lots of link errors when first building, I added some libs(pcp.lib arch.lib vt.lib) into link dependences but there are still 15 link errors:

2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: virtual cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::~SdfLayerStateDelegateBase(void)" (??1SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@UEAA@XZ) referenced in function "public: virtual void * cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::`scalar deleting destructor'(unsigned int)" (??_GUsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@UEAAPEAXI@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::SetField(class pxrInternal_v0_18pxrReserved::SdfAbstractDataSpecId const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::VtValue const &,class pxrInternal_v0_18pxrReserved::VtValue const *)" (?SetField@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfAbstractDataSpecId@2@AEBVTfToken@2@AEBVVtValue@2@PEBV52@@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertSetField(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::VtValue const &)" (?_InvertSetField@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@AEBVTfToken@2@AEBVVtValue@2@@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::SetFieldDictValueByKey(class pxrInternal_v0_18pxrReserved::SdfAbstractDataSpecId const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::VtValue const &,class pxrInternal_v0_18pxrReserved::VtValue const *)" (?SetFieldDictValueByKey@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfAbstractDataSpecId@2@AEBVTfToken@2@1AEBVVtValue@2@PEBV52@@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertSetFieldDictValueByKey(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::VtValue const &)" (?_InvertSetFieldDictValueByKey@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@AEBVTfToken@2@1AEBVVtValue@2@@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::SetTimeSample(class pxrInternal_v0_18pxrReserved::SdfAbstractDataSpecId const &,double,class pxrInternal_v0_18pxrReserved::VtValue const &)" (?SetTimeSample@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfAbstractDataSpecId@2@NAEBVVtValue@2@@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertSetTimeSample(class pxrInternal_v0_18pxrReserved::SdfPath const &,double,class pxrInternal_v0_18pxrReserved::VtValue const &)" (?_InvertSetTimeSample@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@NAEBVVtValue@2@@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::CreateSpec(class pxrInternal_v0_18pxrReserved::SdfPath const &,enum pxrInternal_v0_18pxrReserved::SdfSpecType,bool)" (?CreateSpec@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfPath@2@W4SdfSpecType@2@_N@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertDeleteSpec(class pxrInternal_v0_18pxrReserved::SdfPath const &,bool,enum pxrInternal_v0_18pxrReserved::SdfSpecType,class pxrInternal_v0_18pxrReserved::TfRefPtr<class pxrInternal_v0_18pxrReserved::SdfData> const &)" (?_InvertDeleteSpec@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@_NW4SdfSpecType@2@AEBV?$TfRefPtr@VSdfData@pxrInternal_v0_18pxrReserved@@@2@@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::DeleteSpec(class pxrInternal_v0_18pxrReserved::SdfPath const &,bool)" (?DeleteSpec@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfPath@2@_N@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertCreateSpec(class pxrInternal_v0_18pxrReserved::SdfPath const &,bool)" (?_InvertCreateSpec@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@_N@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::MoveSpec(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::SdfPath const &)" (?MoveSpec@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfPath@2@0@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertMoveSpec(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::SdfPath const &)" (?_InvertMoveSpec@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@0@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::PushChild(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::TfToken const &)" (?PushChild@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfPath@2@AEBVTfToken@2@1@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertPopTokenChild(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::TfToken const &)" (?_InvertPopTokenChild@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@AEBVTfToken@2@1@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::PushChild(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::SdfPath const &)" (?PushChild@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfPath@2@AEBVTfToken@2@0@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertPopPathChild(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::SdfPath const &)" (?_InvertPopPathChild@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@AEBVTfToken@2@0@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::PopChild(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::TfToken const &)" (?PopChild@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfPath@2@AEBVTfToken@2@1@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertPushTokenChild(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::TfToken const &)" (?_InvertPushTokenChild@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@AEBVTfToken@2@1@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "public: void cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::PopChild(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::SdfPath const &)" (?PopChild@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@QEAAXAEBVSdfPath@2@AEBVTfToken@2@0@Z) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertPushPathChild(class pxrInternal_v0_18pxrReserved::SdfPath const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::SdfPath const &)" (?_InvertPushPathChild@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@AEBVTfToken@2@0@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "protected: cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::SdfLayerStateDelegateBase(void)" (??0SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@IEAA@XZ) referenced in function "private: cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::UsdQt_UndoStateDelegate(void)" (??0UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA@XZ) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "protected: class pxrInternal_v0_18pxrReserved::TfWeakPtr cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::_GetLayer(void)const " (?_GetLayer@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@IEBA?AV?$TfWeakPtr@VSdfLayer@pxrInternal_v0_18pxrReserved@@@2@XZ) referenced in function "private: virtual void cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_OnDeleteSpec(class pxrInternal_v0_18pxrReserved::SdfPath const &,bool)" (?_OnDeleteSpec@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@EEAAXAEBVSdfPath@2@_N@Z) 2>undoStateDelegate.obj : error LNK2019: unresolved external symbol "protected: class pxrInternal_v0_18pxrReserved::TfWeakPtr cdecl pxrInternal_v0_18pxrReserved::SdfLayerStateDelegateBase::_GetLayerData(void)const " (?_GetLayerData@SdfLayerStateDelegateBase@pxrInternal_v0_18pxrReserved@@IEBA?AV?$TfWeakPtr@VSdfAbstractData@pxrInternal_v0_18pxrReserved@@@2@XZ) referenced in function "private: bool cdecl pxrInternal_v0_18pxrReserved::UsdQt_UndoStateDelegate::_InvertDeleteSpec(class pxrInternal_v0_18pxrReserved::SdfPath const &,bool,enum pxrInternal_v0_18pxrReserved::SdfSpecType,class pxrInternal_v0_18pxrReserved::TfRefPtr const &)" (?_InvertDeleteSpec@UsdQt_UndoStateDelegate@pxrInternal_v0_18pxrReserved@@AEAA_NAEBVSdfPath@2@_NW4SdfSpecType@2@AEBV?$TfRefPtr@VSdfData@pxrInternal_v0_18pxrReserved@@@2@@Z) 2>undoStateDelegate.obj : error LNK2001: unresolved external symbol "public: virtual bool cdecl pxrInternal_v0_18pxrReserved::SdfData::Has(class pxrInternal_v0_18pxrReserved::SdfAbstractDataSpecId const &,class pxrInternal_v0_18pxrReserved::TfToken const &,class pxrInternal_v0_18pxrReserved::SdfAbstractDataValue *)const " (?Has@SdfData@pxrInternal_v0_18pxrReserved__@@UEBA_NAEBVSdfAbstractDataSpecId@2@AEBVTfToken@2@PEAVSdfAbstractDataValue@2@@Z)

They are all from undoStateDelegate. I'm using USD18.09 .

1xinghuan commented 6 years ago

I ues the latest USD dev package and build successfully.

EricHurdFVL commented 5 years ago

I have this same issue, and it was not solved by the steps 1xinghuan executed.