Problem with CVS version

GLtron
2006-10-07
2012-09-15
  • Nobody/Anonymous

    Hi,
    Have a little problem with compiling GLtron CVS under SUSE Linux 10.1:
    "...
    then mv -f ".deps/computer.Tpo" ".deps/computer.Po"; else rm -f ".deps/computer.Tpo"; exit 1; fi
    computer.c:18: error: static declaration of ‘ai_params’ follows non-static declaration
    ../../src/include/game/ai.h:26: error: previous declaration of ‘ai_params’ was here
    make[2]: [computer.o] Error 1
    make[2]: Leaving directory /home/stephan/src/GLtron/gltron/src/game' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/stephan/src/GLtron/gltron/src'
    make:
    [all-recursive] Error 1

    Can you help me ??

    Bye,
    Steve14

     
    • Nobody/Anonymous

      The details:

      ./configure: http://www.phpfi.com/163202

      make: http://www.phpfi.com/163205

      I can't understand why I get an error, as you can see, there aren't any problems in the ./configure-log.
      Does I have to compile some needed libraries with special flags or are there other solutions ??

      I'm using SUSE Linux 10.1 with kernel 2.6.16.21-0.25-default and KDE 3.5.5 on i686 architekture (AMD Sempron). My graphiccard has a NVidia GeForce FX5600 chip with 256 MB graphicmemory.
      I've 512 MB RAM.

      Greetings,
      Steve14

       
      • Andreas Umbach

        Andreas Umbach - 2006-10-13

        I managed to compile gltron without problems on a vanilla SuSE-10.0 (running inside VMware). Maybe the new compiler shipped in 10.1 is a bit more unforgiving than the one in 10.0. I'll have a look at the offending piece of code later tonight and see if there's an immediate fix.

        However, CVS is hopelessly out of date. The current code is always in the Subversion repository on BerliOS, see

        http://developer.berlios.de/svn/?group_id=2782

        on how to access it. I'm not 100% sure if that compiles cleanly, but it currently works both in MSVC 8.0 and 7.1 (there's also an MSVC 6 project, but that's unmaintained at the moment). I also think I recently updated the Makefile.am, but I'm not 100% sure.

        • Andreas
         
    • Nobody/Anonymous

      New version, new problem ;'(

      ./autogen.sh: http://www.phpfi.com/163329

      ./configure: http://www.phpfi.com/163331

      make: http://www.phpfi.com/163337

      sniff

       
      • Andreas Umbach

        Andreas Umbach - 2006-10-13

        Pesky compiler complaining about signedness issues. Also, apparently automagic conversion from (char) to (const char) is no longer possible and requires an explicit cast (why?).

        I hope it's fixed now...

        • Andreas
         
    • Nobody/Anonymous

      YEAH !!! I could compile everything right !! :D
      But there seems to miss a file in the svn-reposity.
      Here the startup-log:

      stephan@AMDlinux:~/src/GLtron/trunk> gltron
      [error] cannot load .gltronrc from /home/stephan/.gltronrc
      [warning] old config file version 0.000000 found, app version is 0.716000, overriding using defaults
      [warning] defunct config file found, overriding using defaults
      found artpack: default
      found artpack: metalTron
      found artpack: classic
      [status] loading artpack 'classic'
      found level: square.lua
      found level: tri.lua
      found level: ring.lua
      found artpack: default
      found artpack: metalTron
      found artpack: classic
      [status] loading artpack 'classic'
      ignoring (0,0) initial window position - feature not implemented
      GL vendor: NVIDIA Corporation
      GL renderer: GeForce FX 5600/AGP/SSE2/3DNOW!
      GL version: 2.0.2 NVIDIA 87.74
      Bitdepth:
      Red: 8
      Green: 8
      Blue: 8
      Alpha: 8
      can't set reshape function (0x8054a04) - feature not supported
      using min_filter: 9987 (setting: 3)
      [status] done loading textures...
      [status] done loading fonts...
      *** failed to locate file 'lightcycle-ultra-high.obj' at '/usr/local/share/gltron/data/lightcycle-ultra-high.obj' (type 2)
      gltron: debug_memory.c:28: nebu_assert_int: Assertion `value' failed.
      Abgebrochen
      stephan@AMDlinux:~/src/GLtron/trunk>

      Many Greetings,
      Steve14

       
      • Andreas Umbach

        Andreas Umbach - 2006-10-14

        Oh, it's just missing from Makefile.am (probably together with a few other files). I'll check in the necessary fixed later, in the meantime you can do:

        make clean
        ./configure --enable-localdata
        make
        ./gltron

        i.e. you don't execute make install, but start it from the source directory (--enable-localdata tells it to look for the data files in the current directory).

        • Andreas
         
    • Nobody/Anonymous

      When I configure and compile it with --enable-localdata I get this error message:

      nebu/filesystem/libfilesystem.a(findpath.o): In function goto_installpath': findpath.c:(.text+0x160): undefined reference tonebu_assert'
      collect2: ld returned 1 exit status
      make[1]: [gltron] Fehler 1
      make[1]: Leaving directory `/home/stephan/src/GLtron/trunk'
      make:
      [all-recursive] Fehler 1
      stephan@AMDlinux:~/src/GLtron/trunk>

      When I compile it without any options i don't get any error messages.

      [Other Solution]: Have copied "lightcycle-ultra-high.mtl" and "lightcycle-ultra-high.obj" from the source directory to the default installation directory (/usr/local/share/gltron). So I can run the SVN version now.

      Many greetings,
      Steve14

      PS: Will post here some bugs.

       

Log in to post a comment.