Having problems with building samples

Having problems with building samples

I have correctly linked the library files and included the header files as per the documentation,but iam getting this likner error.PLEASE guys i need your help.Below is the log file.It's in visual c++ 2005.

Linking... pipeline_decode.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl GetMSDKAdapterNumber(struct _mfxSession *)" (?GetMSDKAdapterNumber@@YAIPAU_mfxSession@@@Z) referenced in function "protected: virtual enum mfxStatus __thiscall CDecodingPipeline::CreateHWDevice(void)" (?CreateHWDevice@CDecodingPipeline@@MAE?AW4mfxStatus@@XZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "public: __thiscall CD3D9Device::CD3D9Device(void)" (??0CD3D9Device@@QAE@XZ) referenced in function "protected: virtual enum mfxStatus __thiscall CDecodingPipeline::CreateHWDevice(void)" (?CreateHWDevice@CDecodingPipeline@@MAE?AW4mfxStatus@@XZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "public: __thiscall CSmplBitstreamReader::CSmplBitstreamReader(void)" (??0CSmplBitstreamReader@@QAE@XZ) referenced in function "public: __thiscall CJPEGFrameReader::CJPEGFrameReader(void)" (??0CJPEGFrameReader@@QAE@XZ) pipeline_decode.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CSmplBitstreamReader::Reset(void)" (?Reset@CSmplBitstreamReader@@UAEXXZ) pipeline_decode.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CSmplBitstreamReader::Close(void)" (?Close@CSmplBitstreamReader@@UAEXXZ) pipeline_decode.obj : error LNK2001: unresolved external symbol "public: virtual enum mfxStatus __thiscall CSmplBitstreamReader::Init(wchar_t const *)" (?Init@CSmplBitstreamReader@@UAE?AW4mfxStatus@@PB_W@Z) pipeline_decode.obj : error LNK2001: unresolved external symbol "public: virtual enum mfxStatus __thiscall CJPEGFrameReader::ReadNextFrame(struct mfxBitstream *)" (?ReadNextFrame@CJPEGFrameReader@@UAE?AW4mfxStatus@@PAUmfxBitstream@@@Z) pipeline_decode.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CSmplBitstreamReader::~CSmplBitstreamReader(void)" (??1CSmplBitstreamReader@@UAE@XZ) referenced in function "public: virtual __thiscall CJPEGFrameReader::~CJPEGFrameReader(void)" (??1CJPEGFrameReader@@UAE@XZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "public: __thiscall SysMemFrameAllocator::SysMemFrameAllocator(void)" (??0SysMemFrameAllocator@@QAE@XZ) referenced in function "protected: virtual enum mfxStatus __thiscall CDecodingPipeline::CreateAllocator(void)" (?CreateAllocator@CDecodingPipeline@@MAE?AW4mfxStatus@@XZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "public: __thiscall D3DFrameAllocator::D3DFrameAllocator(void)" (??0D3DFrameAllocator@@QAE@XZ) referenced in function "protected: virtual enum mfxStatus __thiscall CDecodingPipeline::CreateAllocator(void)" (?CreateAllocator@CDecodingPipeline@@MAE?AW4mfxStatus@@XZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "enum mfxStatus __cdecl InitMfxBitstream(struct mfxBitstream *,unsigned int)" (?InitMfxBitstream@@YA?AW4mfxStatus@@PAUmfxBitstream@@I@Z) referenced in function "public: virtual enum mfxStatus __thiscall CDecodingPipeline::Init(struct sInputParams *)" (?Init@CDecodingPipeline@@UAE?AW4mfxStatus@@PAUsInputParams@@@Z) pipeline_decode.obj : error LNK2019: unresolved external symbol "public: __thiscall CH264FrameReader::CH264FrameReader(void)" (??0CH264FrameReader@@QAE@XZ) referenced in function "public: virtual enum mfxStatus __thiscall CDecodingPipeline::Init(struct sInputParams *)" (?Init@CDecodingPipeline@@UAE?AW4mfxStatus@@PAUsInputParams@@@Z) pipeline_decode.obj : error LNK2019: unresolved external symbol "void __cdecl WipeMfxBitstream(struct mfxBitstream *)" (?WipeMfxBitstream@@YAXPAUmfxBitstream@@@Z) referenced in function "public: virtual void __thiscall CDecodingPipeline::Close(void)" (?Close@CDecodingPipeline@@UAEXXZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "double __cdecl CalculateFrameRate(unsigned int,unsigned int)" (?CalculateFrameRate@@YANII@Z) referenced in function "public: virtual void __thiscall CDecodingPipeline::PrintInfo(void)" (?PrintInfo@CDecodingPipeline@@UAEXXZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "class std::basic_string,class std::allocator > __cdecl CodecIdToStr(unsigned int)" (?CodecIdToStr@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@I@Z) referenced in function "public: virtual void __thiscall CDecodingPipeline::PrintInfo(void)" (?PrintInfo@CDecodingPipeline@@UAEXXZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CSmplYUVWriter::~CSmplYUVWriter(void)" (??1CSmplYUVWriter@@UAE@XZ) referenced in function "public: virtual __thiscall CDecodingPipeline::~CDecodingPipeline(void)" (??1CDecodingPipeline@@UAE@XZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "public: __thiscall CSmplYUVWriter::CSmplYUVWriter(void)" (??0CSmplYUVWriter@@QAE@XZ) referenced in function "public: __thiscall CDecodingPipeline::CDecodingPipeline(void)" (??0CDecodingPipeline@@QAE@XZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "unsigned short __cdecl GetFreeSurfaceIndex(struct mfxFrameSurface1 *,unsigned short)" (?GetFreeSurfaceIndex@@YAGPAUmfxFrameSurface1@@G@Z) referenced in function "public: virtual enum mfxStatus __thiscall CDecodingPipeline::RunDecoding(void)" (?RunDecoding@CDecodingPipeline@@UAE?AW4mfxStatus@@XZ) pipeline_decode.obj : error LNK2019: unresolved external symbol "struct mfxExtBuffer * __cdecl GetExtBuffer(struct mfxExtBuffer * *,unsigned int,unsigned int)" (?GetExtBuffer@@YAPAUmfxExtBuffer@@PAPAU1@II@Z) referenced in function "protected: virtual enum mfxStatus __thiscall CDecodingPipeline::InitMfxParams(struct sInputParams *)" (?InitMfxParams@CDecodingPipeline@@MAE?AW4mfxStatus@@PAUsInputParams@@@Z) pipeline_decode.obj : error LNK2019: unresolved external symbol "enum mfxStatus __cdecl ExtendMfxBitstream(struct mfxBitstream *,unsigned int)" (?ExtendMfxBitstream@@YA?AW4mfxStatus@@PAUmfxBitstream@@I@Z) referenced in function "protected: virtual enum mfxStatus __thiscall CDecodingPipeline::InitMfxParams(struct sInputParams *)" (?InitMfxParams@CDecodingPipeline@@MAE?AW4mfxStatus@@PAUsInputParams@@@Z) pipeline_decode.obj : error LNK2019: unresolved external symbol "enum mfxStatus __cdecl MJPEG_AVI_ParsePicStruct(struct mfxBitstream *)" (?MJPEG_AVI_ParsePicStruct@@YA?AW4mfxStatus@@PAUmfxBitstream@@@Z) referenced in function "protected: virtual enum mfxStatus __thiscall CDecodingPipeline::InitMfxParams(struct sInputParams *)" (?InitMfxParams@CDecodingPipeline@@MAE?AW4mfxStatus@@PAUsInputParams@@@Z) ..\_build\Win32\Release\sample_decode.exe : fatal error LNK1120: 21 unresolved externals

11 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Hi,

Based on the limited amount of info provided it's hard to say what is going on.

Looks like you're trying to compile the SDK provided "sample_decode"? If so, was the project or sample modified before build?
If not, please try to compile the SDK "sample_decode" and compare the results.

What version of Media SDK are you using?

From the log it looks like some C++ name mangling issue.

Regards,
Petter

You may want to try the following:

1. Remove any installed Intel Media SDKs
2. Reboot
3. Install Intel Media SDK 2012 R3
4. Open "C:\Program Files\Intel\Media SDK 2012 R3\samples\sample_decode\sample_decode.sln"
5. Try Build>Rebuild Solution

Let us know if that works.

Cameron

Sir(Mr. Peter Larsson),
Thank you for the help.But i have tried your trick earlier and it shows an error like "windows.h no such file and directory",and others like atlbase.h etc.. i have resolved all these errors.But i am stucked up with the above error for two days.
I am using intel media sdk 2012 R3.Below is my computer specifications.
------------------
System Information
------------------
Time of this report: 12/18/2012, 09:05:55
Machine name: NEW-PC
Operating System: Windows 7 Ultimate 32-bit (6.1, Build 7600) (7600.win7_rtm.090713-1255)
Language: English (Regional Setting: English)
System Manufacturer: INTEL
System Model: DG31PR
BIOS: BIOS Date: 01/23/08 15:53:32 Ver: 08.00.10
Processor: Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz (2 CPUs), ~2.0GHz
Memory: 1024MB RAM
Available OS Memory: 1012MB RAM
Page File: 1092MB used, 943MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 11
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 96 DPI (100 percent)
DWM DPI Scaling: Disabled
DxDiag Version: 6.01.7600.16385 32bit Unicode

Display Devices
---------------
Card name: Intel(R) G33/G31 Express Chipset Family (Microsoft Corporation - WDDM 1.0)
Manufacturer: Intel Corporation
Chip type: Intel(R) GMA 3100
DAC type: Internal
Device Key: Enum\PCI\VEN_8086&DEV_29C2&SUBSYS_29C28086&REV_10
Display Memory: 249 MB
Dedicated Memory: 0 MB
Shared Memory: 249 MB
Current Mode: 1280 x 720 (32 bit) (60Hz)
Monitor Name: Generic PnP Monitor
Monitor Model: X153W
Monitor Id: ACR3200
Native Mode: 1280 x 720(p) (59.855Hz)
Output Type: HD15
Driver Name: igdumd32.dll
Driver File Version: 8.15.0010.1749 (English)
Driver Version: 8.15.10.1749
DDI Version: 9Ex
Driver Model: WDDM 1.0
Driver Attributes: Final Retail
Driver Date/Size: 7/14/2009 06:45:31, 3805184 bytes
WHQL Logo'd: Yes

Cameron,
Thanks for the help.I tried your method.but it didn't work.Still the same error.I am using visual c++ 2005 Express edition.
Please let me know if you come up with any other solution.
Thank you.

Cameron,
Thanks for the help.I tried your method.but it didn't work.Still the same error.I am using visual c++ 2005 Express edition.
Please let me know if you come up with any other solution.
Thank you.

Hi,

It seems the issue may be related to the bare bones version of Visual Studio.
Have you installed Windows SDK? Some more info here on similar topic: http://software.intel.com/en-us/forums/topic/312992
More info on Express limitations here: http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express

If that does not work, please also make sure the "sample_common" project builds ok by building that library separately. And when building for instance "sample_decode" make sure it's linked with the application.

On another topic: Looking at your computer configuration, please be aware that your platform does not support video HW acceleration.

Regards,
Petter

Thanks for the help everyone...I figured it out and it works fine...I used visual c++ 2010 Ultimate..

Well, that is good news, I wouldn't have thought the problem is the Express edition, but I suppose it is not clear whether going from Express to Pro/Ultimate, or going from 2005->2010 fixed it.

Either way, it is good news you are past that. I get crazy with ugly C++ linking issues.

I have searched across the net and i repeatedly encountered that express edition doesn't provide the full functionalities as compared to other version of visual studio (any year 2005/2008/2010/2012).I didn't have 2005 ultimate/pro.But i had visual studio 2010 ultimate at this time.So i guess it worked.
I do hope that 2005 ultimate/pro should build the samples just fine.

I am getting following errors while building sample decode. 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 ==========

 

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen