- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi All,
I installed mediaSDK2014 for clients on my laptop which has i5-core of 3rd generation with windows7 OS and Visual Studio 2010 SP1 package.
I am getting following errors while building sample decode example. Please help me to find out what i am missing and how do i correct it .
decode_render.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXInit referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::Init(int,union mfxVersion *)" (?Init@MFXVideoSession@@UAE?AW4mfxStatus@@HPATmfxVersion@@@Z)
2>sample_common.lib(sample_utils.obj) : error LNK2001: unresolved external symbol _MFXInit
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXClose referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::Close(void)" (?Close@MFXVideoSession@@UAE?AW4mfxStatus@@XZ)
2>sample_common.lib(sample_utils.obj) : error LNK2001: unresolved external symbol _MFXClose
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXQueryIMPL referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::QueryIMPL(int *)" (?QueryIMPL@MFXVideoSession@@UAE?AW4mfxStatus@@PAH@Z)
2>sample_common.lib(sample_utils.obj) : error LNK2001: unresolved external symbol _MFXQueryIMPL
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXQueryVersion referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::QueryVersion(union mfxVersion *)" (?QueryVersion@MFXVideoSession@@UAE?AW4mfxStatus@@PATmfxVersion@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXJoinSession referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::JoinSession(struct _mfxSession *)" (?JoinSession@MFXVideoSession@@UAE?AW4mfxStatus@@PAU_mfxSession@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXDisjoinSession referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::DisjoinSession(void)" (?DisjoinSession@MFXVideoSession@@UAE?AW4mfxStatus@@XZ)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXCloneSession referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::CloneSession(struct _mfxSession * *)" (?CloneSession@MFXVideoSession@@UAE?AW4mfxStatus@@PAPAU_mfxSession@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXSetPriority referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::SetPriority(enum mfxPriority)" (?SetPriority@MFXVideoSession@@UAE?AW4mfxStatus@@W4mfxPriority@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXGetPriority referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::GetPriority(enum mfxPriority *)" (?GetPriority@MFXVideoSession@@UAE?AW4mfxStatus@@PAW4mfxPriority@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoCORE_SetBufferAllocator referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::SetBufferAllocator(struct mfxBufferAllocator *)" (?SetBufferAllocator@MFXVideoSession@@UAE?AW4mfxStatus@@PAUmfxBufferAllocator@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoCORE_SetFrameAllocator referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::SetFrameAllocator(struct mfxFrameAllocator *)" (?SetFrameAllocator@MFXVideoSession@@UAE?AW4mfxStatus@@PAUmfxFrameAllocator@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoCORE_SetHandle referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::SetHandle(enum mfxHandleType,void *)" (?SetHandle@MFXVideoSession@@UAE?AW4mfxStatus@@W4mfxHandleType@@PAX@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoCORE_GetHandle referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::GetHandle(enum mfxHandleType,void * *)" (?GetHandle@MFXVideoSession@@UAE?AW4mfxStatus@@W4mfxHandleType@@PAPAX@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoCORE_SyncOperation referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoSession::SyncOperation(struct _mfxSyncPoint *,unsigned int)" (?SyncOperation@MFXVideoSession@@UAE?AW4mfxStatus@@PAU_mfxSyncPoint@@I@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol "class IGFXS3DControl * __cdecl CreateIGFXS3DControl(void)" (?CreateIGFXS3DControl@@YAPAVIGFXS3DControl@@XZ) referenced in function "public: virtual enum mfxStatus __thiscall CDecodingPipeline::Init(struct sInputParams *)" (?Init@CDecodingPipeline@@UAE?AW4mfxStatus@@PAUsInputParams@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_Query referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::Query(struct mfxVideoParam *,struct mfxVideoParam *)" (?Query@MFXVideoDECODE@@UAE?AW4mfxStatus@@PAUmfxVideoParam@@0@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_DecodeHeader referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::DecodeHeader(struct mfxBitstream *,struct mfxVideoParam *)" (?DecodeHeader@MFXVideoDECODE@@UAE?AW4mfxStatus@@PAUmfxBitstream@@PAUmfxVideoParam@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_QueryIOSurf referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::QueryIOSurf(struct mfxVideoParam *,struct mfxFrameAllocRequest *)" (?QueryIOSurf@MFXVideoDECODE@@UAE?AW4mfxStatus@@PAUmfxVideoParam@@PAUmfxFrameAllocRequest@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_Init referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::Init(struct mfxVideoParam *)" (?Init@MFXVideoDECODE@@UAE?AW4mfxStatus@@PAUmfxVideoParam@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_Reset referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::Reset(struct mfxVideoParam *)" (?Reset@MFXVideoDECODE@@UAE?AW4mfxStatus@@PAUmfxVideoParam@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_Close referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::Close(void)" (?Close@MFXVideoDECODE@@UAE?AW4mfxStatus@@XZ)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_GetVideoParam referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::GetVideoParam(struct mfxVideoParam *)" (?GetVideoParam@MFXVideoDECODE@@UAE?AW4mfxStatus@@PAUmfxVideoParam@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_GetDecodeStat referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::GetDecodeStat(struct mfxDecodeStat *)" (?GetDecodeStat@MFXVideoDECODE@@UAE?AW4mfxStatus@@PAUmfxDecodeStat@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_GetPayload referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::GetPayload(unsigned __int64 *,struct mfxPayload *)" (?GetPayload@MFXVideoDECODE@@UAE?AW4mfxStatus@@PA_KPAUmfxPayload@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_SetSkipMode referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::SetSkipMode(enum mfxSkipMode)" (?SetSkipMode@MFXVideoDECODE@@UAE?AW4mfxStatus@@W4mfxSkipMode@@@Z)
2>pipeline_decode.obj : error LNK2019: unresolved external symbol _MFXVideoDECODE_DecodeFrameAsync referenced in function "public: virtual enum mfxStatus __thiscall MFXVideoDECODE::DecodeFrameAsync(struct mfxBitstream *,struct mfxFrameSurface1 *,struct mfxFrameSurface1 * *,struct _mfxSyncPoint * *)" (?DecodeFrameAsync@MFXVideoDECODE@@UAE?AW4mfxStatus@@PAUmfxBitstream@@PAUmfxFrameSurface1@@PAPAU4@PAPAU_mfxSyncPoint@@@Z)
2>..\_build\Win32\Debug\sample_decode.exe : fatal error LNK1120: 26 unresolved externals
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:04.16
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
HI,
It seems you are not finding the functions from Media SDK library when linking.
When you installed the "MediaSDK 2014 for Clients" package, it should have created a global environment variable called INTELMEDIASDKROOT. You may need to reboot your system and/or re-launch Visual Studio for environment to take affect.
If you still have issue, can you open the Property Pages of the "sample_common" project and examine the "Configuration Properties->C/C++->Command Line" that your system is using.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Thanks Tony for your reply.
I tried setting environment variable for INTELMEDIASDKROOT and i can see that it is in environment variable list.
I rebooted the machine and restarted the Visual studio , still no luck with problem i described.
Please help .
Regards
Vinay
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I tried with x64 mode of building the sample code and found one link error:
2>LINK : fatal error LNK1181: cannot open input file 'libmfx.lib'
Not sure, why would it behave differently between win32 and x64 modes.
Regards
Vinay
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
After adding libmfx.lib path from x64 folder , i am able to build only in x64 mode.
What should i do to get this built for win32 ?
Please advice.
