[h323plus] PTLib compile errors

Simon Horne s.horne at packetizer.com
Sun Jan 13 15:51:43 EST 2008


Nyamul

2 things to quickly fix the problem

Comment out the line
#undef P_DIRECTSOUND
in ptbuildopts.h.in
DirectSound is an optional component.

or find dsound.h in
c:\program files\microsoft visual studio
and remove it as by default it is not installed with visual studio

Simon



> -----Original Message-----
> From: h323plus-bounces at lists.packetizer.com
> [mailto:h323plus-bounces at lists.packetizer.com]On Behalf Of Nyamul Hassan
> Sent: Sunday, January 13, 2008 3:26 PM
> To: H323+
> Subject: Re: [h323plus] PTLib compile errors
>
>
> Simon,
>
> Thanky ou for your email.  I've got the following environment variables
> setup:
>
> PWLIB_CONFIGURE_EXCLUDE_DIRS=c:\program files\microsoft visual studio
> 8\smartdevices\
> PTLIB_CONFIGURE_EXCLUDE_DIRS=c:\program files\microsoft visual studio
> 8\smartdevices\
>
> The 2nd line is as per Peter's suggestion that PWLIB has changed to PTLIB.
>
> I've copied the configure.exe from the H323+ folder to the PTLIB folder
> (renamed the previous configure.exe to configure2.exe).
>
> But, compilation still detects Direct Sound, and gives the same error.  Is
> there any header files to download from Microsoft? Like Platform SDK or
> something?  That will install the proper header files?
>
> I'm also copying the error lines from the compile log below.
>
> Regards
> HASSAN
>
>
>
> ======== [START] Error Lines from Compile Log =========
>
>
> 1>sound_directsound.cxx
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(119) : error
> C2146: syntax error : missing ';' before identifier 'sAudioCaptureDevice'
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(119) : error
> C4430: missing type specifier - int assumed. Note: C++ does not support
> default-int
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(119) : error
> C4430: missing type specifier - int assumed. Note: C++ does not support
> default-int
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(120) : error
> C2146: syntax error : missing ';' before identifier 'mAudioCaptureBuffer'
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(120) : error
> C4430: missing type specifier - int assumed. Note: C++ does not support
> default-int
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(120) : error
> C4430: missing type specifier - int assumed. Note: C++ does not support
> default-int
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(122) : error
> C2146: syntax error : missing ';' before identifier 'sAudioPlaybackDevice'
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(122) : error
> C4430: missing type specifier - int assumed. Note: C++ does not support
> default-int
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(122) : error
> C4430: missing type specifier - int assumed. Note: C++ does not support
> default-int
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(123) : error
> C2146: syntax error : missing ';' before identifier 'mAudioPlaybackBuffer'
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(123) : error
> C4430: missing type specifier - int assumed. Note: C++ does not support
> default-int
> 1>d:\Dev\ptlib\include\ptlib/msos/ptlib/sound_directsound.h(123) : error
> C4430: missing type specifier - int assumed. Note: C++ does not support
> default-int
> 1>.\sound_directsound.cxx(62) : warning C4083: expected 'string'; found
> identifier 'P_DIRECTSOUND_LIB32'
> 1>.\sound_directsound.cxx(129) : error C2065: 'mAudioPlaybackBuffer' :
> undeclared identifier
> 1>.\sound_directsound.cxx(131) : error C2065: 'sAudioPlaybackDevice' :
> undeclared identifier
> 1>.\sound_directsound.cxx(133) : error C2065: 'sAudioCaptureDevice' :
> undeclared identifier
> 1>.\sound_directsound.cxx(134) : error C2065: 'mAudioCaptureBuffer' :
> undeclared identifier
> 1>.\sound_directsound.cxx(217) : error C2065: 'DSDEVID_DefaultPlayback' :
> undeclared identifier
> 1>.\sound_directsound.cxx(217) : error C2065: 'DSDEVID_DefaultCapture' :
> undeclared identifier
> 1>.\sound_directsound.cxx(303) : error C3861: 'DirectSoundCreate8':
> identifier not found
> 1>.\sound_directsound.cxx(317) : error C2227: left of
> '->SetCooperativeLevel' must point to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(335) : error C2227: left of
> '->CreateSoundBuffer'
> must point to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(352) : error C3861: 'DirectSoundCaptureCreate8':
> identifier not found
> 1>.\sound_directsound.cxx(396) : error C2227: left of '->Stop'
> must point to
> class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(397) : error C2227: left of '->Release'
> must point
> to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(399) : error C2227: left of '->Release'
> must point
> to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(404) : error C2227: left of '->Stop'
> must point to
> class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(405) : error C2227: left of '->Release'
> must point
> to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(406) : error C2227: left of '->Release'
> must point
> to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(426) : error C2227: left of
> '->GetCurrentPosition'
> must point to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(428) : error C2227: left of
> '->GetCurrentPosition'
> must point to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(478) : error C2227: left of '->Play'
> must point to
> class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(556) : error C2227: left of '->Lock'
> must point to
> class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(568) : error C2227: left of '->Restore'
> must point
> to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(569) : error C2227: left of '->Lock'
> must point to
> class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(588) : error C2227: left of '->Unlock'
> must point
> to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(619) : error C2227: left of '->Lock'
> must point to
> class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(640) : error C2227: left of '->Unlock'
> must point
> to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(809) : error C2227: left of
> '->CreateCaptureBuffer' must point to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(815) : error C2065:
> 'IID_IDirectSoundCaptureBuffer8' : undeclared identifier
> 1>.\sound_directsound.cxx(818) : error C2227: left of '->Start' must point
> to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(853) : error C2227: left of
> '->CreateSoundBuffer'
> must point to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(859) : error C2065: 'IID_IDirectSoundBuffer8' :
> undeclared identifier
> 1>.\sound_directsound.cxx(868) : error C2227: left of
> '->SetCurrentPosition'
> must point to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(948) : error C2227: left of '->GetStatus' must
> point to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(1092) : error C2227: left of '->SetVolume' must
> point to class/struct/union/generic type
> 1>        type is ''unknown-type''
> 1>.\sound_directsound.cxx(1133) : error C2227: left of '->GetVolume' must
> point to class/struct/union/generic type
> 1>        type is ''unknown-type''
>
>
>
> ======== [END] Error Lines from Compile Log =========
>
>
>
>
>
>
>
>
>
>
>
> ----- Original Message -----
> From: "Simon Horne" <s.horne at packetizer.com>
> To: "Nyamul Hassan" <mnhassan at usa.net>; "H323+"
> <h323plus at lists.packetizer.com>
> Sent: Sunday, January 13, 2008 01:48
> Subject: RE: [h323plus] PTLib compile errors
>
>
> > Hassan
> >
> > I had the same issues with ptlib configure ignoring the environmental
> > variable. Copy the configure.exe from h323plus directory to the ptlib
> > directory and try again. That should work.
> >
> > Your environmental variable entry in this case should be
> > PWLIB_CONFIGURE_EXCLUDE_DIRS=c:\program files\microsoft visual studio
> > 8\smartdevices
> >
> > Simon
> >
> > -----Original Message-----
> > From: h323plus-bounces at lists.packetizer.com
> > [mailto:h323plus-bounces at lists.packetizer.com]On Behalf Of Nyamul Hassan
> > Sent: Saturday, January 12, 2008 11:56 PM
> > To: H323+
> > Subject: Re: [h323plus] PTLib compile errors
> >
> >
> > Hi Simon,
> >
> > Thank you for your email.  I've tried setting up the
> environment variables
> > as you suggested, but it still is not working.  :(  VS.NET 2005 keeps
> > detecting the header file.  BTW, all the header files are detected as
> > follows:
> >
> > 1>Located Direct Sound Support at c:\program files\microsoft
> visual studio
> > 8\smartdevices\sdk\pocketpc2003\
> > 1>Located IPv6 Support at c:\program files\microsoft visual studio
> > 8\smartdevices\sdk\pocketpc2003\include\
> > 1>Located DNS Resolver at c:\program files\microsoft visual studio
> > 8\vc\platformsdk\
> > 1>Located QoS Support at c:\program files\microsoft visual studio
> > 8\vc\platformsdk\include\
> > 1>Located ODBC support at c:\program files\microsoft visual studio
> > 8\vc\platformsdk\include\
> >
> >
> > Is there a way to manuall disable direct sound support?
> >
> > Regards
> > HASSAN
> >
> >
> >
> >
> >
> > ----- Original Message -----
> > From: Simon Horne
> > To: Nyamul Hassan
> > Cc: H323plus
> > Sent: Friday, January 11, 2008 17:18
> > Subject: RE: [h323plus] PTLib compile errors
> >
> >
> > Hassan
> >
> > For me on Vista directsound was not detected so did not return
> any errors
> as
> > it was not compiled.
> >
> > I think configure is detecting a wrong header file and incorrectly
> enabling
> > directsound.I suggest you determine the directory that the configure
> program
> > finds directsound and then exclude that from the search directories.You
> can
> > do that by adding an environmental variable PWLIB_CONFIGURE_EXCLUDE_DIRS
> > with the directory to exclude under control panel > system > advanced in
> > Vista.
> >
> > Note I have experienced problems with configure.exe 1.12 (in the pwlib
> main
> > directory) with Vista. If you are having problems excluding the
> directory
> > then copy the configure.exe v1.10 in h323plus directory to the pwlib
> > directory.
> >
> > Simon
> > -----Original Message-----
> > From: h323plus-bounces at lists.packetizer.com
> > [mailto:h323plus-bounces at lists.packetizer.com]On Behalf Of Nyamul Hassan
> > Sent: Friday, January 11, 2008 7:42 PM
> > To: H323+
> > Subject: Re: [h323plus] PTLib compile errors
> >
> >
> > .NET version 2005, just to clarify.
> >
> > Regards
> > HASSAN
> >
> >
> > ----- Original Message -----
> > From: Nyamul Hassan
> > To: H323+
> > Sent: Friday, January 11, 2008 15:30
> > Subject: [h323plus] PTLib compile errors
> >
> >
> > Hi,
> >
> > I apologize beforehand if this is not the right list to ask questions on
> > this topic.
> >
> > I had just tried unsuccessfully to compile PTLIB version 1.19.5 as
> > downloaded from the H323+ website.  I get 47 errors all on
> > sound_directsound.h and sound_directsound.cx.
> >
> > I'm using MS VS.Net (running as administrator) on Windows Vista.
> >
> > Could someone please point to me what I might be doing wrong?
> >
> > Regards
> > HASSAN
> >
> >




More information about the h323plus mailing list