[openrtm-users 00444] Re: OpenRTM compilation erro
Geoffrey Biggs
geoffrey.biggs @ aist.go.jp
2008年 5月 2日 (金) 11:23:50 JST
This is usually caused by a change in the API between omniORB-4.0 and
omniORB-4.1. If you have omniORB-4.1 installed, you need to make the
following changes to the source code:
In the file rtm/NVUtil.cpp, change "char*" to "const char*" on lines
116, 132, 178, 203, 225, 258.
In the rtm/ directory, change all occurances of
PortableServer::RefCountServantBase to PortableServer::ServantBase. You
can do this with a couple of Perl commands executed in that directory:
perl -pi -e 's/RefCountServantBase/ServantBase/' *.h
perl -pi -e 's/RefCountServantBase/ServantBase/' *.cpp
Or use sed if you prefer.
Geoff Biggs
ZOYSA Nethali wrote:
> Dear all,
>
>
>
> When I try to compile OpenRTM I get the following error. I have install
> all dependencies. Do you have any idea about this.
>
>
>
> Error:
>
>
>
> g++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I../rtm/idl -I/usr/local/include
> -Wall -I/usr/local/include/COS/ -I/usr/local/include -Wall -O
> -I/usr/local/include/COS/ -MT NVUtil.lo -MD -MP -MF .deps/NVUtil.Tpo -c
> NVUtil.cpp -fPIC -DPIC -o .libs/NVUtil.o
>
> NVUtil.cpp: In function 'void NVUtil::copyToProperties(RTC::Properties&,
> const SDOPackage::NVList&)':
>
> NVUtil.cpp:117: error: no match for 'operator>>=' in '((const
> SDOPackage::NVList*)nv)->SDOPackage::NVList::<anonymous>._CORBA_Unbounded_Sequence<SDOPackage::NameValue>::<anonymous>._CORBA_Sequence<T>::operator[]
> [with T = SDOPackage::NameValue](i)->SDOPackage::NameValue::value >>= value'
>
> /usr/local/include/omniORB4/CORBA_Any.h:82: note: candidates are: void
> CORBA::Any::operator>>=(cdrStream&) const
>
> /usr/local/include/omniORB4/CORBA_Any.h:166: note:
> CORBA::Boolean CORBA::Any::operator>>=(CORBA::Short&) const
>
> /usr/local/include/omniORB4/CORBA_Any.h:167: note:
> CORBA::Boolean CORBA::Any::operator>>=(CORBA::UShort&) const
>
> /usr/local/include/omniORB4/CORBA_Any.h:168: note:
> CORBA::Boolean CORBA::Any::operator>>=(CORBA::Long&) const
>
>
>
>
>
> Thanks and regards,
>
> Nethali.
>
>
>
openrtm-users メーリングリストの案内