[omniORB] omniORB Environment

Duncan Grisby duncan at grisby.org
Sun Sep 30 16:52:19 BST 2007


On Thursday 27 September, "Arthur B Olsen" wrote:

> Im am a bit confused with the setup and build system.
> 
> I followed the directions. I created a directory called build under
> /usr/local/src/omniORB-4.1.0
> 
> I have built the source and installed omniorb in /usr/local/omniorb
> 
> I was expecting that i now could use the stuff under
> /usr/local/omniorb to buil my own applications.

You can.

> So first thing is to compile the examples. But trying to build the
> examples under /usr/local/src/omniORB-4.1.0/src/examples/ is a no go.

The build system that omniORB itself uses is an over-complex pile of
evolved make files and magic with virtual paths. It's not really a good
idea to try to extend it to compile your own code unless you understand
a lot about autoconf and GNU make.

As you have found, you can build the omniORB examples under the build
tree that's used for building omniORB itself, but that's not really a
good starting point for building your own code. The best thing to do is
to write some really simple makefiles that just compile the things you
need. All you need to do is set the include path to find the omniORB
headers, and to link with the right omniORB libraries.

Perhaps some kind soul would post a simple makefile they're using...

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list