rtiddsgen - relative path to idl as arg

2 posts / 0 new
Last post
Offline
Last seen: 2 years 6 months ago
Joined: 10/18/2013
Posts: 42
rtiddsgen - relative path to idl as arg

This doesn't seem to work.  looks like the script is prepending a definite path onto my ..\..\dir\sub_dir\datamodel.idl


It is probably something simple so i figured i'd ask the experts.

Fernando Garcia's picture
Offline
Last seen: 4 months 6 days ago
Joined: 05/18/2011
Posts: 199

Hello JayC,

I have tried to reproduce your issue and this is what I have found. Rtiddsgen tries to generate the files within the directory where the .idl file is. For instance if I run rtiddsgen like this

C:\Users\fgarcia\rti\test\idl>%NDDSHOME%\scripts\rtiddsgen hello_idl\hello.idl
Running rtiddsgen version 5.1.0, please wait ...
rtinddsgenhello.idl6644724754645220244.cc
Done

 C:\Users\fgarcia\rti\test\idl>dir hello_idl
... 
04/02/2014  05:56 PM             5,499 hello.cxx
04/02/2014  05:56 PM             2,985 hello.h
04/02/2014  05:56 PM                33 hello.idl
04/02/2014  05:56 PM            23,981 helloPlugin.cxx
04/02/2014  05:56 PM             8,016 helloPlugin.h
04/02/2014  05:56 PM             2,806 helloSupport.cxx
04/02/2014  05:56 PM             1,686 helloSupport.h
               7 File(s)         45,006 bytes
               2 Dir(s)  18,120,351,744 bytes free

However, you can specify an output directory when running rtiddsgen using the -d parameter. That is, the place where the files will be generated. In my case the current directory:

C:\Users\fgarcia\rti\test\idl>%NDDSHOME%\scripts\rtiddsgen hello_idl\hello.idl -d .
Running rtiddsgen version 5.1.0, please wait ...
rtinddsgenhello.idl5943653230881869028.cc
Done
C:\Users\fgarcia\rti\test\idl>dir
...
04/02/2014  06:02 PM             5,499 hello.cxx
04/02/2014  06:02 PM             2,985 hello.h
04/02/2014  06:02 PM                33 hello.idl
04/02/2014  06:02 PM            23,981 helloPlugin.cxx
04/02/2014  06:02 PM             8,016 helloPlugin.h
04/02/2014  06:02 PM             2,806 helloSupport.cxx
04/02/2014  06:02 PM             1,686 helloSupport.h
...
               6 File(s)         44,973 bytes
               3 Dir(s)  18,117,619,712 bytes free

I do not know if this answers your question. If it does not, can you give us more information on the problem you are running into? What is the command you are running? Does rtiddsgen give any error message or the files are just not generated in the directory you are expecting.

Thanks,
Fernando.