How to make OpenDDS standalone application executables?

  ace-tao, c++, opendds, visual-studio-2017

I am new to OpenDDS, I am using visual studio 2017, strawberry Perl

Currently, I can run DCSP examples using developer command prompt, setenv.cmd, and using executable commands

I want to run executables without setenv.cmd also without visual studio devenv command to open solution project to build, which means I should set all paths in setenv.cmd in visual studio,

I set the following paths in c++ additional includes, but did not work for me why is that?

 C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrappersbin
 C:UsersxxDesktopOpenDDS-masterOpenDDS-masterbin
 C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrapperslib
 C:UsersxxDesktopOpenDDS-masterOpenDDS-masterlib
 C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrappersMPC
 C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrappers
 C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrappersTAO
 C:UsersxxDesktopOpenDDS-masterOpenDDS-master

I get an error invoking tao IDL path could not found

 Invoking "bintao_idl on TestDDS.idl"
 The system cannot find the path specified.
 Invoking "bintao_idl on TestDDSTypeSupport.idl"
 The system cannot find the path specified.

setenv.cmd

 set PATH=%PATH%;C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrappersbin;C:UsersxxDesktopOpenDDS-masterOpenDDS-masterbin;C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrapperslib;C:UsersxxDesktopOpenDDS-masterOpenDDS-masterlib
 set CIAO_ROOT=unused
 set DANCE_ROOT=unused
 set MPC_ROOT=C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrappersMPC
 set MPC_ROOT=C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrappers
 set TAO_ROOT=C:UsersxxDesktopOpenDDS-masterOpenDDS-masterACE_wrappersTAO
 set DDS_ROOT=C:UsersxxDesktopOpenDDS-masterOpenDDS-master

also, I don’t understand is there anything to do with set MPC_ROOT, set MPC_ROOT, TAO_ROOT, DDS_ROOT keywords?

Source: Windows Questions C++

LEAVE A COMMENT