Hi Bjoern,

On Tue, 2005-04-26 at 09:30 +0200, Björn Harmen Gerth wrote:
> Hello,
> 
> I have a few questions to setting up a new Library in
> OpenSG/Source/Experimental. I know of
> http://cvs.berlios.de/cgi-bin/viewcvs.cgi/*checkout*/opensgplus/HowToExtend/,
> but my I think my questions are a bit more specific.

you can say that again. ;)

> 1) I have a template class, say Foo.
...
> 
> And now the problem: The makefile tries to compile
> OSGFoo.cpp. How can I exclude that from compilation?
> Can I write something into common.libs.in or common.mk
> so that this file will be excluded?

Just don't call it OSG... The build system looks for all files starting
with OSG and compiles those, and only those.

> 2) There is a test application in the library. It's a
> QT app, it consists of the files testLib.h/.cpp,
> testLibWidget.h/.cpp, testLib.ui, testLib.ui.h, the
> latter two from the QT designer. Some files must be
> automatically generated from the ui file, and the .h's
> must be moc'ed. Can I still put the test app into the
> library dir and get it compiled? 

You can use your own build system, which is probably not a good idea for
something that at some point might go into the core. The OpenSG build
system will moc files that end with _qt.h (e.g.
OSGQGLManagedDesignerWidget_qt.h). We don't have any .ui files yet,
therefore there are no rules to update those automatically.

> Do I have to do
> something similar to
> OpenSG/Source/WindowSystem/QT/SConscript? How does
> this script get executed?

These are for the new build system we're planning. It uses an
alternative to make called SCons (http://www.scons.org/). It's
functional, but not fully done yet. 

> 3) I recently updated my OpenSG tree from a CVS
> version in December to a CVS version a month ago. Now
> I have a lot of libOSG*D.so files, but when I run make
> dbg the system looks for libOSG*.so files. My quick
> fix was to generate symlinks, but is there a proper
> way to solve this? I did run configure, but is there a
> new parameter or something?

Hm, that's weird. That might be a bug in the build system. Gerrit, can
you take a look at that?

Thanks

        Dirk


-- 
-- Dirk Reiners               OpenSG Forum             [EMAIL PROTECTED] 
-- The OpenSG Open Source Scenegraph:            http://www.opensg.org
-- Join the list at    http://lists.sf.net/lists/listinfo/opensg-users



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to