Author Topic: Problems with compiling libUFO  (Read 3369 times)

PolitikerNEU

  • Guest
Problems with compiling libUFO
« on: 16 July 2009, 08:41:52 »
Hello everyone, especially Hailstone!

I maybe wanted to try to make an In-Game map-editor (Try because I know neither OpenGL nor libUFO and don't know if I can do it) and since we should use libUFO now, I wanted to compile libUFO first, but the problem is, that:
*) ./autogen.sh gives me many errors
*) if I run make, it says
Code: [Select]
Making all in include
make[1]: Entering directory `/home/robert/games/glestadv/ufo-0.8.4/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/robert/games/glestadv/ufo-0.8.4/include'
Making all in src
make[1]: Entering directory `/home/robert/games/glestadv/ufo-0.8.4/src'
depbase=`echo uabstractcontext.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
        /bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -DUFO_BUILDING_DLL -I. -I../include/ufo/config     -g -O2  -DUFO_TARGET_OPENGL -I../include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT uabstractcontext.lo -MD -MP -MF $depbase.Tpo -c -o uabstractcontext.lo uabstractcontext.cpp &&\
        mv -f $depbase.Tpo $depbase.Plo
../libtool: line 454: CDPATH: command not found
../libtool: line 1132: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.6 Debian-2.2.6a-4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-4
libtool: and run autoconf again.
make[1]: *** [uabstractcontext.lo] Error 63
make[1]: Leaving directory `/home/robert/games/glestadv/ufo-0.8.4/src'
make: *** [all-recursive] Error 1

Running aclocal in the source folder does not help, what can I do?

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Problems with compiling libUFO
« Reply #1 on: 16 July 2009, 12:29:55 »
Code: [Select]
libtool: Version mismatch error.  This is libtool 2.2.6 Debian-2.2.6a-4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-4
libtool: and run autoconf again.

Did you run autoconf ?

If so, you'll need to do some magic to 'recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-4' or find and install the older version it's expecting.

If not, run autoconf, if problem persists, see above paragraph.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Problems with compiling libUFO
« Reply #2 on: 16 July 2009, 14:44:14 »
Making an in-game map editor is a big task even for someone that does know what they are doing. I've also decided against using libUFO because the skinning wasn't as flexible as I wanted; only changes colours not entire images. I've been looking into http://sourceforge.net/projects/openglui/ but I still have a linker error when trying to use it with SDL. I've successfully used CEGUI in GAE but it uses lots of type casts and it's very heavy weight.

I think improving the existing editor is the way to go. There has been a request for information in the status bar when the mouse hovers over a tile (such as height, and coordinates for the lua scripts would also be good). Let me know if you have any ideas.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/