Step-by-step linux installation guide
Moderators: CEGUI MVP, CEGUI Team
Step-by-step linux installation guide
I'm hoping that someone would be kind enough to provide a step by step guide on how to get CEGUI installed on Linux for a person new to Linux. I know that there is a quick quide in the Wiki->FAQ, which I used and it looked like things went well, but I'm getting errors when trying to use(make) the samples provided. I'm not even sure what directory to put cegui_mk2 and it's dependent applications in, so I might have installed incorrectly(maybe libraries can't be found?). I really want to get this working, I just need some help as I'm very lost in the Linux environment. If anyone can help me get this working, I'll write up a nice doc on how to do this for other newbies.
Re: Step-by-step linux installation guide
What means "I'm not sure I have installed it in appropiate places"? To install it, just type:
make install
(you must do this as the "root" user). This will install the libraries and headers in the correct places (you can specify the directory to install the files with the --prefix= configure option, for example --prefix=/usr/local (which is the default anyway) tells to install libraries to /usr/local/lib and headers to /usr/local/include).
I personally am configuring CEGUI with a simple shell script:
-------- cut here cfg.sh ---------
CFLAGS="-s -O2" \
CXXFLAGS="-s -O2" \
LDFLAGS=-s \
./configure --without-xerces-c --with-gtk2
----------------------------------
First run the "bootstrap" script, then cfg.sh, and finally launch "make". When make will be successfully finished, run "make install".
This sequence is more or less the same for building and installing most packages from source code.
After the headers and libraries are installed in the correct places, you may try to run the sample programs (they are in the samples/bin directory - if they aren't built, go to Samples/ directory and run 'make' again). The OpenGL renderer should build by default and by default the samples will run with it just fine.
make install
(you must do this as the "root" user). This will install the libraries and headers in the correct places (you can specify the directory to install the files with the --prefix= configure option, for example --prefix=/usr/local (which is the default anyway) tells to install libraries to /usr/local/lib and headers to /usr/local/include).
I personally am configuring CEGUI with a simple shell script:
-------- cut here cfg.sh ---------
CFLAGS="-s -O2" \
CXXFLAGS="-s -O2" \
LDFLAGS=-s \
./configure --without-xerces-c --with-gtk2
----------------------------------
First run the "bootstrap" script, then cfg.sh, and finally launch "make". When make will be successfully finished, run "make install".
This sequence is more or less the same for building and installing most packages from source code.
After the headers and libraries are installed in the correct places, you may try to run the sample programs (they are in the samples/bin directory - if they aren't built, go to Samples/ directory and run 'make' again). The OpenGL renderer should build by default and by default the samples will run with it just fine.
Re: Step-by-step linux installation guide
Thanks for you help, however its still not going well.
I've followed the straight forward directions carefully and I'm not seeing any errors when doing configure or make.
When running configure I do see this:
checking for library containing glutInit... no
configure: OpenGL renderer enabled
checking for iluFlipImage in -lILU... yes
configure: Image loading via DevIL by OpenGL renderer enabled
configure: Use of OpenGL in Samples is disabled
Does it mean something is wrong?
Also, not sure if this is relevant, but when I open config.log I see something like this:
conftest.cc:15: error: 'exit' was not declared in this scope
configure:2493: $? = 1
configure: failed program was:
| /* confdefs.h. */
and there are a few more spots in config.log where it says confdefs.h failed.....
Finally, the sample executables aren't built and when I try and do a make in the Samples directory I get this:
make[1]: Entering directory `/usr/local/src/cegui_mk2/Samples'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory`/usr/local/src/cegui_mk2/Samples'
If I try and do a make in one of the specific samples directories I get this:
/usr/bin/ld: cannot find -lCEGUISampleHelper
collect2: ld returned 1 exit status
make[1]: *** [FirstWindow] Error 1
make[1]: Leaving directory `/usr/local/src/cegui_mk2/Samples/FirstWindow/src'
make: *** [all-recursive] Error 1
Does this mean something to anyone?
I've followed the straight forward directions carefully and I'm not seeing any errors when doing configure or make.
When running configure I do see this:
checking for library containing glutInit... no
configure: OpenGL renderer enabled
checking for iluFlipImage in -lILU... yes
configure: Image loading via DevIL by OpenGL renderer enabled
configure: Use of OpenGL in Samples is disabled
Does it mean something is wrong?
Also, not sure if this is relevant, but when I open config.log I see something like this:
conftest.cc:15: error: 'exit' was not declared in this scope
configure:2493: $? = 1
configure: failed program was:
| /* confdefs.h. */
and there are a few more spots in config.log where it says confdefs.h failed.....
Finally, the sample executables aren't built and when I try and do a make in the Samples directory I get this:
make[1]: Entering directory `/usr/local/src/cegui_mk2/Samples'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory`/usr/local/src/cegui_mk2/Samples'
If I try and do a make in one of the specific samples directories I get this:
/usr/bin/ld: cannot find -lCEGUISampleHelper
collect2: ld returned 1 exit status
make[1]: *** [FirstWindow] Error 1
make[1]: Leaving directory `/usr/local/src/cegui_mk2/Samples/FirstWindow/src'
make: *** [all-recursive] Error 1
Does this mean something to anyone?
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Step-by-step linux installation guide
It means that you do not have the glut development package(s) installed, or that configure was unable to find it.
To use OpenGL for the samples rquires that glut development packages be installed.
To use OpenGL for the samples rquires that glut development packages be installed.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Step-by-step linux installation guide
I installed glut and glut-devel and now it works! You're the best CrazyEddie - thanks!!! Thanks for your help too zap - I really appreciate it. 

Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 8 guests