Welcome to Help

Help
2005-06-15
2013-04-17
  • Welcome to Help

     
    • czil
      czil
      2005-07-10

      hi!

      need help to configure loose cannon. everytime i wanted to ./configure I get the message that python is not found. I remember something like "no include found" . I use mandrake 10.1, maybe it's in another folder? how do I tell this ./configure?

      cz

       
      • czil
        czil
        2005-07-10

        the message was:
        :/configure: line 4362: test: !=: unary operator expected

        this message comes 3 times

        the results of the python check:
        binary: python 2.3
        library: python2.3
        include dir: no
        configure: error:***python not found!

         
        • Jere Knaappila
          Jere Knaappila
          2005-07-11

          Hi, It seems configure found python binary and library but not headers. Python headers are usually distributed seperately.
          Do you have python development package installed?
          it is called python-devel, libpython-devel, libpython2.3-devel or similar

           
    • czil
      czil
      2005-07-17

      hi,

      thx for help. but, it doesn't work. I installed everything, now config find only the bin of python. can you tell me where config looks for this Include DIR? I think I only have to create a softlink and it will run.

       
      • Jere Knaappila
        Jere Knaappila
        2005-07-18

        Hi,
        configure uses locate to find header file. if you don't have locate or database is old, it may cause such errors. Quick fix is to manually replace line in configure:
        ax_python_header=`locate $ax_python_bin/Python.h | sed -e s,/Python.h,,`
        with:
        ax_python_header="/usr/local/python2.3"
        make sure you also change those backticks to double quotes.

        -Jere

         
    • czil
      czil
      2005-07-19

      thx Jere,
      this worked - with the includeDIR. but now I lost the lib..
      I installed the 2.4 version of python and the -devel and the lib. when I type #whereis python it's shown both 2.3 and 2.4
      so i run #locate -u to upgrade the database and the includeDIR was found with the line
      ax_python_header=`locate $ax_python_bin/Python.h | sed -e s,/Python.h,,`
      as well. but not the lib.
      do have any idea where it is gone? should I delete the version 2.3?

      thx for another ideas

       
      • Jere Knaappila
        Jere Knaappila
        2005-07-20

        Don't delete any packages, problem is in configure for not finding your library.
        I checked in CVS a new version of configure, that is more robust in finding headers and libraries, You should check out cvs tree, and try that. Instructions are in CVS page, replace modulename  with loosecannon.

        -Jere

         
    • czil
      czil
      2005-07-20

      thx, I tried it and I think it finds the python better now (now he gets version 2.3) but now configure cannot find the OpenGL-lib
      may I post the text configure tells me:

      root@Linux loosecannon-0.2.0]# ./configure
      checking build system type... i686-pc-linux-gnu
      checking host system type... i686-pc-linux-gnu
      checking target system type... i686-pc-linux-gnu
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for gawk... gawk
      checking whether make sets $(MAKE)... yes
      checking for g++... g++
      checking for C++ compiler default output file name... a.out
      checking whether the C++ compiler works... yes
      checking whether we are cross compiling... no
      checking for suffix of executables...
      checking for suffix of object files... o
      checking whether we are using the GNU C++ compiler... yes
      checking whether g++ accepts -g... yes
      checking for style of include used by make... GNU
      checking dependency style of g++... gcc3
      checking for gcc... gcc
      checking whether we are using the GNU C compiler... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to accept ANSI C... none needed
      checking dependency style of gcc... gcc3
      checking how to run the C preprocessor... gcc -E
      checking for /proc/self/maps... yes
      checking whether everything is installed to the same prefix... yes
      checking whether binary relocation support should be enabled... yes
      checking for pthread_getspecific in -lpthread... yes
      checking whether binary relocation should use threads... yes
      checking for python... /usr/bin/python
      configure: PYTHON_CSPEC=-fPIC -I/usr/include/python2.3
      configure: PYTHON_LSPEC= -L/usr/lib/python2.3/config -lm -lpthread -ldl  -lutil -lpython2.3 -Xlinker -export-dynamic
      checking for glVertex3f  in -lGL... no
      configure: error: *** OpenGL GL-library not found

      have I done something wrong?  I changed the following files in the loosecannon-folder: configure; configure.ac; aslocal.m4 and Makefile.in

      greets cz

       
      • Jere Knaappila
        Jere Knaappila
        2005-07-21

        There was a glitch in configure, so it looked only in /usr/lib for libGL. I fixed it and put a new version in CVS.

        Easiest way is to get the whole cvs tree, and not individual files.

        If you wish to get only individual files, you also need to get src/Makefile.in file, and create empty textobject.cpp and textobject.h files in src-directory.

        I'll try to make new version 0.3.0 in the coming weekend, that should fix these issues.

        -Jere

         
    • czil
      czil
      2005-07-21

      hi Jere,

      tried it with the new configure, also got and dreated the files you told me. it run a few lines further than yesterday ;-)

      checking whether binary relocation support should be enabled... yes
      checking for pthread_getspecific in -lpthread... yes
      checking whether binary relocation should use threads... yes
      checking for python... /usr/bin/python
      configure: PYTHON_CSPEC=-fPIC -I/usr/include/python2.3
      configure: PYTHON_LSPEC= -L/usr/lib/python2.3/config -lm -lpthread -ldl  -lutil -lpython2.3 -Xlinker -export-dynamic
      checking for glVertex3f  in -lGL... yes
      checking for gluBuild2DMipmaps in -lGLU... yes
      checking for IMG_LoadPNG_RW in -lSDL_image... no
      configure: error: *** SDL_image library not found
      [root@Linux loosecannon-0.2.0]#

      think I wait for new version or is there anything lost in my system?

      greets

      cz

       
      • Jere Knaappila
        Jere Knaappila
        2005-07-22

        Hi, I uploaded new version 0.3.0.
        It seems you need to get SDL_image and SDL_image-devel packages they are not distributed with main SDL.

        -Jere

         
    • czil
      czil
      2005-07-23

      Hi Jere!

      good news! loosecannon runs! I needed to install this SDL libs and also a libopenal0 - after this  configure and make have done their work. I tried to run the game but it's awful slow. my computer is just old and not the fastest, so it will take time to give you response how it works. is there any possibility to make it faster on old machines? something like give it more memory?

      -cz

       
      • Jere Knaappila
        Jere Knaappila
        2005-07-24

        Hi,
          Game doesn't need any fancy opengl-features, so it should work with older cards if you have at least somekind of 3d-acceleration.
          You can try to compile it with optimizations on:
        CXXFLAGS="-O3 -fno-exceptions -ffast-math -fomit-frame-pointer" ./configure
        make clean
        make
        It should improve performance.
          Also lowering resolution helps. If it is too slow at 640x480, you can manually edit ~/.loosecannon/options file, and lower resolution to 480x360 or 320x240. Or something else with aspect ratio of 1.33.

        -Jere

         
    • czil
      czil
      2005-09-24

      sorry Jere for no message of me this long time.

      I tried to play the game, but my machine seems to be much too slow for it. the aliens are too fast for me.
      thanx for help and good luck

      cz