Xavier Larrode a écrit :
Xavier Larrode a écrit :
Dirk Reiners a écrit :
Hi Xavier,
On Mon, 2005-08-01 at 17:40 +0200, Xavier Larrode wrote:
Hello all,
i don't manage to lauch the testTextParams example.
Actually i don't know if my FT2_lib is recognised by osg as if not we
get _backend = 0; wich must make a segfault like this.
But i put my configure like this :
./configure --prefix=/local/xlarrode/local/share --enable-glut
--enable-qt --with-qt=/local/xlarrode/local/qt --enable-jpg --enable-png
--enable-freetype1
--with-freetype1includedir=/usr/include/freetype1/freetype
--enable-freetype2
--with-freetype2includedir=/usr/include/freetype2/freetype
--with-add-incdir=/usr/include/freetype2/freetype
Perhaps it's wrong?
A little bit. ;) You don't need the Freetype ones (we don't have a
Freetype 2 really), but you do need --enable-text for the new text.
Sorry for the confusion
Dirk
ok no problem.
thank you Dirk and Andreas
Xavier
Ok it's not finish...
So now i have this :
/udd/xlarrode/local/CVS/OpenSG/Builds/i686-pc-linux-gnu-g++/SystemLib/lib-opt/libOSGSystem.so:
undefined reference to `osg::TextFT2Backend::TextFT2Backend()'collect2:
ld returned 1 exit status
make: *** [exe-opt/testAction] Error 1
so i have deleted the libOSGSystem.so in the lib-opt folder and when i
compile i have these warning :
-o obj-opt/OSGTextFaceFactory.o
/udd/xlarrode/local/CVS/OpenSG/Source/System/Text/OSGTextFaceFactory.cpp
/udd/xlarrode/local/CVS/OpenSG/Source/System/FieldContainer/OSGCoredNodePtr.inl:
In
member function `virtual osg::CoredNodePtrBase::~CoredNodePtrBase()':
/udd/xlarrode/local/CVS/OpenSG/Source/System/FieldContainer/Impl/OSGFieldContainerFactoryImpl.inl:126:
warning: inlining
failed in call to `bool
osg::FieldContainerFactory::unregisterFieldContainer(const
osg::FieldContainerPtr&)'
/udd/xlarrode/local/CVS/OpenSG/Source/System/FieldContainer/OSGCoredNodePtr.inl:84:
warning: called
from here
/udd/xlarrode/local/CVS/OpenSG/Source/System/FieldContainer/OSGCoredNodePtr.inl:
In
member function `virtual osg::CoredNodePtrBase::~CoredNodePtrBase()':
/udd/xlarrode/local/CVS/OpenSG/Source/System/FieldContainer/Impl/OSGFieldContainerFactoryImpl.inl:126:
warning: inlining
failed in call to `bool
osg::FieldContainerFactory::unregisterFieldContainer(const
osg::FieldContainerPtr&)'
/udd/xlarrode/local/CVS/OpenSG/Source/System/FieldContainer/OSGCoredNodePtr.inl:84:
warning: called
from here
And after it compile the lib .
g++ -shared -olib-opt/libOSGSystem.so \
So my question is, have you try the TestTextParams with the opt lib
because the dbg lib is allright for me.
Sorry for this.
Xavier
ok i found the problem.
Don't set on the ./configure the freetype1 and 2 with the -enable-text.
because with the
#ifdef OSG_WITH_FREETYPE1
#include "freetype.h"
the freetype.h of the freetype 2 is used... and not the freetype.h of
the freetype1
Xavier
|
- Re: [Opensg-users] TestTextParams Xavier Larrode
-