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.
1) I have a template class, say Foo.
OSGFoo.h:
template<typename TypeT>
class OSG_MYLIB_DLLMAPPING Foo
{
void someFunc();
static SomeClass someMember;
};
OSGFoo.cpp
template<typename TypeT>
void Foo:someFunc()
{
#fidef SOMECONDITION
doSomething();
#endif
}
template<typename TypeT>
SomeClass Foo:someMember;
Because of the static member, I have to explicitly
instantiate a class using Foo. Because of the ifdef
statement, I cannot write it into a macro like the
OSG_DLLEXPORT... stuff (I think).
OSGBar.h
class Bar {};
typedef Foo<Bar> FooBar;
OSGBar.cpp
#include "OSGFoo.cpp"
template class OSG_MYLIB_DLLMAPPING Foo<Bar>;
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?
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? Do I have to do
something similar to
OpenSG/Source/WindowSystem/QT/SConscript? How does
this script get executed?
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?
Björn
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden:
http://mail.yahoo.de
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users