Compile quits on FirstWindow sample compilation

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
pokemoen
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Thu Mar 10, 2005 10:55
Contact:

Compile quits on FirstWindow sample compilation

Postby pokemoen » Thu Aug 04, 2005 16:50

Hi there,
I've been trying to get CEGUI cvs version to compile on Debian here but after fixing some missing deps and figuring out automake and autoconf a bit, I'm now somewhat stuck. I did:
aclocal && \
autoheader && \
automake --add-missing && \
autoconf && \
./configure && \
make
Then it gives an error on the FirstWindow sample:

Code: Select all

<...snip...>
Making all in FirstWindow
make[2]: Entering directory `/usr/src/cegui_mk2/Samples/FirstWindow'
Making all in src
make[3]: Entering directory `/usr/src/cegui_mk2/Samples/FirstWindow/src'
/bin/sh ../../../libtool --mode=link g++  -g -O2  -o FirstWindow -L../../../src -L../../../Samples/common/src Sample_FirstWindow.o -lCEGUIBase -lCEGUISampleHelper -lILU -lxerces-c -lpthread -ldl
g++ -g -O2 -o .libs/FirstWindow Sample_FirstWindow.o  -L/usr/src/cegui_mk2/src -L/usr/src/cegui_mk2/Samples/common/src -lCEGUIBase /usr/src/cegui_mk2/Samples/common/src/.libs/libCEGUISampleHelper.so /usr/lib/libILU.so -lxerces-c -lpthread -ldl -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: cannot find -lCEGUIBase
collect2: ld returned 1 exit status
make[3]: *** [FirstWindow] Error 1
make[3]: Leaving directory `/usr/src/cegui_mk2/Samples/FirstWindow/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/cegui_mk2/Samples/FirstWindow'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/cegui_mk2/Samples'
make: *** [all-recursive] Error 1
athlon64:/usr/src/cegui_mk2#

Might it have something to do with the -L in the makefile?
(should it point to the lib that was just created?)
I don't see any compiled stuff in the lib dir.. (/usr/src/cegui_mk2/lib)

Any ideas?
Note:I'm not a very experienced linux user...

Thanks in advance,
Alex

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

Re: Compile quits on FirstWindow sample compilation

Postby CrazyEddie » Fri Aug 05, 2005 08:15

You should use the ./bootstrap script we provide. You'll need to change permissions on the file to make it execuatble though (so chmod +x bootstrap, or similar). Basically, I think you're missing 'libtoolize --force' which we have in there :)

User avatar
pokemoen
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Thu Mar 10, 2005 10:55
Contact:

Re: Compile quits on FirstWindow sample compilation

Postby pokemoen » Fri Aug 05, 2005 16:11

Thanks Eddie, I had actually tried bootstrap but when it didn't work I didn't think of checking/making it executable :S
At first it didn't work now either, but after a clean cvs update and installing automake1.9 (I figured out I needed 1.9(not debian default) when I saw the symlinks in the 0.3.0 release, time for an INSTALL file? ;) ) it compiles.
Then I did a 'make install' and my program compiles fine, but when I try to run it, I get: "./Main: error while loading shared libraries: libCEGUIOpenGLRenderer.so.0: cannot open shared object file: No such file or directory"
The file mentioned is a symlink pointing to libCEGUIOpenGLRenderer.so.0.0.0..

Makefile:

Code: Select all

CXX= g++
CEGUI_CFLAGS= -Iinclude/CEGUI
CEGUI_LIBS= -L/usr/local/lib -lCEGUIOpenGLRenderer -lCEGUIBase
LDFLAGS= $(shell sdl-config --libs) -lGL -lGLU -lSDL_ttf -lSDL_image $(CEGUI_LIBS)
INCLUDES= -I. -I/usr/local/include/CEGUI -ISWCCGClient/
CXXFLAGS= $(shell sdl-config --cflags) $(INCLUDES) $(CEGUI_CFLAGS) -std=c++98 -g -O0

SRC_SWCCG= $(addprefix SWCCGClient/,game.cpp player.cpp  gui.cpp
SRC_MAIN= Main.cpp Common.cpp WindowManager.cpp SceneManager.cpp GuiManager.cpp TextureManager.cpp csv.cpp
OBJECTS= $(SRC_SWCCG:.cpp=.o) $(SRC_MAIN:.cpp=.o)


.PHONY: all
.SUFFIXES: .o .cpp

all: Main
        echo $(OBJECTS)

Main: $(OBJECTS)

clean c:
        find -name \*.o | xargs rm -f


Any ideas?
Thanks again

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

Re: Compile quits on FirstWindow sample compilation

Postby CrazyEddie » Fri Aug 05, 2005 18:14

Ensure that the install destination for the libs is listed in the /etc/ld.so.conf file, and then run ldconfig as root.

User avatar
pokemoen
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Thu Mar 10, 2005 10:55
Contact:

Re: Compile quits on FirstWindow sample compilation

Postby pokemoen » Fri Aug 05, 2005 23:46

Great, that worked!
Thanks!


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 12 guests