Error when compiling Messenger example PreviousNext
Data Distribution Service (DDS) Forum > DDS Technical Forum >
Message/Author
Next message Klaas Kabini  posted on Wednesday, May 05, 2010 - 12:37 pm
Hi everyone,

When I try to compile the Messenger example included in $DDS_ROOT/DevGuideExamples/DCPS using Microsoft Visual Studio 2005, I come across the following error message. Can someone help.
[code]
1>------ Rebuild All started: Project: Messenger_Idl_vc8, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'Messenger_Idl_vc8', configuration 'Debug|Win32'
1>Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl
1>Invoking D:\ACE+TAO-1.6a\ACE_wrappers\bin\tao_idl on MessengerTypeSupport.idl
1>tao-idli_xoWxWE.cpp
1>processing MessengerTypeSupport.idl
1>Invoking D:\ACE+TAO-1.6a\ACE_wrappers\bin\tao_idl on Messenger.idl
1>tao-idli_0O8u7b.cpp
1>processing Messenger.idl
1>Project : warning PRJ0018 : The following environment variables were not found:
1>$(OPENDDS_DCPS_TS_FLAGS)
1>Build log was saved at "file://d:\OpenDDS-2.1.2\DDS\DevGuideExamples\DCPS\Messenger\Debug\Messenger_Idl _vc8\I386\BuildLog.htm"
1>Messenger_Idl_vc8 - 0 error(s), 0 warning(s)
2>------ Rebuild All started: Project: Messenger_Publisher_vc8, Configuration: Debug Win32 ------
3>------ Rebuild All started: Project: Messenger_Subscriber_vc8, Configuration: Debug Win32 ------
3>Deleting intermediate and output files for project 'Messenger_Subscriber_vc8', configuration 'Debug|Win32'
2>Deleting intermediate and output files for project 'Messenger_Publisher_vc8', configuration 'Debug|Win32'
2>Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl
3>Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl
2>Invoking D:\ACE+TAO-1.6a\ACE_wrappers\bin\tao_idl on MessengerTypeSupport.idl
3>Invoking D:\ACE+TAO-1.6a\ACE_wrappers\bin\tao_idl on MessengerTypeSupport.idl
2>tao-idli_VMzSve.cpp
3>tao-idli_kqV3Hl.cpp
2>processing MessengerTypeSupport.idl
3>processing MessengerTypeSupport.idl
2>Invoking D:\ACE+TAO-1.6a\ACE_wrappers\bin\tao_idl on Messenger.idl
3>Invoking D:\ACE+TAO-1.6a\ACE_wrappers\bin\tao_idl on Messenger.idl
2>tao-idli_MLRy9K.cpp
2>processing Messenger.idl
2>Compiling...
3>tao-idli_NySNAe.cpp
3>processing Messenger.idl
3>Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl
2>Publisher.cpp
3>Invoking D:\ACE+TAO-1.6a\ACE_wrappers\bin\tao_idl on MessengerTypeSupport.idl
3>tao-idli_gep2To.cpp
2>MessengerTypeSupportS.cpp
3>processing MessengerTypeSupport.idl
3>(d:\ace+tao-1.6a\ace_wrappers\tao\tao_idl\be\be_visitor_root/root_ch.cpp:48) be_visitor_root_ch::init - Error opening client header file
3>(d:\ace+tao-1.6a\ace_wrappers\tao\tao_idl\be\be_visitor_root/root.cpp:46) be_visitor_root::init - failed to initialize context
3>BE_visit_root - client header for Root failed
3>Fatal Error - Aborting
3>Project : error PRJ0019: A tool returned an error code from "Invoking D:\ACE+TAO-1.6a\ACE_wrappers\bin\tao_idl on MessengerTypeSupport.idl"
3>Project : warning PRJ0018 : The following environment variables were not found:
3>$(OPENDDS_DCPS_TS_FLAGS)
3>Build log was saved at "file://d:\OpenDDS-2.1.2\DDS\DevGuideExamples\DCPS\Messenger\Debug\Messenger_Sub scriber_vc8\I386\BuildLog.htm"
3>Messenger_Subscriber_vc8 - 1 error(s), 0 warning(s)
2>MessengerTypeSupportImpl.cpp
2>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2282) : warning C4996: 'std::_Copy_opt' was declared deprecated
2> C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2270) : see declaration of 'std::_Copy_opt'
2> Message: 'You have used a std:: construct that is not safe. See documentation on how to use the Safe Standard C++ Library'
2> d:\OpenDDS-2.1.2\DDS\dds/DCPS/ZeroCopySeq_T.cpp(107) : see reference to function template instantiation '_OutIt std::copy<sample_t*,sample_t*>(_InIt,_InIt,_OutIt)' being compiled
2> with
2> [
2> _OutIt=Messenger::Message *,
2> Sample_T=Messenger::Message,
2> _InIt=Messenger::Message *
2> ]
2> d:\OpenDDS-2.1.2\DDS\dds/DCPS/ZeroCopySeq_T.cpp(64) : while compiling class template member function 'void TAO::DCPS::ZeroCopyDataSeq<sample_t,def_max>::length(CORBA::ULong)'
2> with
2> [
2> Sample_T=Messenger::Message,
2> DEF_MAX=20
2> ]
2> .\MessengerTypeSupportImpl.cpp(659) : see reference to class template instantiation 'TAO::DCPS::ZeroCopyDataSeq<sample_t,def_max>' being compiled
2> with
2> [
2> Sample_T=Messenger::Message,
2> DEF_MAX=20
2> ]
2>MessengerTypeSupportC.cpp
2>MessengerS.cpp
2>MessengerC.cpp
2>Generating Code...
2>Compiling manifest to resources...
2>Linking...
2> Creating library .\publisher.lib and object .\publisher.exp
2>Embedding manifest...
2>Project : warning PRJ0018 : The following environment variables were not found:
2>$(OPENDDS_DCPS_TS_FLAGS)
2>Build log was saved at "file://d:\OpenDDS-2.1.2\DDS\DevGuideExamples\DCPS\Messenger\Debug\Messenger_Pub lisher_vc8\I386\BuildLog.htm"
2>Messenger_Publisher_vc8 - 0 error(s), 1 warning(s)
========== Rebuild All: 2 succeeded, 1 failed, 0 skipped ==========

[code]
Next message Trevor Fields  posted on Monday, May 17, 2010 - 01:36 am
This is a result of using rebuild all. Build 2 and 3 are trying rebuild the same file because they each deleted it. It is better to use clean all and build all.
Next message jeetendra kumar  posted on Friday, July 20, 2012 - 10:56 am
Hi Trevor,
I am also getting the similar error while building the Messenger example, and moreover I tried separate build for all the 3 files. Followings are the error it's throwing:
------ Build started: Project: Messenger_Idl_vc8, Configuration: Debug Win32 ------
Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl
'perl' is not recognized as an internal or external command,
operable program or batch file.
Project : error PRJ0019: A tool returned an error code from "Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl"
Project : warning PRJ0018 : The following environment variables were not found:
$(OPENDDS_DCPS_TS_FLAGS)
Build log was saved at "file://d:\openDDS\OpenDDS-3.1\DDS\DevGuideExamples\DCPS\MessengerWorking\Debug\ Messenger_Idl_vc8\I386\BuildLog.htm"
Messenger_Idl_vc8 - 1 error(s), 0 warning(s)
------ Build started: Project: Messenger_Publisher_vc8, Configuration: Debug Win32 ------
Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl
'perl' is not recognized as an internal or external command,
operable program or batch file.
Project : error PRJ0019: A tool returned an error code from "Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl"
Project : warning PRJ0018 : The following environment variables were not found:
$(OPENDDS_DCPS_TS_FLAGS)
Build log was saved at "file://d:\openDDS\OpenDDS-3.1\DDS\DevGuideExamples\DCPS\MessengerWorking\Debug\ Messenger_Publisher_vc8\I386\BuildLog.htm"
Messenger_Publisher_vc8 - 1 error(s), 0 warning(s)
------ Build started: Project: Messenger_Subscriber_vc8, Configuration: Debug Win32 ------
Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl
'perl' is not recognized as an internal or external command,
operable program or batch file.
Project : error PRJ0019: A tool returned an error code from "Invoking perl ..\..\..\bin\dcps_ts.pl on Messenger.idl"
Project : warning PRJ0018 : The following environment variables were not found:
$(OPENDDS_DCPS_TS_FLAGS)
Build log was saved at "file://d:\openDDS\OpenDDS-3.1\DDS\DevGuideExamples\DCPS\MessengerWorking\Debug\ Messenger_Subscriber_vc8\I386\BuildLog.htm"
Messenger_Subscriber_vc8 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

Looking forward for your suggestion..

Bye,
Jeetendra
Next message jeetendra kumar  posted on Friday, July 20, 2012 - 10:59 am
Trevor,
Perl is not installed into system, but I was able to build the example previously but don't know..why now it's asking for perl and invoking dcps_ts.pl script...

Please suggest, how to fix this error.

Thanx,
Jeetendra
Next message jeetendra kumar  posted on Monday, July 23, 2012 - 06:00 am
Hi Trevor,
I am able to resolve the above error by directly invoking opendds_idl.exe on messenger.idl.

Thanx,
Jeetendra
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action: