#6 Compilation failed in 0.3.1

open
nobody
None
5
2007-09-14
2007-09-14
g zombi
No

I'm not able to compile the new release:

if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../guichan -DPKG_DATA_DIR="\"/usr/local/share/qonk/\"" -g -O2 -MT menusystem.o -MD -MP -MF ".deps/menusystem.Tpo" -c -o menusystem.o menusystem.cpp; \ then mv -f ".deps/menusystem.Tpo" ".deps/menusystem.Po"; else rm -f ".deps/menusystem.Tpo"; exit 1; fi
menusystem.cpp:3:22: error: settings.h: Nincs ilyen fájl vagy könyvtár
menusystem.cpp:4:20: error: canvas.h: Nincs ilyen fájl vagy könyvtár
menusystem.cpp: In constructor ‘MenuSystem::MenuSystem(gcn::SDLInput*)’:
menusystem.cpp:18: error: ‘Canvas’ has not been declared
menusystem.cpp:32: error: ‘Settings’ was not declared in this scope
menusystem.cpp:32: error: expected primary-expression before ‘(’ token
menusystem.cpp:32: error: ‘Settings’ is not a class or namespace
menusystem.cpp:32: error: ‘Settings’ is not a class or namespace
menusystem.cpp: In member function ‘void MenuSystem::resize()’:
menusystem.cpp:82: error: ‘Settings’ has not been declared
menusystem.cpp:83: error: ‘Settings’ has not been declared
make[3]: *** [menusystem.o] Error 1
make[3]: Leaving directory `/home/zsombor/tmp/qonk-0.3.1/src/ui'
m

However I was able to compile to old 0.3.0 release.

Discussion

  • Thomas Klausner

    Thomas Klausner - 2007-09-14

    Logged In: YES
    user_id=205695
    Originator: NO

    The fix for this problem is to add src/ to the header search path.
    I'll attach a patch for Makefile.in that fixes it (a similar patch should be committed to Makefile.am).

     
  • Thomas Klausner

    Thomas Klausner - 2007-09-14

    Logged In: YES
    user_id=205695
    Originator: NO

    I don't know why, but I can't attach files. Here's the patch pasted (will probably break due to whitespace reasons):

    --- src/ui/Makefile.in.orig 2007-09-14 07:43:03.000000000 +0200
    +++ src/ui/Makefile.in
    @@ -54,7 +54,7 @@ libui_a_LIBADD =
    am_libui_a_OBJECTS = menuaction.$(OBJEXT) menu.$(OBJEXT) \ menuentry.$(OBJEXT) menusystem.$(OBJEXT)
    libui_a_OBJECTS = $(am_libui_a_OBJECTS)
    -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
    +DEFAULT_INCLUDES = -I. -I$(top_srcdir)/src -I$(srcdir) -I$(top_builddir)
    depcomp = $(SHELL) $(top_srcdir)/depcomp
    am__depfiles_maybe = depfiles
    CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \

     
  • Ben Asselstine

    Ben Asselstine - 2007-11-19

    Logged In: YES
    user_id=564659
    Originator: NO

    I have submitted a patch to the patch tracker that fixes this problem.

     

Log in to post a comment.