Compile error in SMC 1.9 and CEGUI 0.7.7

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

saugat
Just popping in
Just popping in
Posts: 2
Joined: Fri Aug 10, 2012 09:15

Compile error in SMC 1.9 and CEGUI 0.7.7

Postby saugat » Fri Aug 10, 2012 09:42

Hi

I am new to SDL and CEUI(0.7.7) and was compiling secret Maryo Chronicles (smc 1.9) on Ubuntu.I was able to build CEGUI without any errors. I downloaded all the required packages and ./configure was fine but when I compile I am getting error of missing openglrenderer.h file.
following is the output of configure and make for SMC.

Code: Select all

$./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for main in -lboost_filesystem... yes
checking for main in -lGL... yes
checking for main in -lGLU... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SDL... yes
checking for png_init_io in -lpng... yes
checking for IMG_LoadPNG_RW in -lSDL_image... yes
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking for TTF_Init in -lSDL_ttf... yes
checking for CEGUI... yes
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking SDL.h usability... yes
checking SDL.h presence... yes
checking for SDL.h... yes
checking SDL_image.h usability... yes
checking SDL_image.h presence... yes
checking for SDL_image.h... yes
checking SDL_mixer.h usability... yes
checking SDL_mixer.h presence... yes
checking for SDL_mixer.h... yes
checking SDL_ttf.h usability... yes
checking SDL_ttf.h presence... yes
checking for SDL_ttf.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
$ make
make  all-recursive
make[1]: Entering directory `/home/saugat/linuxPrototype/smc-1.9'
Making all in src
make[2]: Entering directory `/home/saugat/linuxPrototype/smc-1.9/src'
g++ -DHAVE_CONFIG_H -I. -I..  -DDATA_DIR="\"/usr/local/share/smc\"" -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL   -I/usr/local/include -I/usr/local/include/CEGUI   -Wall -Wpointer-arith -g -O2 -MT audio.o -MD -MP -MF .deps/audio.Tpo -c -o audio.o `test -f 'audio/audio.cpp' || echo './'`audio/audio.cpp
In file included from audio/../core/../objects/../objects/sprite.h:21:0,
                 from audio/../core/../objects/movingsprite.h:19,
                 from audio/../core/game_core.h:19,
                 from audio/audio.cpp:17:
audio/../core/../objects/../objects/../video/video.h:26:62: fatal error: RendererModules/OpenGLGUIRenderer/openglrenderer.h: No such file or directory
compilation terminated.
make[2]: *** [audio.o] Error 1
make[2]: Leaving directory `/home/saugat/linuxPrototype/smc-1.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/saugat/linuxPrototype/smc-1.9'
make: *** [all] Error 2


I couldnt find the folder OpenGLGUIrendered also. I am missing out something
Thanks

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Compile error in SMC 1.9 and CEGUI 0.7.7

Postby Kulik » Fri Aug 10, 2012 11:24

Code: Select all

/usr/include/CEGUI/RendererModules/OpenGL $ ll

total 60
drwxr-xr-x. 2 root root  4096 Jun  5 12:38 .
drwxr-xr-x. 5 root root  4096 Mar 17 22:33 ..
-rw-r--r--. 1 root root  2932 Mar 17 22:33 CEGUIOpenGLFBOTextureTarget.h
-rw-r--r--. 1 root root  4491 Mar 17 22:33 CEGUIOpenGLGeometryBuffer.h
-rw-r--r--. 1 root root  3739 Mar 17 22:33 CEGUIOpenGLGLXPBTextureTarget.h
-rw-r--r--. 1 root root  1867 Mar 17 22:33 CEGUIOpenGL.h
-rw-r--r--. 1 root root 11875 Mar 17 22:33 CEGUIOpenGLRenderer.h
-rw-r--r--. 1 root root  3105 Mar 17 22:33 CEGUIOpenGLRenderTarget.h
-rw-r--r--. 1 root root  5572 Mar 17 22:33 CEGUIOpenGLTexture.h
-rw-r--r--. 1 root root  3086 Mar 17 22:33 CEGUIOpenGLTextureTarget.h
-rw-r--r--. 1 root root  2657 Mar 17 22:33 CEGUIOpenGLViewportTarget.h

saugat
Just popping in
Just popping in
Posts: 2
Joined: Fri Aug 10, 2012 09:15

Re: Compile error in SMC 1.9 and CEGUI 0.7.7

Postby saugat » Sat Aug 11, 2012 09:21

Hi Kulik

I could locate the files you listed.

Code: Select all

/usr/local/include/CEGUI/RendererModules/OpenGL$ ls
CEGUIOpenGLFBOTextureTarget.h  CEGUIOpenGLGLXPBTextureTarget.h  CEGUIOpenGLRenderer.h      CEGUIOpenGLTexture.h        CEGUIOpenGLViewportTarget.h
CEGUIOpenGLGeometryBuffer.h    CEGUIOpenGL.h                    CEGUIOpenGLRenderTarget.h  CEGUIOpenGLTextureTarget.h


But the error I am getting is
fatal error: RendererModules/OpenGLGUIRenderer/openglrenderer.h: No such file or directory


I also included the path
export CPPFLAGS='-I/usr/local/include/CEGUI/'


Still No success. Do I need to install any other package.
Thanks.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Compile error in SMC 1.9 and CEGUI 0.7.7

Postby Kulik » Sat Aug 11, 2012 11:30

It's including the wrong thing. You won't solve this by changing include paths. I suspect it was made for an older version of CEGUI?

I would change the include to the right one and try compiling again.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Compile error in SMC 1.9 and CEGUI 0.7.7

Postby CrazyEddie » Mon Aug 13, 2012 08:49

SMC 1.9 needs CEGUI 0.6.x.

As far as I know, Linux distros are now using a later subversion snapshot version of the 1.9 code to provide compatibility with CEGUI 0.7.x.

CE.


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 11 guests