h323plus/src/mediafmt.cxx errors in cross compilation

Discussion related to implementation and use of the H.323 Plus H.323 stack at https://www.h323plus.org.
Post Reply
mazilo
Posts: 45
Joined: Thu Sep 15, 2011 2:12 pm

h323plus/src/mediafmt.cxx errors in cross compilation

Post by mazilo »

Today, I just updated my local H323Plus CVS trunk and cross compilation spitted out the following error messages when trying to cross compile h323plus/src/mediafmt.cxx file.

Code: Select all

arm-openwrt-linux-uclibcgnueabi-g++ -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/ptlib2_svn/include  -DPTRACING=2 -D_REENTRANT -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.33_eabi/usr/include     -fexceptions -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.33_eabi/usr/include -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.33_eabi/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33_eabi/usr/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33_eabi/include  -Wall  -Wformat -Wformat-security -D_FORTIFY_SOURCE=2  -fPIC -DPIC -DNDEBUG -Os  -I/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/h323plus_cvs/include -fno-strict-aliasing -felide-constructors -Wreorder -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.33_eabi/usr/include -I/opt/openwrt-svn-trunk/staging_dir/target-arm_v5te_uClibc-0.9.33_eabi/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33_eabi/usr/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-arm_v5te_gcc-4.6-linaro_uClibc-0.9.33_eabi/include   -c mediafmt.cxx -o /opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/h323plus_cvs/lib/obj/mediafmt.o
mediafmt.cxx: In constructor 'OpalMediaFormat::OpalMediaFormat(const char*, PBoolean)':
mediafmt.cxx:656:5: error: 'KeyMap_T' is not a member of 'OpalMediaFormatFactory {aka PFactory<OpalMediaFormat, std::basic_string<char> >}'
mediafmt.cxx:656:40: error: 'keyMap' was not declared in this scope
mediafmt.cxx:656:49: error: 'GetKeyMap' is not a member of 'OpalMediaFormatFactory {aka PFactory<OpalMediaFormat, std::basic_string<char> >}'
mediafmt.cxx:657:29: error: 'OpalMediaFormatFactory<OpalMediaFormat, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::KeyMap_T' has not been declared
mediafmt.cxx:657:54: error: expected ';' before 'r'
mediafmt.cxx:658:10: error: 'r' was not declared in this scope
mediafmt.cxx: In constructor 'OpalMediaFormat::OpalMediaFormat(const char*, unsigned int, RTP_DataFrame::PayloadTypes, PBoolean, unsigned int, PINDEX, unsigned int, unsigned int, time_t)':
mediafmt.cxx:695:3: error: 'KeyMap_T' is not a member of 'OpalMediaFormatFactory {aka PFactory<OpalMediaFormat, std::basic_string<char> >}'
mediafmt.cxx:695:38: error: 'keyMap' was not declared in this scope
mediafmt.cxx:695:47: error: 'GetKeyMap' is not a member of 'OpalMediaFormatFactory {aka PFactory<OpalMediaFormat, std::basic_string<char> >}'
mediafmt.cxx:699:27: error: 'OpalMediaFormatFactory<OpalMediaFormat, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::KeyMap_T' has not been declared
mediafmt.cxx:699:46: error: expected ';' before 'r'
mediafmt.cxx:702:10: error: 'r' was not declared in this scope
mediafmt.cxx:713:12: error: 'r' was not declared in this scope
mediafmt.cxx: In static member function 'static void OpalMediaFormat::GetRegisteredMediaFormats(OpalMediaFormat::List&)':
mediafmt.cxx:750:3: error: 'KeyMap_T' is not a member of 'OpalMediaFormatFactory {aka PFactory<OpalMediaFormat, std::basic_string<char> >}'
mediafmt.cxx:750:38: error: 'keyMap' was not declared in this scope
mediafmt.cxx:750:47: error: 'GetKeyMap' is not a member of 'OpalMediaFormatFactory {aka PFactory<OpalMediaFormat, std::basic_string<char> >}'
mediafmt.cxx:751:27: error: 'OpalMediaFormatFactory<OpalMediaFormat, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::KeyMap_T' has not been declared
mediafmt.cxx:751:52: error: expected ';' before 'r'
mediafmt.cxx:752:8: error: 'r' was not declared in this scope
/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/ptlib2_svn/include/ptlib/sound.h: At global scope:
/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/ptlib2_svn/include/ptlib/sound.h:761:1: warning: 'PPlugin_PSoundChannel_WAVFile_loader' defined but not used [-Wunused-variable]
/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/ptlib2_svn/include/ptlib/videoio.h:1176:1: warning: 'PPlugin_PVideoInputDevice_FakeVideo_loader' defined but not used [-Wunused-variable]
/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/ptlib2_svn/include/ptlib/videoio.h:1183:1: warning: 'PPlugin_PVideoInputDevice_FFMPEG_loader' defined but not used [-Wunused-variable]
/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/ptlib2_svn/include/ptlib/videoio.h:1187:1: warning: 'PPlugin_PVideoInputDevice_YUVFile_loader' defined but not used [-Wunused-variable]
/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/ptlib2_svn/include/ptlib/pluginmgr.h:175:1: warning: 'PFactoryLoader::PluginLoaderStartup_loader' defined but not used [-Wunused-variable]
make[5]: *** [/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/h323plus_cvs/lib/obj/mediafmt.o] Error 1
make[5]: Leaving directory `/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/h323plus_cvs/src'
make[4]: *** [optshared] Error 2
make[4]: Leaving directory `/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/h323plus_cvs/src'
make[3]: *** [optshared] Error 2
make[3]: Leaving directory `/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/h323plus_cvs'
make[2]: *** [/opt/openwrt-svn-trunk/build_dir/target-arm_v5te_uClibc-0.9.33_eabi/h323plus_cvs/.built] Error 2
make[2]: Leaving directory `/opt/OpenWRT/feeds/packages/libs/h323plus_cvs'
shorne
Posts: 45
Joined: Thu Aug 27, 2009 4:17 am

Re: h323plus/src/mediafmt.cxx errors in cross compilation

Post by shorne »

Error was caused by changes in PTLIB PFactory handling just checked in. The h323plus CVS has been update and it should compile now.
mazilo
Posts: 45
Joined: Thu Sep 15, 2011 2:12 pm

Re: h323plus/src/mediafmt.cxx errors in cross compilation

Post by mazilo »

shorne wrote:Error was caused by changes in PTLIB PFactory handling just checked in. The h323plus CVS has been update and it should compile now.
Yes and indeed now the cross compilation is OK. Thank you.
Post Reply