Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

compile issue

Help
Anonymous
2012-05-14
2013-04-25

  • Anonymous
    2012-05-14

    Hi,
    im trying to build  brutalchess 0.5.2  on fedora 16 with:
    .
    .
    .
    checking for stdint.h… yes
    checking for unistd.h… yes
    checking for stdbool.h that conforms to C99… yes
    checking for _Bool… yes
    checking for an ANSI C-conforming const… yes
    checking for inline… inline
    checking for X… no
    checking for OpenGL… yes
    checking GL/glx.h usability… yes
    checking GL/glx.h presence… yes
    checking for GL/glx.h… yes
    checking for sdl-config… /usr/bin/sdl-config
    checking for SDL - version >= 1.2.7… yes
    checking for freetype-config… /usr/bin/freetype-config
    checking for FreeType - version >= 7.0.1… yes
    checking for IMG_Load in -lSDL_image… yes

    and so on, now when i try to build i get this error:

    -lGLU  -lSDL -lpthread -lfreetype -lSDL_image
    if g++ -DHAVE_CONFIG_H -I. -I. -I. -DPREFIX_DIR=\"/usr/local/share/brutalchess/\" -DMODELS_DIR=\"/usr/local/share/brutalchess/models/\" -DART_DIR=\"/usr/local/share/brutalchess/art/\" -DFONTS_DIR=\"/usr/local/share/brutalchess/fonts/\"    -g -O2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2 -MT md3view.o -MD -MP -MF ".deps/md3view.Tpo" -c -o md3view.o md3view.cpp; \
    then mv -f ".deps/md3view.Tpo" ".deps/md3view.Po"; else rm -f ".deps/md3view.Tpo"; exit 1; fi
    md3view.cpp:75:13: error: ‘<anonymous>’ has incomplete type
    md3view.cpp:75:20: error: invalid use of ‘GLvoid {aka void}’
    md3view.cpp: In function ‘int resizeWindow(int, int)’:
    md3view.cpp:105:9: error: too few arguments to function ‘int initGL(<type error>)’
    md3view.cpp:75:5: note: declared here
    md3view.cpp: At global scope:
    md3view.cpp:111:13: error: ‘<anonymous>’ has incomplete type
    md3view.cpp:111:20: error: invalid use of ‘GLvoid {aka void}’
    md3view.cpp: In function ‘int main(int, char**)’:
    md3view.cpp:388:10: error: too few arguments to function ‘int initGL(<type error>)’
    md3view.cpp:111:5: note: declared here
    make: ***  Error 1
    make: Leaving directory `/home/mike/soft/brutalchess-0.5.2/src'
    make: ***  Error 2
    make: Leaving directory `/home/mike/soft/brutalchess-0.5.2/src'
    make: ***  Error 1

    now i understand that this may have something to do with the fact that  there was some change in what can compile as  C++ code:
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409486
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9278
    http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/dr_157.html

    i wanted to ask, has anyone found (r made) a solution to make brutalchess compile?  some version of brutalchess + slackbuld works like a charm on slackware 12.1 and  as well as corresponding slackbuilds and source  in 13.37  that i found on slackbuilds.org.  whats in the slackbuilds (r slackware) that makes this same source compile with gcc > 4.2? 
    i'd love to hear back from anyone whose got ideas. (though corrections are welcome , as im not 100% sure whats causing my build to fail, im just looking at the clues i got)
    easy.
    cheers

     

  • Anonymous
    2012-09-08

    for anyone else having trouble i found this fork of the dame project that patched the gcc  4.3 anf FTBS issue. :
    https://github.com/memyself101/brutal-chess

    cheers
    easy