Menu

problems compiling pwlib on Windows

Help
apptai
2007-11-29
2013-06-03
  • apptai

    apptai - 2007-11-29

    Hello,
    I'm trying to compile pwlib, on the road to opal, with directions from voxgratia howto on Windows platform compilation. Things seem to go smoothly, I configure Visual Studio, then add all the paths mentioned there finally I try to compile the project. "Console" target compiles ok, but compiling stuff like "MergeSym" or "Ptlib" gives me error messages like those pasted below.

    One strange thing that happens to me is the lack of Console Components, MsDevWizard and PacketVxD source files. Is it normal/correct? I downloaded src file from sf.net

    1>------ Build started: Project: MergeSym, Configuration: Debug Win32 ------
    1>Linking...
    1>ptlibsd.lib(win32.obj) : error LNK2001: unresolved external symbol "class PPlugin_PVideoOutputDevice_YUVFile_Registration PPlugin_PVideoOutputDevice_YUVFile_Registration_Instance" (?PPlugin_PVideoOutputDevice_YUVFile_Registration_Instance@@3VPPlugin_PVideoOutputDevice_YUVFile_Registration@@A)
    1>ptlibsd.lib(win32.obj) : error LNK2001: unresolved external symbol "class PPlugin_PVideoInputDevice_YUVFile_Registration PPlugin_PVideoInputDevice_YUVFile_Registration_Instance" (?PPlugin_PVideoInputDevice_YUVFile_Registration_Instance@@3VPPlugin_PVideoInputDevice_YUVFile_Registration@@A)
    1>ptlibsd.lib(win32.obj) : error LNK2001: unresolved external symbol "class PPlugin_PSoundChannel_WAVFile_Registration PPlugin_PSoundChannel_WAVFile_Registration_Instance" (?PPlugin_PSoundChannel_WAVFile_Registration_Instance@@3VPPlugin_PSoundChannel_WAVFile_Registration@@A)
    1>ptlibsd.lib(win32.obj) : error LNK2001: unresolved external symbol "int PWLibFactoryLoader::PVideoFile_PDefaultPFactoryKey_loader" (?PVideoFile_PDefaultPFactoryKey_loader@PWLibFactoryLoader@@3HA)
    1>ptlibsd.lib(win32.obj) : error LNK2001: unresolved external symbol "int PWLibFactoryLoader::PWAVFileConverter_unsigned_loader" (?PWAVFileConverter_unsigned_loader@PWLibFactoryLoader@@3HA)
    1>ptlibsd.lib(win32.obj) : error LNK2001: unresolved external symbol "int PWLibFactoryLoader::PWAVFileFormat_unsigned_loader" (?PWAVFileFormat_unsigned_loader@PWLibFactoryLoader@@3HA)
    1>ptlibsd.lib(win32.obj) : error LNK2001: unresolved external symbol "int PWLibFactoryLoader::PURLScheme_PString_loader" (?PURLScheme_PString_loader@PWLibFactoryLoader@@3HA)
    1>ptlibsd.lib(vfakeio.obj) : error LNK2019: unresolved external symbol "public: __thiscall PAdaptiveDelay::PAdaptiveDelay(unsigned int,unsigned int)" (??0PAdaptiveDelay@@QAE@II@Z) referenced in function "public: __thiscall PVideoInputDevice_FakeVideo::PVideoInputDevice_FakeVideo(void)" (??0PVideoInputDevice_FakeVideo@@QAE@XZ)
    1>ptlibsd.lib(vfw.obj) : error LNK2001: unresolved external symbol "public: __thiscall PAdaptiveDelay::PAdaptiveDelay(unsigned int,unsigned int)" (??0PAdaptiveDelay@@QAE@II@Z)
    1>ptlibsd.lib(vfakeio.obj) : error LNK2019: unresolved external symbol "public: int __thiscall PAdaptiveDelay::Delay(int)" (?Delay@PAdaptiveDelay@@QAEHH@Z) referenced in function "public: virtual int __thiscall PVideoInputDevice_FakeVideo::GetFrameData(unsigned char *,int *)" (?GetFrameData@PVideoInputDevice_FakeVideo@@UAEHPAEPAH@Z)
    1>ptlibsd.lib(vfw.obj) : error LNK2001: unresolved external symbol "public: int __thiscall PAdaptiveDelay::Delay(int)" (?Delay@PAdaptiveDelay@@QAEHH@Z)
    1>.\Debug/MergeSym.exe : fatal error LNK1120: 9 unresolved externals
    1>Build log was saved at "file://c:\Documents and Settings\marcin\Pulpit\h323-project\ptlib\tools\MergeSym\Debug\BuildLog.htm"
    1>MergeSym - 12 error(s), 0 warning(s)
    2>------ Build started: Project: PTLib, Configuration: Debug Win32 ------
    2>Merging exported library symbols
    2>Nazwa 'MergeSym' nie jest rozpoznawana jako polecenie wewnętrzne lub zewnętrzne,
    2>program wykonywalny lub plik wsadowy.
    2>Project : error PRJ0019: A tool returned an error code from "Merging exported library symbols"
    2>Project : warning PRJ0018 : The following environment variables were not found:
    2>$(Include)
    2>Build log was saved at "file://c:\Documents and Settings\marcin\Pulpit\h323-project\ptlib\Lib\Debug\BuildLog.htm"
    2>PTLib - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 2 failed, 1 up-to-date, 0 skipped ==========

     
    • Marcos F. J.

      Marcos F. J. - 2007-12-20

      Hello apptai

        I not yet tried to compile PWLIb for OPAL, but to get a better scenario, please send the exact version you are trying to compile, as you can see in VoxGratia's website, there are many combinations for stable and developments versions. Try to describe too if you are using static or dynamic link libraries, the MergeSym is a incredible source of link errors when using dynamic link libraries.

       

Log in to post a comment.