List Info

Thread: problems compiling openh323 on fedora core 2




problems compiling openh323 on fedora core 2
user name
2006-09-06 19:34:06
I am trying to compile pwlib, openh323, and openmcu on a
linux (fedore core 2) server for use as a multipoint
reflector for my
family to use for videoconferencing.  I have downloaded
current src of each from sourceforge, and am following the
directions on
this page - http://www.openh323.org/pipermail/ope
nh323/Week-of-Mon-20060724/077596.html to compile.

Here's the versions I'm working with.

pwlib_v1_11_1
openh323_v1_19_0_1
openmcu_v2_2_0

First, pwlib compiles correctly.  When I try to compile
openh323, I get the following error (see ERROR #1 below)

If I go back into $HOME/pwlib/include, edit ptlib.h, I can
uncomment line 302 (#include <ptlib/sound.h>)  and try
to recompile
pwlib, I get ERROR #2, and pwlib fails to compile.

Next, I tried compiling pwlib normally (which works) and
then uncommenting that line 302 (#include
<ptlib/sound.h>) in ptlib.h, then
compiling openh323 again.  This works until I hit the
following error (similar problem but line 308, #include
<ptlib/video.h>) ERROR
#3

Finally, with both lines 302 and 308 uncommented, openh323
compiles.  I then compiled openmcu per the instructions,
with no errors.

I am running openmcu as root, with -x -c as the options.  It
seems to start up just fine, and it's running since I can
connect to it
with NetMeeting from a windows box, but I just see the
"Open MCU" graphic as the video.

Can anyone point me in the right direction to figure out why
my video isn't working?  Also, if anyone has a good
suggestion as to an
alternate WinXP H.323 client I'd appreciate it.

Thanks,
Brian

The errors are below.


####################
ERROR #1
####################
g++  -DP_USE_PRAGMA -D_REENTRANT -Wall  -fPIC -DPIC
-DPTRACING -I/root/openh323/include -I/root/pwlib/include
-Os
-felide-constructors -Wreorder -c h323ep.cxx -o
/root/openh323/lib/obj_linux_x86_r/h323ep.o
h323ep.cxx: In constructor `H323EndPoint::H323EndPoint()':
h323ep.cxx:1001: error: `PSoundChannel' undeclared (first
use this function)
h323ep.cxx:1001: error: (Each undeclared identifier is
reported only once for 
   each function it appears in.)
h323ep.cxx:1001: error: syntax error before `::' token
h323ep.cxx:1002: error: syntax error before `::' token
h323ep.cxx: In member function `virtual BOOL 
   H323EndPoint::OpenAudioChannel(H323Connection&, int,
unsigned int, 
   H323AudioCodec&)':
h323ep.cxx:2841: error: `soundChannel' undeclared (first
use this function)
h323ep.cxx:2843: error: syntax error before `::' token
h323ep.cxx:2829: warning: unused variable `int rate'
h323ep.cxx: At global scope:
h323ep.cxx:2849: error: syntax error before `if'
h323ep.cxx:2861: error: syntax error before `->' token
h323ep.cxx: In member function `virtual BOOL 
   H323EndPoint::SetSoundChannelPlayDevice(const
PString&)':
h323ep.cxx:3047: error: syntax error before `::' token
h323ep.cxx: In member function `virtual BOOL 
   H323EndPoint::SetSoundChannelRecordDevice(const
PString&)':
h323ep.cxx:3057: error: syntax error before `::' token
h323ep.cxx: In member function `virtual BOOL 
   H323EndPoint::SetSoundChannelPlayDriver(const
PString&)':
h323ep.cxx:3074: error: syntax error before `::' token
h323ep.cxx: In member function `virtual BOOL 
   H323EndPoint::SetSoundChannelRecordDriver(const
PString&)':
h323ep.cxx:3091: error: syntax error before `::' token
make[1]: *** [/root/openh323/lib/obj_linux_x86_r/h323ep.o]
Error 1
make[1]: Leaving directory `/root/openh323_v1_19_0_1/src'
make: *** [opt] Error 2

####################
ERROR #2
####################
g++ -DP_USE_PRAGMA -D_REENTRANT -Wall  -fPIC -DPIC
-I/root/pwlib/include -Os   -felide-constructors -Wreorder
-c
../../ptclib/ptts.cxx -o
/root/pwlib/lib/obj_linux_x86_r/ptts.o
In file included from /root/pwlib/include/ptlib/sound.h:172,
                 from /root/pwlib/include/ptlib.h:302,
                 from
/root/pwlib/include/ptlib/pfactory.h:114,
                 from ../../ptclib/ptts.cxx:96:
/root/pwlib/include/ptlib/plugin.h:78: error: syntax error
before `<' token
/root/pwlib/include/ptlib/plugin.h:91: error: destructors
must be member 
   functions
/root/pwlib/include/ptlib/plugin.h: In function `void
Worker()':
/root/pwlib/include/ptlib/plugin.h:92: error: syntax error
before `<' token
/root/pwlib/include/ptlib/plugin.h:93: error: `_Key_T'
undeclared (first use 
   this function)
/root/pwlib/include/ptlib/plugin.h:93: error: (Each
undeclared identifier is 
   reported only once for each function it appears in.)
/root/pwlib/include/ptlib/plugin.h:93: error:
`WorkerBase_T' undeclared (first 
   use this function)
/root/pwlib/include/ptlib/plugin.h:93: error: syntax error
before `>' token
/root/pwlib/include/ptlib/plugin.h:96: error: `KeyMap_T'
undeclared (first use 
   this function)
/root/pwlib/include/ptlib/plugin.h:98: error: `KeyMap_T' is
not a class or 
   namespace
/root/pwlib/include/ptlib/plugin.h:98: error:
`const_iterator' is not a class 
   or namespace
/root/pwlib/include/ptlib/plugin.h:98: error: using
`typename' outside of 
   template
/root/pwlib/include/ptlib/plugin.h:98: error: `KeyMap_T'
fails to be a typedef 
   or built in type
/root/pwlib/include/ptlib/plugin.h:98: error: ISO C++
forbids declaration of `
   entry' with no type
/root/pwlib/include/ptlib/plugin.h:99: error: `km'
undeclared (first use this 
   function)
/root/pwlib/include/ptlib/plugin.h:100: error: base operand
of `->' is not a 
   pointer
/root/pwlib/include/ptlib/plugin.h:100: error: invalid use
of `this' in 
   non-member function
/root/pwlib/include/ptlib/plugin.h:101: error: `key'
undeclared (first use this 
   function)
/root/pwlib/include/ptlib/plugin.h:101: error: base operand
of `->' is not a 
   pointer
/root/pwlib/include/ptlib/plugin.h:106: error: `PFactory'
undeclared (first use 
   this function)
/root/pwlib/include/ptlib/plugin.h:106: error:
`_Abstract_T' undeclared (first 
   use this function)
/root/pwlib/include/ptlib/plugin.h:106: error:
`::Unregister' undeclared (first 
   use here)
/root/pwlib/include/ptlib/plugin.h: At global scope:
/root/pwlib/include/ptlib/plugin.h:109: error: syntax error
before `protected'
In file included from ../../ptclib/ptts.cxx:96:
/root/pwlib/include/ptlib/pfactory.h:211: error:
`template<class _Abstract_T, 
   class _Key_T> struct PFactory' used prior to
declaration
make[2]: *** [/root/pwlib/lib/obj_linux_x86_r/ptts.o] Error
1
make[2]: Leaving directory
`/root/pwlib_v1_11_1/src/ptlib/unix'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/root/pwlib_v1_11_1'
make: *** [optshared] Error 2

####################
ERROR #3
####################

g++  -DP_USE_PRAGMA -D_REENTRANT -Wall  -fPIC -DPIC
-DPTRACING -I/root/openh323/include -I/root/pwlib/include
-Os
-felide-constructors -Wreorder -c h261codec.cxx -o
/root/openh323/lib/obj_linux_x86_r/h261codec.o
h261codec.cxx: In member function `virtual BOOL
H323_H261Codec::Read(BYTE*, 
   unsigned int&, RTP_DataFrame&)':
h261codec.cxx:535: error: `PVideoChannel' undeclared (first
use this function)
h261codec.cxx:535: error: (Each undeclared identifier is
reported only once for 
   each function it appears in.)
h261codec.cxx:535: error: syntax error before `)' token
h261codec.cxx:536: error: syntax error before `)' token
h261codec.cxx:547: error: syntax error before `)' token
h261codec.cxx:654: error: syntax error before `)' token
h261codec.cxx: In member function `BOOL
H323_H261Codec::Resize(int, int)':
h261codec.cxx:822: error: syntax error before `)' token
h261codec.cxx: In member function `BOOL
H323_H261Codec::RenderFrame()':
h261codec.cxx:858: error: syntax error before `)' token
make[1]: ***
[/root/openh323/lib/obj_linux_x86_r/h261codec.o] Error 1
make[1]: Leaving directory `/root/openh323_v1_19_0_1/src'
make: *** [opt] Error 2

####################

------------------------------------------------------------
------------
Check the FAQ before asking! - http://www.
openh323.org/~openh323/fom.cgi
The OpenH323 Project mailing list, using Mailman. To
unsubscribe or
change your subscription options, goto
htt
p://www.openh323.org/mailman/listinfo/openh323
Maintained by Quicknet Technologies, Inc - http://www.quicknet.net
------------------------------------------------------------
------------
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )