#8 Static Build

open
nobody
None
5
2009-12-14
2009-12-14
pfrisc01
No

I am trying to compile the SamplePlayer application as a stand alone application (with no DLL's).
I am using Visual Studio c++ express.

I do get a clean compile and link with the following options.

My compile cmd line:
/I "..\..\..\RTL\Component\Include" /I "..\..\..\RTL\Kernel\Include" /I "..\..\..\RTL\Platform\Include" /I "..\..\..\Samples\SceneHelpers" /I "..\..\..\Samples\SampleViewerWin32" /D "WINDOWS" /D "_WINDOWS" /D "WINVER=0x0500" /D "WIN32" /D "_WIN32" /D "WIN32_LEAN_AND_MEAN" /D "UNICODE" /D "_CRT_SECURE_NO_DEPRECATE" /D "_VC80_UPGRADE=0x0710" /D "_MBCS" /FD /EHsc /MT /Fp".\Debug\SamplePlayer\SamplePlayer.pch" /Fo".\Debug\SamplePlayer\\" /Fd".\Debug\SamplePlayer\\" /FR".\Debug\SamplePlayer\\" /W3 /nologo /c /errorReport:prompt

My link cmd line:
/OUT:"./Debug/SamplePlayer/SamplePlayer.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST /MANIFESTFILE:".\Debug\SamplePlayer\SamplePlayer.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /PDB:"./Debug/SamplePlayer/SamplePlayer.pdb" /DYNAMICBASE:NO /IMPLIB:"./Debug/SamplePlayer/SamplePlayer.lib" /MACHINE:X86 /ERRORREPORT:PROMPT WinMM.Lib COMCTL32.lib ./debug/Core/IFXCore.lib ./debug/DataTypes/DataTypes.lib ./debug/Platform/Platform.lib ./debug/WildCards/WildCards.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ".\debug\sampleviewerwin32\sampleviewerwin32.lib" ".\debug\scenehelpers\scenehelpers.lib"

However, even with the IFXCore.lib, when I run SamplePlayer, it requires the IFXCore.dll

Any thoughts?

Thanks,
Paul

Discussion

  • pfrisc01

    pfrisc01 - 2009-12-15

    The existing IFXCore.lib is just a stub to interface with the dll. - I am trying to build static lib's for the dll's. Doing it in Visual Studio is not working out, so I plan to try from the cygwin cmd line (using gcc and make).

     
  • pfrisc01

    pfrisc01 - 2009-12-16

    I am getting the following link errors.... any thoughts?

    1>------ Build started: Project: SamplePlayerStatic, Configuration: Debug Win32 ------
    1>Linking...
    1>IFXCom.obj : error LNK2019: unresolved external symbol "unsigned int g_countActiveObjects" (?g_countActiveObjects@@3IA) referenced in function "int __fastcall IFXCoreShutdown(void)" (?IFXCoreShutdown@@YIHXZ)
    1>IFXModifierBaseDecoder.obj : error LNK2019: unresolved external symbol _IID_IFXNameMap referenced in function "protected: void __thiscall IFXModifierBaseDecoder::CreateObjectX(class IFXDataBlockX &,struct IFXGUID const &)" (?CreateObjectX@IFXModifierBaseDecoder@@IAEXAAVIFXDataBlockX@@ABUIFXGUID@@@Z)
    1>IFXModifierBaseDecoder.obj : error LNK2019: unresolved external symbol _IID_IFXBitStreamX referenced in function "protected: void __thiscall IFXModifierBaseDecoder::CreateObjectX(class IFXDataBlockX &,struct IFXGUID const &)" (?CreateObjectX@IFXModifierBaseDecoder@@IAEXAAVIFXDataBlockX@@ABUIFXGUID@@@Z)
    1>IFXTexture.lib(CIFXTextureObject.obj) : error LNK2001: unresolved external symbol _IID_IFXBitStreamX
    1>IFXKernel.lib(CIFXComponentManager.obj) : error LNK2019: unresolved external symbol "unsigned int g_coreComponentNumber" (?g_coreComponentNumber@@3IA) referenced in function "public: int __thiscall CIFXComponentManager::Initialize(void)" (?Initialize@CIFXComponentManager@@QAEHXZ)
    1>IFXKernel.lib(CIFXComponentManager.obj) : error LNK2019: unresolved external symbol "struct IFXComponentDescriptor * g_coreComponentDescriptorList" (?g_coreComponentDescriptorList@@3PAUIFXComponentDescriptor@@A) referenced in function "public: int __thiscall CIFXComponentManager::Initialize(void)" (?Initialize@CIFXComponentManager@@QAEHXZ)
    1>IFXScenegraph.lib(CIFXModel.obj) : error LNK2019: unresolved external symbol _IID_IFXObserver referenced in function "public: virtual int __fastcall CIFXModel::QueryInterface(struct IFXGUID const &,void * *)" (?QueryInterface@CIFXModel@@UAIHABUIFXGUID@@PAPAX@Z)
    1>IFXScenegraph.lib(CIFXNode.obj) : error LNK2001: unresolved external symbol _IID_IFXObserver
    1>IFXScenegraph.lib(CIFXModel.obj) : error LNK2019: unresolved external symbol _IID_IFXLightSet referenced in function "public: virtual class IFXLightSet const & __fastcall CIFXModel::GetLightSet(void)" (?GetLightSet@CIFXModel@@UAIABVIFXLightSet@@XZ)
    1>IFXScenegraph.lib(CIFXNode.obj) : error LNK2019: unresolved external symbol _IID_IFXAnimationModifier referenced in function "public: virtual int __fastcall CIFXNode::MarkMotions(void)" (?MarkMotions@CIFXNode@@UAIHXZ)
    1>IFXTexture.lib(CIFXTextureObject.obj) : error LNK2019: unresolved external symbol _IID_IFXIDManager referenced in function "private: __thiscall CIFXTextureObject::CIFXTextureObject(void)" (??0CIFXTextureObject@@AAE@XZ)
    1>IFXMesh.lib(CIFXInterleavedData.obj) : error LNK2001: unresolved external symbol _IID_IFXIDManager
    1>IFXTexture.lib(CIFXTextureObject.obj) : error LNK2019: unresolved external symbol _IID_IFXDecoderX referenced in function "public: virtual int __fastcall CIFXTextureObject::QueryInterface(struct IFXGUID const &,void * *)" (?QueryInterface@CIFXTextureObject@@UAIHABUIFXGUID@@PAPAX@Z)
    1>C:\Users\frischpa\Documents\Visual Studio 2008\Projects\SamplePlayerStatic\Debug\SamplePlayerStatic.exe : fatal error LNK1120: 10 unresolved externals
    1>Build log was saved at "file://c:\Users\frischpa\Documents\Visual Studio 2008\Projects\SamplePlayerStatic\SamplePlayerStatic\Debug\BuildLog.htm"
    1>SamplePlayerStatic - 14 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     

Log in to post a comment.