some error when compiling MyPhone on .NET

tinystar
2004-08-30
2004-08-30
  • tinystar

    tinystar - 2004-08-30

    When i compile MyPhone0.2b10, there are some errors, can anyone help me?
    I use MS VS .NET 2003, Windows 2003 server, pwlibv1.8.0, openH323v1.15.0.
    i have successful on compiled the pwlib and openh323.

    if i use the old version: OpenH323v1.12.3, pwlibv1.5.3, MyPhonev0.2b10, MS VS 6.0, Win2K: everything is ok.

    i found in OpenH323v1.5.3: the folder openh323\include has a file dllcodec.h but in OpenH323v1.15.0 there is no one.

    i found this line in dynacodec.h (OpenH323) may cause error.
    extern "C" {
    #include "dllcodec.h"
    };

    Here is Output:

    ==============================

    ------ Rebuild All started: Project: MyPhone, Configuration: Release Win32 ------

    Deleting intermediate files and output files for project 'MyPhone', configuration 'Release|Win32'.
    Compiling...
    StdAfx.cpp
    WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server)
    Compiling...
    VisualPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    NetworkPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    MyPropertySheet.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    MyPhoneEndPoint.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.h(35) : error C2504: 'PVideoOutputDeviceRGB' : base class undefined
    D:\app\openh323-v1_15_0-src\openh323\include\dynacodec.h(39) : fatal error C1083: Cannot open include file: 'dllcodec.h': No such file or directory
    MyPhoneDlg.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    MyPhoneDlg.cpp(959) : error C2259: 'PVideoInputDevice' : cannot instantiate abstract class
            due to following members:
            'BOOL PVideoInputDevice::Open(const PString &,BOOL)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(868) : see declaration of 'PVideoInputDevice::Open'
            'BOOL PVideoDevice::IsOpen(void)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(309) : see declaration of 'PVideoDevice::IsOpen'
            'BOOL PVideoDevice::Start(void)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(317) : see declaration of 'PVideoDevice::Start'
            'BOOL PVideoDevice::Stop(void)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(321) : see declaration of 'PVideoDevice::Stop'
            'PStringList PVideoDevice::GetDeviceNames(void) const' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(331) : see declaration of 'PVideoDevice::GetDeviceNames'
            'int PVideoInputDevice::GetMaxFrameBytes(void)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(885) : see declaration of 'PVideoInputDevice::GetMaxFrameBytes'
            'BOOL PVideoInputDevice::IsCapturing(void)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(878) : see declaration of 'PVideoInputDevice::IsCapturing'
            'BOOL PVideoInputDevice::GetFrame(PBYTEArray &)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(889) : see declaration of 'PVideoInputDevice::GetFrame'
            'BOOL PVideoInputDevice::GetFrameData(BYTE *,int *)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(895) : see declaration of 'PVideoInputDevice::GetFrameData'
            'BOOL PVideoInputDevice::GetFrameDataNoDelay(BYTE *,int *)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(902) : see declaration of 'PVideoInputDevice::GetFrameDataNoDelay'
            'BOOL PVideoInputDevice::TestAllFormats(void)' : pure virtual function was not defined
            D:\app\pwlib-v1_8_0-src\pwlib\include\ptlib\videoio.h(909) : see declaration of 'PVideoInputDevice::TestAllFormats'
    MyPhoneDlg.cpp(959) : error C2228: left of '.GetDeviceNames' must have class/struct/union type
    MyPhoneDlg.cpp(1077) : error C2039: 'IsDescendant' : is not a member of 'H323Codec'
            d:\app\openh323-v1_15_0-src\openh323\include\codecs.h(312) : see declaration of 'H323Codec'
    MyPhoneBook.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    MyPhone.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    MyPhone.cpp(79) : warning C4996: 'CWinApp::Enable3dControls' was declared deprecated
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxwin.h(4369) : see declaration of 'CWinApp::Enable3dControls'
    MyIndicator.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    Multilang.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    guiPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    GKPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    GeneralPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    CVideoDevice.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.h(35) : error C2504: 'PVideoOutputDeviceRGB' : base class undefined
    CVideoDevice.cpp(118) : error C3861: 'Close': identifier not found, even with argument-dependent lookup
    CVideoDevice.cpp(136) : error C3861: 'GetDeviceName': identifier not found, even with argument-dependent lookup
    CVideoDevice.cpp(198) : error C3861: 'GetMaxFrameBytes': identifier not found, even with argument-dependent lookup
    CVideoDevice.cpp(224) : error C2065: 'frameStore' : undeclared identifier
    CVideoDevice.cpp(224) : error C2228: left of '.GetPointer' must have class/struct/union type
            type is ''unknown-type''
    CVideoDevice.cpp(224) : error C3861: 'GetMaxFrameBytes': identifier not found, even with argument-dependent lookup
    CVideoDevice.cpp(320) : error C2653: 'PVideoOutputDeviceRGB' : is not a class or namespace name
    Book_OutPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    Book_MsdPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    Book_InPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    Book_AddressPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    AudioPage.cpp
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7) : warning C4005: 'RT_MANIFEST' : macro redefinition
            C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(194) : see previous definition of 'RT_MANIFEST'
    Generating Code...

    Build log was saved at "file://d:\app\MyPhone0.2b10_src\MyPhone\Release\BuildLog.htm"
    MyPhone - 13 error(s), 19 warning(s)

    ---------------------- Done ----------------------

        Rebuild All: 0 succeeded, 1 failed, 0 skipped

    ============================================

    Here is the task list:

    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7): warning C4005: 'RT_MANIFEST' : macro redefinition
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.h(35): error C2504: 'PVideoOutputDeviceRGB' : base class undefined
    D:\app\openh323-v1_15_0-src\openh323\include\dynacodec.h(38): fatal error C1083: Cannot open include file: 'dllcodec.h': No such file or directory
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7): warning C4005: 'RT_MANIFEST' : macro redefinition
    d:\app\MyPhone0.2b10_src\MyPhone\MyPhoneDlg.cpp(959): error C2259: 'PVideoInputDevice' : cannot instantiate abstract class
    d:\app\MyPhone0.2b10_src\MyPhone\MyPhoneDlg.cpp(959): error C2228: left of '.GetDeviceNames' must have class/struct/union type
    d:\app\MyPhone0.2b10_src\MyPhone\MyPhoneDlg.cpp(1077): error C2039: 'IsDescendant' : is not a member of 'H323Codec'
    d:\app\MyPhone0.2b10_src\MyPhone\resource.h(7): warning C4005: 'RT_MANIFEST' : macro redefinition
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.h(35): error C2504: 'PVideoOutputDeviceRGB' : base class undefined
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.cpp(118): error C3861: 'Close': identifier not found, even with argument-dependent lookup
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.cpp(136): error C3861: 'GetDeviceName': identifier not found, even with argument-dependent lookup
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.cpp(198): error C3861: 'GetMaxFrameBytes': identifier not found, even with argument-dependent lookup
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.cpp(224): error C2065: 'frameStore' : undeclared identifier
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.cpp(224): error C2228: left of '.GetPointer' must have class/struct/union type
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.cpp(224): error C3861: 'GetMaxFrameBytes': identifier not found, even with argument-dependent lookup
    d:\app\MyPhone0.2b10_src\MyPhone\CVideoDevice.cpp(320): error C2653: 'PVideoOutputDeviceRGB' : is not a class or namespace name

     
    • tinystar

      tinystar - 2004-08-30

      i just have reviewed some documents and found that may be myphone does not support the newest version of pwlib and h323.

      OpenH323 FAQ:
      4.11 - How do I fix errors about a missing function called PIsDescendant or IsDescendant ?

      If you are using a version of PWLib prior to 1.7, then IsDescendant function is available:

      obj.IsDescendant(MyParticularClass::Class())

      In PWLib 1.7 and later, the function IsDescendant was replaced with PIsDescendant in order to provide support for C++ RTTI (Run Time Type Infomation). This function is used as follows:

      PIsDescendant(&obj, MyParticularClass)

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks