Hi, I'm having minor problems with the configure script and osg-config. I'm adding a new library to the system, where the files are located in Source/Experimental/CombinedBRep. As described in the "OpenSG Extension HOWTO", I added a common.mk and a common.libs.in to the directory, which are attached to this mail. As the new library depends on some other static libs, I appended the following lines to the configure command:
--with-add-incdir=/cygdrive/d/projekte/cpp/Meshlib-157b-angepasst/Meshlib
--with-add-libdir=/cygdrive/d/projekte/cpp/Meshlib-157b-angepasst/VC.NET:/cygdrive/d/projekte/cpp/Meshlib-External/Win32
--with-add-lib=Meshlib:pccts_release:oldnames
As you can see, I'm using Cygwin.
PROBLEM 1: I have to use the Cygwin/Unix notation to
specify the paths. If I were using
"d:/projekte/cpp...", it gets replaced by
"d:/cygwin/projekte/cpp..." in osg-config. That
directory does not exist.
After configure finished, I have, as usual, a Makefile
in Builds/i686-pc-cygwin-cl.net2003/ as well as two
new directories, CombinedBRepLib and CombinedBRepTest.
PROBLEM 2: The SUB_LIBS and SUB_TESTS variables in the
Makefile still read
SUB_LIBS := BaseLib SystemLib CombinedBRep
WindowWIN32Lib WindowQTLib WindowGLUTLib
SUB_TESTS := BaseTest SystemTest WindowWIN32Test
WindowQTTest WindowGLUTTest
, I have to add CombinedBRebLib and CombinedBRepTest
by myself.
After I did this, I can run make opt && make install,
which correctly builds the files and copies them to
/usr/local/*
Of course, now I would like to use the new DLL. But
running "osg-config --libs --opt Base" gives
-NODEFAULTLIB -LIBPATH:"d:\cygwin\usr\local/lib"
-LIBPATH:"d:\projekte\cpp\Meshl
ib-157b-angepasst\VC.NET"
-LIBPATH:"d:\projekte\cpp\Meshlib-External\Win32" OSGB
ase.lib MeshlibD.lib pccts_releaseD.lib oldnamesD.lib
user32.lib kernel32.lib MS
VCPRT.lib MSVCRT.lib winmm.lib wsock32.lib
PROBLEM 3: Why are the debug versions of the external
libs included? I used the switch "opt" for both the
Makefile and the osg-config command, so there
shouldn't appear any debug library. Apart from that,
oldnamesD.lib doesn't even exist...
PROBLEM 4:
I'm still not finished, there is one more curiosity.
Back to the configure script: I passed through
"--with-qt=..." my qt dir, where the lib and include
subdirs were correctly entered in commonQT.mk. But the
LIB_QT variable always stays empty, I have to manually
enter "qtmain.lib qt-mtedu322.lib".
Well, I hope there are some simple solutions to this,
maybe I overlooked some switches in the Makefiles...?
Best regards,
Björn
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden:
http://mail.yahoo.de
common.mk
Description: common.mk
common.libs.in
Description: common.libs.in
