The way which I was originally shown to build new nodes for OpenSG involved using the existing OpenSG build system. It usually existed of these steps

  • Putting your node code into the source dir (I can’t remember which one)
  • Re-running configure for it to be copyied to the build dir
  • Use make and sudo make install to rebuild OpenSG and re install it all

Of course if your installing binaries from the repo’s you don’t want to be doing this. Instead you’ll need something like the following to build and link against the binaries. (with the -dev packages installed)

g++ -I`pwd` -I/usr/include/OpenSG `pkg-config OSGBase --cflags --libs` `pkg-config OSGSystem --cflags --libs` -shared -fPIC *.cpp -o libOSG<nodename>

Of course you’ll need to link against other libraries if you need them.

The compiled library can then just be copied into /usr/lib and you can start using it. The above build command can easily be broken down to work with autotools as well, allowing your new node to built on other distros which make use of pkg-config and have installed to different paths.

mythtv Planet

January 17, 2008

There is a new planet in the solar system of OSS, mythtv Planet. If you want your feeds to be added then send an email do Daviey to be added at addme@planetmythtv.com. Alternatively give him a poke on IRC. daviey [on] irc.freenode.net.