Main Page | Report this Page
 
   
Linux Forum Index  »  Linux Development - Applications  »  Compiling all of the IDL files with Autotools...
Page 1 of 1    
Author Message
yoursurrogategod at (no spam) gmail.com...
Posted: Thu Aug 28, 2008 3:10 pm
Guest
Hi,

In my project, I have a bunch of .idl files. IDL means Interface
Definition Language. It's used by a TAO compiler to generate C++
source files which can be used by C++ applications to talk to one
another using CORBA. I have a bunch of old Makefiles that compile all
of the .idl files and generate the .C, .h and .i files and lastly
compile the resulting C++ source files. But now the development of the
project is going into the direction of using Autotools in order to be
able to compile the entire source tree.

I've gotten to the point where I can compile the individual .idl
files, generate the C++ source and then compile the C++ source files
into .a files. This works fine. However, there is a problem. The .idl
files and the generated source files need to be pre-arranged in a
particular order so that the resulting C++ source files are not
created in such a manner where foo.idl depends on bar.idl and
foo.idl's C++ source files are generated first, then compiled by the C+
+ compiler and then exit with an error saying that fooClient.h does
not exist.

Essentially I would like to be able to go into a directory where
there are IDL files, compile all of them into C++ source files before
proceeding further using only Autotools. But, I have no idea how to
even go about it after much head-scratching Smile .

--ysg
yoursurrogategod at (no spam) gmail.com...
Posted: Mon Sep 01, 2008 4:11 am
Guest
On Aug 28, 9:10 pm, "yoursurrogate... at (no spam) gmail.com"
<yoursurrogate... at (no spam) gmail.com> wrote:
Quote:
Hi,

   In my project, I have a bunch of .idl files. IDL means Interface
Definition Language. It's used by a TAO compiler to generate C++
source files which can be used by C++ applications to talk to one
another using CORBA. I have a bunch of old Makefiles that compile all
of the .idl files and generate the .C, .h and .i files and lastly
compile the resulting C++ source files. But now the development of the
project is going into the direction of using Autotools in order to be
able to compile the entire source tree.

   I've gotten to the point where I can compile the individual .idl
files, generate the C++ source and then compile the C++ source files
into .a files. This works fine. However, there is a problem. The .idl
files and the generated source files need to be pre-arranged in a
particular order so that the resulting C++ source files are not
created in such a manner where foo.idl depends on bar.idl and
foo.idl's C++ source files are generated first, then compiled by the C+
+ compiler and then exit with an error saying that fooClient.h does
not exist.

   Essentially I would like to be able to go into a directory where
there are IDL files, compile all of them into C++ source files before
proceeding further using only Autotools. But, I have no idea how to
even go about it after much head-scratching Smile .

--ysg

Ok, let me put it another way. Lets say I want to run a bunch of
commands before the compilation process starts (anything at all). Is
there a way to do that? If so, that would be a life-saver.

--ysg
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Mon Dec 01, 2008 9:05 pm