DynamicModule Loading Error!!!
Moderators: CEGUI MVP, CEGUI Team
DynamicModule Loading Error!!!
Hello,
I cross-compiled successfully Cegui for my target device, and made make DESDIR=targetpath install and I try now to execute one of the sample app, so I launch the exec file like lt-FirstWindow on my device, a frame appear on screen but without any pic and I have this error :
CEGUI::GenericException in file CEGUIDynamicModule.cpp(99) : DynamicModule::DynamicModule - Failed to load module 'libCEGUInone.so': libCEGUInone.so: cannot open shared object file: No such file or directory
An exception was thrown within the sample framework:
DynamicModule::DynamicModule - Failed to load module 'libCEGUInone.so': libCEGUInone.so: cannot open shared object file: No such file or directory
I changed LD_LIBRARY_PATH to point to correct cegui lib directory /usr/local/lib but didnt help!!
Please help
Thank You in advance
Aymen
I cross-compiled successfully Cegui for my target device, and made make DESDIR=targetpath install and I try now to execute one of the sample app, so I launch the exec file like lt-FirstWindow on my device, a frame appear on screen but without any pic and I have this error :
CEGUI::GenericException in file CEGUIDynamicModule.cpp(99) : DynamicModule::DynamicModule - Failed to load module 'libCEGUInone.so': libCEGUInone.so: cannot open shared object file: No such file or directory
An exception was thrown within the sample framework:
DynamicModule::DynamicModule - Failed to load module 'libCEGUInone.so': libCEGUInone.so: cannot open shared object file: No such file or directory
I changed LD_LIBRARY_PATH to point to correct cegui lib directory /usr/local/lib but didnt help!!
Please help
Thank You in advance
Aymen
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: DynamicModule Loading Error!!!
Hi,
I imagine there was a large WARNING!! block in the configure summary output - basically it seems that none of the XML parser modules (??) are built, or you set the default to 'none' yourself via the --with-default-xml-parser configure option. There must be an XML parser available to the system - whether that be one of those we provide or something you provide yourself.
CE.
I imagine there was a large WARNING!! block in the configure summary output - basically it seems that none of the XML parser modules (??) are built, or you set the default to 'none' yourself via the --with-default-xml-parser configure option. There must be an XML parser available to the system - whether that be one of those we provide or something you provide yourself.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: DynamicModule Loading Error!!!
Hello,
Thanks for your help, but I have libXML2 already installed on my system and also in the config.log, I found this lines
configure:20099: checking for libxml
configure:20107: $PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6"
configure:20110: $? = 0
configure:20125: $PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6"
configure:20128: $? = 0
conftest.cc:1:21: error: tinyxml.h: No such file or directory
configure:20519: $? = 1
configure: failed program was:
| #include <tinyxml.h>
configure:20513: sh4-linux-g++ -E -I/usr/local/include/tinyxml conftest.cc
conftest.cc:1:21: error: tinyxml.h: No such file or directory
pkg_cv_libxml_CFLAGS='-I/usr/include/libxml2 '
pkg_cv_libxml_LIBS='-lxml2 '
libxml_CFLAGS='-I/usr/include/libxml2 '
libxml_LIBS='-lxml2 '
configure:20737: Default XML Parser will be: ExpatParser
any help?
Thank You
Thanks for your help, but I have libXML2 already installed on my system and also in the config.log, I found this lines
configure:20099: checking for libxml
configure:20107: $PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6"
configure:20110: $? = 0
configure:20125: $PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6"
configure:20128: $? = 0
conftest.cc:1:21: error: tinyxml.h: No such file or directory
configure:20519: $? = 1
configure: failed program was:
| #include <tinyxml.h>
configure:20513: sh4-linux-g++ -E -I/usr/local/include/tinyxml conftest.cc
conftest.cc:1:21: error: tinyxml.h: No such file or directory
pkg_cv_libxml_CFLAGS='-I/usr/include/libxml2 '
pkg_cv_libxml_LIBS='-lxml2 '
libxml_CFLAGS='-I/usr/include/libxml2 '
libxml_LIBS='-lxml2 '
configure:20737: Default XML Parser will be: ExpatParser
any help?
Thank You
Re: DynamicModule Loading Error!!!
Hi Eddie,
I think u're right, I'm almost sure the problem comes from the xml parser, but for some reason it's well detected on the host machine, but in the target, dont find it...
* XML Parser Modules:
* Building TinyXMLParser: yes
* Using external TinyXML library: no
* Building ExpatParser: yes
* Building LibXMLParser: yes
* Building XercesParser: no
*
* Default XML Parser is: ExpatParser
do you know what modication should I make to hard-change the name of the xml parser? from none to ExpatParser...
Thanks for your quick answer.
Aymen
I think u're right, I'm almost sure the problem comes from the xml parser, but for some reason it's well detected on the host machine, but in the target, dont find it...
* XML Parser Modules:
* Building TinyXMLParser: yes
* Using external TinyXML library: no
* Building ExpatParser: yes
* Building LibXMLParser: yes
* Building XercesParser: no
*
* Default XML Parser is: ExpatParser
do you know what modication should I make to hard-change the name of the xml parser? from none to ExpatParser...
Thanks for your quick answer.
Aymen
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: DynamicModule Loading Error!!!
Hi,
You specify the name of the XML parser by way of the configure option "--with-default-xml-parser=<parser_name>", though having said this, I'm not so sure it is this now, because this:
Would seem to indicate that the parser name is set correctly - in the case where it could not find the module it should mention 'libCEGUIExpatParser.so' rather than 'libCEGUInone.so'.
I think the only other loadable module it could be is the ImageCodec; what does the summary output say about ImageCodecs?
CE.
You specify the name of the XML parser by way of the configure option "--with-default-xml-parser=<parser_name>", though having said this, I'm not so sure it is this now, because this:
* Default XML Parser is: ExpatParser
Would seem to indicate that the parser name is set correctly - in the case where it could not find the module it should mention 'libCEGUIExpatParser.so' rather than 'libCEGUInone.so'.
I think the only other loadable module it could be is the ImageCodec; what does the summary output say about ImageCodecs?
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: DynamicModule Loading Error!!!
Hi Eddie,
you're right!!!! no image codec at all but even with Silly installed and well configured its not detected by CEGUI configure. Im using DirectFB as rederer, maybe that's why it dont work? because on my computer that have opengl installed I found :
* Image Loading Codec Modules (currently for OpenGL Renderer only):
* Building Corona Image Codec: no
* Building DevIL Image Codec: no
* Building FreeImage Image Codec: no
* Building SILLY Image Codec: no
* Building TGA Image Codec: yes
but on the targt where I try to make CEgui works i only get this output :
* Crazy Eddie's GUI System - Configuration Results Summary
********************************************************************************
* Library Release Version: 0.6.2
*
* Code options:
* Building CEGUI in debug mode: no
*
* Renderer Modules:
* Building OpenGL Renderer: no
* Using external GLEW library: no
* Building Irrlicht Renderer: no
* Building DirectFB Renderer: yes
*
* XML Parser Modules:
* Building TinyXMLParser: yes
* Using external TinyXML library: no
* Building ExpatParser: yes
* Building LibXMLParser: yes
* Building XercesParser: no
*
* Default XML Parser is: ExpatParser
*
* Scripting:
* Building Lua scripting module: no
* Building tolua++cegui generator: no
*
* Samples Framework:
* Building Samples: yes
* GTK2 based dialog for renderer selection: no
* OpenGL Renderer available in samples: no
* Irrlicht Renderer available in samples: no
* DirectFB Renderer available in samples: yes
* Ogre3D Renderer available in samples: no
********************************************************************************
so does silly works with DirectFB Renderer? if not, how to do?
Thanks a lot for ur help
Aymen
you're right!!!! no image codec at all but even with Silly installed and well configured its not detected by CEGUI configure. Im using DirectFB as rederer, maybe that's why it dont work? because on my computer that have opengl installed I found :
* Image Loading Codec Modules (currently for OpenGL Renderer only):
* Building Corona Image Codec: no
* Building DevIL Image Codec: no
* Building FreeImage Image Codec: no
* Building SILLY Image Codec: no
* Building TGA Image Codec: yes
but on the targt where I try to make CEgui works i only get this output :
* Crazy Eddie's GUI System - Configuration Results Summary
********************************************************************************
* Library Release Version: 0.6.2
*
* Code options:
* Building CEGUI in debug mode: no
*
* Renderer Modules:
* Building OpenGL Renderer: no
* Using external GLEW library: no
* Building Irrlicht Renderer: no
* Building DirectFB Renderer: yes
*
* XML Parser Modules:
* Building TinyXMLParser: yes
* Using external TinyXML library: no
* Building ExpatParser: yes
* Building LibXMLParser: yes
* Building XercesParser: no
*
* Default XML Parser is: ExpatParser
*
* Scripting:
* Building Lua scripting module: no
* Building tolua++cegui generator: no
*
* Samples Framework:
* Building Samples: yes
* GTK2 based dialog for renderer selection: no
* OpenGL Renderer available in samples: no
* Irrlicht Renderer available in samples: no
* DirectFB Renderer available in samples: yes
* Ogre3D Renderer available in samples: no
********************************************************************************
so does silly works with DirectFB Renderer? if not, how to do?
Thanks a lot for ur help
Aymen
Re: DynamicModule Loading Error!!!
even if I specify Silly as imagecodec with -with-default-xml-parser, still have the same error, does directfb need imagecodec? I think no since it comes with its own codecs, but I dont understand why CEGUI try to load that library ( and by the way the lib dont exist, CEGUI dont compile it for some reason)
CEGUI::GenericException in file CEGUIDynamicModule.cpp(99) : DynamicModule::DynamicModule - Failed to load module 'libCEGUISILLYImageCodec.so': libCEGUISILLYImageCodec.so: cannot open shared object file: No such file or directory
An exception was thrown within the sample framework:
DynamicModule::DynamicModule - Failed to load module 'libCEGUISILLYImageCodec.so': libCEGUISILLYImageCodec.so: cannot open shared object file: No such file or directory
Thank you
CEGUI::GenericException in file CEGUIDynamicModule.cpp(99) : DynamicModule::DynamicModule - Failed to load module 'libCEGUISILLYImageCodec.so': libCEGUISILLYImageCodec.so: cannot open shared object file: No such file or directory
An exception was thrown within the sample framework:
DynamicModule::DynamicModule - Failed to load module 'libCEGUISILLYImageCodec.so': libCEGUISILLYImageCodec.so: cannot open shared object file: No such file or directory
Thank you
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: DynamicModule Loading Error!!!
Hi,
Yes, the ImageCodec system is also used with the DirectFB renderer, despite what that message says (it should have been removed, but was missed).
You don't use the '--with-default-xml-parser' to specify an ImageCodec, as the name implies, it sets the xml parser module. To set the ImageCodec module you use '--with-default-image-codec', although you need to set to a module that's being built (does the output not include which is set to the default image codec? I can't remember and I'm on the wrong machine to check!) . With regard to not finding silly, is the library installed in a location that's checked by pkg-config? If not - or if you're not sure - you might try specifying an appropriate location in the PKG_CONFIG_PATH environment variable.
CE.
Yes, the ImageCodec system is also used with the DirectFB renderer, despite what that message says (it should have been removed, but was missed).
You don't use the '--with-default-xml-parser' to specify an ImageCodec, as the name implies, it sets the xml parser module. To set the ImageCodec module you use '--with-default-image-codec', although you need to set to a module that's being built (does the output not include which is set to the default image codec? I can't remember and I'm on the wrong machine to check!) . With regard to not finding silly, is the library installed in a location that's checked by pkg-config? If not - or if you're not sure - you might try specifying an appropriate location in the PKG_CONFIG_PATH environment variable.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: DynamicModule Loading Error!!!
Hi and thx for your answer.
ah ok for directfb, then now i'm sure that the pb comes from Imagecodec since I get this in configure
configure: Default ImageCodec will be: none
I tried to install Silly, with --with-default-image-codec=SILLYImageCodec (it was tape mistake in last post sorry)
and got : configure: Default ImageCodec will be: SILLYImageCodec
but later in the summary :
********************************************************************************
* Crazy Eddie's GUI System - Configuration Results Summary
********************************************************************************
* Library Release Version: 0.6.2
*
* Code options:
* Building CEGUI in debug mode: no
*
* Renderer Modules:
* Building OpenGL Renderer: no
* Using external GLEW library: no
* Building Irrlicht Renderer: no
* Building DirectFB Renderer: yes
*
* XML Parser Modules:
* Building TinyXMLParser: yes
* Using external TinyXML library: no
* Building ExpatParser: yes
* Building LibXMLParser: yes
* Building XercesParser: no
*
* Default XML Parser is: ExpatParser
*
* Scripting:
* Building Lua scripting module: no
* Building tolua++cegui generator: no
*
* Samples Framework:
* Building Samples: yes
* GTK2 based dialog for renderer selection: no
* OpenGL Renderer available in samples: no
* Irrlicht Renderer available in samples: no
* DirectFB Renderer available in samples: yes
* Ogre3D Renderer available in samples: no
********************************************************************************
looks like if it detect directfb it skips Image codecs even silly.pc directory included in PKG_CONFIG_PATH
any help?
Thanks a lot
ah ok for directfb, then now i'm sure that the pb comes from Imagecodec since I get this in configure
configure: Default ImageCodec will be: none
I tried to install Silly, with --with-default-image-codec=SILLYImageCodec (it was tape mistake in last post sorry)
and got : configure: Default ImageCodec will be: SILLYImageCodec
but later in the summary :
********************************************************************************
* Crazy Eddie's GUI System - Configuration Results Summary
********************************************************************************
* Library Release Version: 0.6.2
*
* Code options:
* Building CEGUI in debug mode: no
*
* Renderer Modules:
* Building OpenGL Renderer: no
* Using external GLEW library: no
* Building Irrlicht Renderer: no
* Building DirectFB Renderer: yes
*
* XML Parser Modules:
* Building TinyXMLParser: yes
* Using external TinyXML library: no
* Building ExpatParser: yes
* Building LibXMLParser: yes
* Building XercesParser: no
*
* Default XML Parser is: ExpatParser
*
* Scripting:
* Building Lua scripting module: no
* Building tolua++cegui generator: no
*
* Samples Framework:
* Building Samples: yes
* GTK2 based dialog for renderer selection: no
* OpenGL Renderer available in samples: no
* Irrlicht Renderer available in samples: no
* DirectFB Renderer available in samples: yes
* Ogre3D Renderer available in samples: no
********************************************************************************
looks like if it detect directfb it skips Image codecs even silly.pc directory included in PKG_CONFIG_PATH
any help?
Thanks a lot
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: DynamicModule Loading Error!!!
Ok, it would seem that the issue only occurs when building the directFB renderer and not also building the OpenGL renderer - something I'd omitted to explicitly test. The problems effectively exist due to the ImageCodec's origins as a GL only thing, though it's no excuse - of course
The build files in the v0-6 branch will need to be fixed in order for this to work (simple fixes, nothing major). I'll try and do it this evening and post the results here.
CE.
The build files in the v0-6 branch will need to be fixed in order for this to work (simple fixes, nothing major). I'll try and do it this evening and post the results here.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: DynamicModule Loading Error!!!
Thanks a lot CE
waiting for the fix...
Aymen
waiting for the fix...
Aymen
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: DynamicModule Loading Error!!!
Ok, I have committed a fix to svn branches/v0-6 @ rev. 2050.
In case you're not using that, and are using the pre-packaged source code, the relevant patch is this:
HTH
CE.
In case you're not using that, and are using the pre-packaged source code, the relevant patch is this:
Code: Select all
Index: configure.ac
===================================================================
--- configure.ac (revision 2048)
+++ configure.ac (working copy)
@@ -91,6 +91,13 @@
CEGUI_ENABLE_IRRLICHT_RENDERER
CEGUI_ENABLE_DIRECTFB_RENDERER
+# process ImageCodec options
+cegui_run_codectests=no
+if test x"$cegui_enable_opengl" = xyes || test x"$cegui_enable_directfb" = xyes; then
+ cegui_run_codectests=yes
+fi
+CEGUI_ENABLE_IMAGE_CODECS([$cegui_run_codectests])
+
# decide whether to use gtk dialog in samples
CEGUI_CHECK_GTK_FOR_SAMPLES
@@ -223,8 +230,8 @@
echo "* Building Irrlicht Renderer: ${cegui_enable_irrlicht-no}"
echo "* Building DirectFB Renderer: ${cegui_enable_directfb-no}"
echo "*"
-if test x"$cegui_enable_opengl" = x"yes"; then
-echo "* Image Loading Codec Modules (currently for OpenGL Renderer only):"
+if test x"$cegui_enable_opengl" = x"yes" || test x"$cegui_enable_directfb" = x"yes"; then
+echo "* Image Loading Codec Modules (OpenGL and DirectFB Renderers only):"
echo "* Building Corona Image Codec: ${cegui_with_corona-no}"
echo "* Building DevIL Image Codec: ${cegui_with_devil-no}"
echo "* Building FreeImage Image Codec: ${cegui_with_freeimage-no}"
Index: acinclude.m4
===================================================================
--- acinclude.m4 (revision 2048)
+++ acinclude.m4 (working copy)
@@ -380,9 +380,10 @@
AC_LANG_POP([C++])
])
-AC_DEFUN([CEGUI_ENABLE_OPENGL_RENDERER], [
- AC_ARG_ENABLE([opengl-renderer], AC_HELP_STRING([--disable-opengl-renderer], [Disable the OpenGL renderer]),
- [cegui_enable_opengl=$enableval], [cegui_enable_opengl=yes])
+# CEGUI_ENABLE_IMAGE_CODECS(val))
+# tests availability of libs for image codec modules. pass this a parameter to
+# specify whether to run the tests (yes), or just output the AM_CONDITIONALs (no).
+AC_DEFUN([CEGUI_ENABLE_IMAGE_CODECS], [
AC_ARG_ENABLE([corona], AC_HELP_STRING([--enable-corona], [Enable image loading via Corona image codec by OpenGL renderer (auto)]),
[cegui_with_corona=$enableval], [cegui_with_corona=yes])
AC_ARG_WITH(corona-prefix, AC_HELP_STRING([--with-corona-prefix], [Prefix where corona is installed (optional)]),
@@ -400,73 +401,7 @@
to load a custom made image codec module as the default.]),
[cegui_default_image_codec=$withval], [cegui_default_image_codec=none])
- cegui_saved_LIBS="$LIBS"
- cegui_saved_CFLAGS="$CFLAGS"
-
- dnl detect OpenGL libs (done differently on mingw32 than on other systems)
- dnl -- On mingw32, checking for functions does not seem to work so well, so we just check for existance and hope for the best :-/
- case $host_os in
- *mingw32* )
- AC_CHECK_LIB([opengl32], [main], [cegui_found_lib_GL=yes; LIBS="-lopengl32 $LIBS"], [cegui_found_lib_GL=no])
- AC_CHECK_LIB([glu32], [main], [cegui_found_lib_GLU=yes; LIBS="-lglu32 $LIBS"], [cegui_found_lib_GLU=no])
-
- dnl Check for glut header
- AC_CHECK_HEADER([glut.h], [cegui_found_glut_h=yes],
- [AC_CHECK_HEADER([GL/glut.h], [cegui_found_glut_h=yes], [cegui_found_glut_h=no])])
-
- if test x$cegui_found_glut_h = xyes; then
- dnl Check for some glut variants. Done like this because AC_SEARCH_LIBS did not work at all here
- AC_CHECK_LIB([freeglut], [main], [cegui_found_lib_glut=yes; LIBS="-lfreeglut $LIBS"], [cegui_found_lib_glut=no])
- if test x$cegui_found_lib_glut = xno; then
- AC_CHECK_LIB([glut32], [main], [cegui_found_lib_glut=yes; LIBS="-lglut32 $LIBS"], [cegui_found_lib_glut=no])
- if test x$cegui_found_lib_glut = xno; then
- AC_CHECK_LIB([glut], [main], [cegui_found_lib_glut=yes; LIBS="-lglut $LIBS"], [cegui_found_lib_glut=no])
- fi
- fi
- else
- cegui_found_lib_glut=no
- fi
-
- OpenGL_CFLAGS=""
- OpenGL_LIBS=$LIBS
- echo $LIBS
- ;;
- * )
- AC_PATH_XTRA
- LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
-
- AC_SEARCH_LIBS(glInterleavedArrays, MesaGL GL, cegui_found_lib_GL=yes, cegui_found_lib_GL=no)
- AC_SEARCH_LIBS(gluOrtho2D, MesaGLU GLU, cegui_found_lib_GLU=yes, cegui_found_lib_GLU=no)
- AC_SEARCH_LIBS(glutInit, glut, cegui_found_lib_glut=yes, cegui_found_lib_glut=no)
- OpenGL_CFLAGS="$X_CFLAGS"
- OpenGL_LIBS=$LIBS
- ;;
- esac
-
- dnl Deal with possibility / option for external GLEW lib
- AC_ARG_ENABLE([external-glew], AC_HELP_STRING([--disable-external-glew], [Disables the use of any external GLEW library, forcing the use of the version that accompanies CEGUI.]),
- [cegui_use_external_glew=$enableval], [cegui_use_external_glew=yes])
- if test x$cegui_use_external_glew = xyes; then
- CEGUI_CHECK_GLEW([GLEW],
- [cegui_found_glew=yes; OpenGL_CFLAGS="$OpenGL_CFLAGS $GLEW_CFLAGS"; OpenGL_LIBS="OpenGL_LIBS $GLEW_LIBS"],
- [cegui_found_glew=no])
- else
- cegui_found_glew=no
- fi
-
- LIBS="$cegui_saved_LIBS"
- CFLAGS="$cegui_saved_CFLAGS"
-
- dnl decide whether to really build the OpenGL renderer
- if test x$cegui_enable_opengl = xyes && test x$cegui_found_lib_GL = xyes && test x$cegui_found_lib_GLU = xyes; then
- cegui_enable_opengl=yes
- else
- cegui_enable_opengl=no
- fi
-
- if test x$cegui_enable_opengl = xyes; then
- AC_MSG_NOTICE([OpenGL renderer enabled])
-
+ if test x"$1" = xyes; then
dnl DevIL
if test x$cegui_with_devil = xyes; then
AC_CHECK_LIB(IL, ilLoadL, [cegui_with_il_lib=yes], [cegui_with_il_lib=no], [])
@@ -507,6 +442,7 @@
else
AC_MSG_NOTICE([Image loading via FreeImage by OpenGL renderer disabled])
fi
+
dnl Silly
if test x$cegui_with_silly = xyes ; then
PKG_CHECK_MODULES([SILLY], [SILLY >= 0.1.0], [cegui_with_silly=yes], [cegui_with_silly=no])
@@ -558,25 +494,6 @@
AC_MSG_NOTICE([Image loading via Corona by OpenGL renderer disabled])
fi
- if test x$cegui_found_lib_glut = xyes; then
- cegui_samples_use_opengl=yes
- AC_DEFINE(CEGUI_SAMPLES_USE_OPENGL, [], [Define to have the OpenGL CEGUI renderer available in the samples (requires glut)])
- AC_MSG_NOTICE([Use of OpenGL in Samples is enabled])
- else
- cegui_samples_use_opengl=no
- AC_MSG_NOTICE([Use of OpenGL in Samples is disabled - Did not find GLUT library.])
- fi
-
- else
- cegui_with_freeimage=no
- cegui_with_devil=no
- cegui_with_corona=no
- cegui_with_tga=no
- cegui_with_silly=no
- AC_MSG_NOTICE([OpenGL renderer disabled])
- fi
-
- if test x$cegui_enable_opengl = xyes; then
if test x$cegui_default_image_codec = xnone ; then
if test x$cegui_with_devil = xyes ; then
cegui_default_image_codec=DevILImageCodec
@@ -593,26 +510,113 @@
if test x$cegui_with_tga = xyes ; then
cegui_default_image_codec=TGAImageCodec
else
- AC_MSG_ERROR([None of the ImageCodec are going to be build - unable to continue. Either enable an image codec or set a custom default.])
+ AC_MSG_ERROR([None of the ImageCodec are going to be built - unable to continue. Either enable an image codec or set a custom default.])
fi
fi
fi
fi
fi
fi
- fi
dnl define macro for the class of the default image codec to be used
AC_DEFINE_UNQUOTED(CEGUI_DEFAULT_IMAGE_CODEC, $cegui_default_image_codec, [Set this to the default ImageCodec to be used (CoronaImageCodec, DevILImageCodec FreeImageImageCode, SILLYImageCodec, TGAImageCodec).])
AC_MSG_NOTICE([Default ImageCodec will be: $cegui_default_image_codec])
+ fi
- AM_CONDITIONAL([BUILD_OPENGL_RENDERER], [test x$cegui_enable_opengl = xyes])
- AM_CONDITIONAL([CEGUI_SAMPLES_USE_OPENGL], [test x$cegui_samples_use_opengl = xyes])
AM_CONDITIONAL([CEGUI_BUILD_DEVIL_IMAGE_CODEC], [test x$cegui_with_devil = xyes])
AM_CONDITIONAL([CEGUI_BUILD_CORONA_IMAGE_CODEC], [test x$cegui_with_corona = xyes])
AM_CONDITIONAL([CEGUI_BUILD_SILLY_IMAGE_CODEC], [test x$cegui_with_silly = xyes])
AM_CONDITIONAL([CEGUI_BUILD_FREE_IMAGE_IMAGE_CODEC], [test x$cegui_with_freeimage = xyes])
AM_CONDITIONAL([CEGUI_BUILD_TGA_IMAGE_CODEC], [test x$cegui_with_tga = xyes])
+])
+
+
+AC_DEFUN([CEGUI_ENABLE_OPENGL_RENDERER], [
+ AC_ARG_ENABLE([opengl-renderer], AC_HELP_STRING([--disable-opengl-renderer], [Disable the OpenGL renderer]),
+ [cegui_enable_opengl=$enableval], [cegui_enable_opengl=yes])
+
+ cegui_saved_LIBS="$LIBS"
+ cegui_saved_CFLAGS="$CFLAGS"
+
+ dnl detect OpenGL libs (done differently on mingw32 than on other systems)
+ dnl -- On mingw32, checking for functions does not seem to work so well, so we just check for existance and hope for the best :-/
+ case $host_os in
+ *mingw32* )
+ AC_CHECK_LIB([opengl32], [main], [cegui_found_lib_GL=yes; LIBS="-lopengl32 $LIBS"], [cegui_found_lib_GL=no])
+ AC_CHECK_LIB([glu32], [main], [cegui_found_lib_GLU=yes; LIBS="-lglu32 $LIBS"], [cegui_found_lib_GLU=no])
+
+ dnl Check for glut header
+ AC_CHECK_HEADER([glut.h], [cegui_found_glut_h=yes],
+ [AC_CHECK_HEADER([GL/glut.h], [cegui_found_glut_h=yes], [cegui_found_glut_h=no])])
+
+ if test x$cegui_found_glut_h = xyes; then
+ dnl Check for some glut variants. Done like this because AC_SEARCH_LIBS did not work at all here
+ AC_CHECK_LIB([freeglut], [main], [cegui_found_lib_glut=yes; LIBS="-lfreeglut $LIBS"], [cegui_found_lib_glut=no])
+ if test x$cegui_found_lib_glut = xno; then
+ AC_CHECK_LIB([glut32], [main], [cegui_found_lib_glut=yes; LIBS="-lglut32 $LIBS"], [cegui_found_lib_glut=no])
+ if test x$cegui_found_lib_glut = xno; then
+ AC_CHECK_LIB([glut], [main], [cegui_found_lib_glut=yes; LIBS="-lglut $LIBS"], [cegui_found_lib_glut=no])
+ fi
+ fi
+ else
+ cegui_found_lib_glut=no
+ fi
+
+ OpenGL_CFLAGS=""
+ OpenGL_LIBS=$LIBS
+ echo $LIBS
+ ;;
+ * )
+ AC_PATH_XTRA
+ LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
+
+ AC_SEARCH_LIBS(glInterleavedArrays, MesaGL GL, cegui_found_lib_GL=yes, cegui_found_lib_GL=no)
+ AC_SEARCH_LIBS(gluOrtho2D, MesaGLU GLU, cegui_found_lib_GLU=yes, cegui_found_lib_GLU=no)
+ AC_SEARCH_LIBS(glutInit, glut, cegui_found_lib_glut=yes, cegui_found_lib_glut=no)
+ OpenGL_CFLAGS="$X_CFLAGS"
+ OpenGL_LIBS=$LIBS
+ ;;
+ esac
+
+ dnl Deal with possibility / option for external GLEW lib
+ AC_ARG_ENABLE([external-glew], AC_HELP_STRING([--disable-external-glew], [Disables the use of any external GLEW library, forcing the use of the version that accompanies CEGUI.]),
+ [cegui_use_external_glew=$enableval], [cegui_use_external_glew=yes])
+ if test x$cegui_use_external_glew = xyes; then
+ CEGUI_CHECK_GLEW([GLEW],
+ [cegui_found_glew=yes; OpenGL_CFLAGS="$OpenGL_CFLAGS $GLEW_CFLAGS"; OpenGL_LIBS="OpenGL_LIBS $GLEW_LIBS"],
+ [cegui_found_glew=no])
+ else
+ cegui_found_glew=no
+ fi
+
+ LIBS="$cegui_saved_LIBS"
+ CFLAGS="$cegui_saved_CFLAGS"
+
+ dnl decide whether to really build the OpenGL renderer
+ if test x$cegui_enable_opengl = xyes && test x$cegui_found_lib_GL = xyes && test x$cegui_found_lib_GLU = xyes; then
+ cegui_enable_opengl=yes
+ else
+ cegui_enable_opengl=no
+ fi
+
+ if test x$cegui_enable_opengl = xyes; then
+ AC_MSG_NOTICE([OpenGL renderer enabled])
+
+ if test x$cegui_found_lib_glut = xyes; then
+ cegui_samples_use_opengl=yes
+ AC_DEFINE(CEGUI_SAMPLES_USE_OPENGL, [], [Define to have the OpenGL CEGUI renderer available in the samples (requires glut)])
+ AC_MSG_NOTICE([Use of OpenGL in Samples is enabled])
+ else
+ cegui_samples_use_opengl=no
+ AC_MSG_NOTICE([Use of OpenGL in Samples is disabled - Did not find GLUT library.])
+ fi
+
+ else
+ AC_MSG_NOTICE([OpenGL renderer disabled])
+ fi
+
+ AM_CONDITIONAL([BUILD_OPENGL_RENDERER], [test x$cegui_enable_opengl = xyes])
+ AM_CONDITIONAL([CEGUI_SAMPLES_USE_OPENGL], [test x$cegui_samples_use_opengl = xyes])
AM_CONDITIONAL([BUILD_USING_INTERNAL_GLEW], [test x$cegui_found_glew = xno])
AC_SUBST(OpenGL_CFLAGS)
HTH
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: DynamicModule Loading Error!!!
Hi CE,
Thx a lot for the patch, now I detected Silly and installed it with CEGUI. but still get an error at the same place as before :
CEGUI::GenericException in file CEGUIDynamicModule.cpp(99) : DynamicModule::DynamicModule - Failed to load module 'libCEGUISILLYImageCodec.so': /usr/local/lib/libCEGUISILLYImageCodec.so: undefined symbol: _ZTVN5SILLY16MemoryDataSourceE
An exception was thrown within the sample framework:
DynamicModule::DynamicModule - Failed to load module 'libCEGUISILLYImageCodec.so': /usr/local/lib/libCEGUISILLYImageCodec.so: undefined symbol: _ZTVN5SILLY16MemoryDataSourceE
seems like he find the lib but can't charge objects from it...do u think the problem comes from Selly ? should I try another image codec?
Thanks a lot CE
Aymen
Thx a lot for the patch, now I detected Silly and installed it with CEGUI. but still get an error at the same place as before :
CEGUI::GenericException in file CEGUIDynamicModule.cpp(99) : DynamicModule::DynamicModule - Failed to load module 'libCEGUISILLYImageCodec.so': /usr/local/lib/libCEGUISILLYImageCodec.so: undefined symbol: _ZTVN5SILLY16MemoryDataSourceE
An exception was thrown within the sample framework:
DynamicModule::DynamicModule - Failed to load module 'libCEGUISILLYImageCodec.so': /usr/local/lib/libCEGUISILLYImageCodec.so: undefined symbol: _ZTVN5SILLY16MemoryDataSourceE
seems like he find the lib but can't charge objects from it...do u think the problem comes from Selly ? should I try another image codec?
Thanks a lot CE
Aymen
Re: DynamicModule Loading Error!!!
since Silly didnt works, I tried TGA ImageCodec and it works now but with too low fps 1-2 fps with all demos (except FirstWindow 15fps) and I dono why
any suggestion for this low fps? and for silly?
Thank you
any suggestion for this low fps? and for silly?
Thank you
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: DynamicModule Loading Error!!!
The SILLY thing, I think is that it can't find the main SILLY library (libSILLY.so) and therefore has unresolved symbols upon loading, the error string posted is truncated - not sure if it was like that in the log / message. You might check that by using ldd with the -d option and supplying libCEGUISillyImageCodec.so as the argument to ensure it can find all the required libs. If not, perhaps LD_LIBRARY_PATH is incorrect, or maybe you just need to ldconfig?
Low frame rates like this are indicative of unaccelerated rendering. I've posted before that I also have had similar issues with the DirectFB renderer (which was an external contribution) - I know my system is not accelerating DirectFB, and I get very low frame rates.
CE.
Low frame rates like this are indicative of unaccelerated rendering. I've posted before that I also have had similar issues with the DirectFB renderer (which was an external contribution) - I know my system is not accelerating DirectFB, and I get very low frame rates.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 14 guests