Step-by-step linux installation guide

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
samseed
Just popping in
Just popping in
Posts: 8
Joined: Fri Sep 23, 2005 06:50

Step-by-step linux installation guide

Postby samseed » Sat Sep 24, 2005 15:48

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.

User avatar
zap
Just popping in
Just popping in
Posts: 4
Joined: Thu Aug 04, 2005 06:41
Contact:

Re: Step-by-step linux installation guide

Postby zap » Sat Sep 24, 2005 18:43

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.

User avatar
samseed
Just popping in
Just popping in
Posts: 8
Joined: Fri Sep 23, 2005 06:50

Re: Step-by-step linux installation guide

Postby samseed » Sat Sep 24, 2005 23:18

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?

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

Re: Step-by-step linux installation guide

Postby CrazyEddie » Sun Sep 25, 2005 09:14

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.

User avatar
samseed
Just popping in
Just popping in
Posts: 8
Joined: Fri Sep 23, 2005 06:50

Re: Step-by-step linux installation guide

Postby samseed » Sun Sep 25, 2005 23:46

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. :D


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests