Menu

Compile problems

Help
2008-10-24
2013-05-28
  • Bjoern Boschman

    Bjoern Boschman - 2008-10-24

    Hi,

    I'm trying to compile t38modem on Ubuntu Hardy but until now with no success :(

    I tried v1.0.0 and latest CVS (200810240930)
    I have libopenh323 install (v1.18.0)

    When using 1.0.0 I get the following compile error:

    g++  -D_REENTRANT -Wall  -I/usr/share/pwlib//include -DPTRACING -I/usr/share/openh323/include -DHAS_VPB -DUSE_LEGACY_PTY -O2   -c pmodeme.cxx -o obj_linux_x86_r/pmodeme.o
    pmodeme.cxx: In member function ‘BOOL ModemEngineBody::HandleClass8Cmd(const char**, PString&, BOOL&, BOOL&)’:
    pmodeme.cxx:1181: error: ‘MinFrequency’ is not a member of ‘PDTMFEncoder’
    pmodeme.cxx:1181: error: ‘MaxFrequency’ is not a member of ‘PDTMFEncoder’
    pmodeme.cxx:1182: error: ‘MinFrequency’ is not a member of ‘PDTMFEncoder’
    pmodeme.cxx:1182: error: ‘MaxFrequency’ is not a member of ‘PDTMFEncoder’
    pmodeme.cxx:1203: error: ‘MaxFrequency’ is not a member of ‘PDTMFEncoder’
    pmodeme.cxx:1205: error: ‘MinFrequency’ is not a member of ‘PDTMFEncoder’
    pmodeme.cxx:1212: error: ‘MaxFrequency’ is not a member of ‘PDTMFEncoder’
    pmodeme.cxx:1214: error: ‘MinFrequency’ is not a member of ‘PDTMFEncoder’
    pmodeme.cxx:1256: error: ‘class PDTMFEncoder’ has no member named ‘Generate’
    pmodeme.cxx:1296: error: ‘class PDTMFEncoder’ has no member named ‘Generate’
    pmodeme.cxx:1336: error: ‘class PDTMFEncoder’ has no member named ‘Generate’
    pmodeme.cxx:1364: error: cannot convert ‘unsigned char*’ to ‘const PInt16*’ in initialization
    make: *** [obj_linux_x86_r/pmodeme.o] Error 1

    When using latest CVS I get another error:

    g++  -D_REENTRANT -Wall  -I/usr/share/pwlib//include -DPTRACING -I/usr/share/openh323/include -DHAS_VPB -DUSE_LEGACY_PTY -O2   -c pmutils.cxx -o obj_linux_x86_r/pmutils.o
    In file included from pmutils.cxx:77:
    pmutils.h:116: error: ‘PBoolean’ does not name a type
    pmutils.h:117: error: ‘PBoolean’ does not name a type
    pmutils.h:205: error: ‘PBoolean’ does not name a type
    pmutils.h:215: error: ‘PBoolean’ does not name a type
    pmutils.h: In constructor ‘DataStream::DataStream(PINDEX)’:
    pmutils.h:197: error: class ‘DataStream’ does not have any field named ‘eof’
    pmutils.h: In member function ‘void DataStream::PutEof()’:
    pmutils.h:202: error: ‘eof’ was not declared in this scope
    pmutils.cxx: In constructor ‘ModemThread::ModemThread()’:
    pmutils.cxx:86: error: class ‘ModemThread’ does not have any field named ‘stop’
    pmutils.cxx:87: error: class ‘ModemThread’ does not have any field named ‘childstop’
    pmutils.cxx: In member function ‘void ModemThread::SignalChildStop()’:
    pmutils.cxx:92: error: ‘childstop’ was not declared in this scope
    pmutils.cxx: In member function ‘virtual void ModemThread::SignalStop()’:
    pmutils.cxx:97: error: ‘stop’ was not declared in this scope
    pmutils.cxx: In member function ‘int DataStream::PutData(const void*, PINDEX)’:
    pmutils.cxx:153: error: ‘eof’ was not declared in this scope
    pmutils.cxx: In member function ‘int DataStream::GetData(void*, PINDEX)’:
    pmutils.cxx:184: error: ‘eof’ was not declared in this scope
    pmutils.cxx: In member function ‘virtual void DataStream::Clean()’:
    pmutils.cxx:230: error: ‘eof’ was not declared in this scope
    make: *** [obj_linux_x86_r/pmutils.o] Error 1

    Any idea what I might do wrong?

     
    • Vyacheslav Frolov

      You have old version pwlib. Get the latest versions

      cvs -z9 -d :pserver:anonymous@openh323.cvs.sourceforge.net:/cvsroot/openh323 co ptlib_unix
      cvs -z9 -d :pserver:anonymous@openh323.cvs.sourceforge.net:/cvsroot/openh323 co openh323

      To build CVS version of t38modem with Open H323 Library define NO_PBOOLEAN:

      export NO_PBOOLEAN=1

      (You do not need it to build with latest version of H323 Plus Library)

       

Log in to post a comment.