How to use .IDL file contents in QtCreator ?

4 posts / 0 new
Last post
Offline
Last seen: 5 years 10 months ago
Joined: 07/08/2015
Posts: 5
How to use .IDL file contents in QtCreator ?

I have generated the .IDL file for my structure, I am using QtCreator for development, how can I use.IDL files in QtCreator?

Organization:
Gerardo Pardo's picture
Offline
Last seen: 1 week 7 hours ago
Joined: 06/02/2010
Posts: 598

Hello,

Note: I am not familiar with QtCreator...

The general approach to integrating with an IDE is to run the rtiddgenutility to generate the C/C++ type support files. For a Foo.idl file this would be: Foo.cxx Foo.h Foo.idl FooPlugin.cxx FooPlugin.h FooSupport.cxx FooSupport.h

Then you can add these files into your project.

In addition if you want to have the files automatically updated each time the IDL file change. You need to add some rule to the IDL to execute:

rtiddsgen Foo.idl -ppDisable -language C++ -namespace -update typefiles

You can adjust the command-line options to fit teh desired code-generation. You can see all the options by running  rtiddsgen -help

Gerardo

Offline
Last seen: 5 years 10 months ago
Joined: 07/08/2015
Posts: 5

Thanks Mr Gerardo for your valuable comment :)

Offline
Last seen: 5 years 10 months ago
Joined: 07/08/2015
Posts: 5

Hello sir I am facing an issue and need ur help,Previously i successfully installed rti in my rhel using QT creator and generated code using the IDL. Now i want to do vice- versa i want to define IDL and create my own code.How can include IDL in my project and write my own c code,can you give an example