Menu

Errors compiling in GNU

Help
2016-11-12
2016-11-15
  • Burned Hdmi

    Burned Hdmi - 2016-11-12

    I opened the "BUILDING.txt" and installed all the libraries that it told me to and followed the instructions to build the "GNUmakefile" and the first error I got was this

    "g++ PEngine/audio.cpp -> PEngine/audio.o PEngine/audio.cpp:151:21: fatal error: AL/alut.h: No such file or directory compilation terminated. GNUmakefile:157: recipe for target 'PEngine/audio.o' failed make: [PEngine/audio.o] Error 1"

    so then i removed the "audio.cpp" file out of the "PEngine" folder and then entered the "make" command again then I got this error

    "-> ../bin/trigger-rally
    /usr/bin/ld: cannot find -lalut
    collect2: error: ld returned 1 exit status
    GNUmakefile:123: recipe for target '../bin/trigger-rally' failed
    make: [../bin/trigger-rally] Error 1"

    can anyone tell me what im doing wrong?

     

    Last edit: Burned Hdmi 2016-11-12
  • Andrei

    Andrei - 2016-11-12

    so then i removed the "audio.cpp" file out of the "PEngine" folder and then entered the "make" command again then I got this error

    Please don't do this. Restore all the files you may have removed so that the src/ directory has its original contents.

    g++ PEngine/audio.cpp -> PEngine/audio.o PEngine/audio.cpp:151:21: fatal error: AL/alut.h: No such file or directory compilation terminated. GNUmakefile:157: recipe for target 'PEngine/audio.o' failed make: [PEngine/audio.o] Error 1
    

    This error message tells that the OpenAL / freeALUT development library was not installed (the header file AL/alut.h is missing).

    Search again for these development libraries and install them. Possible names: libopenal-dev, libalut-dev, freealut-devel, openal-soft-devel, depending on your distro.

    As a last ditch effort, if you cannot find the libraries listed above, then download and build them yourself:

     
    • Burned Hdmi

      Burned Hdmi - 2016-11-15

      Thanks this helped!
      I'm new to all of this as you can tell.

       
      • Andrei

        Andrei - 2016-11-15

        Don't hesitate to ask again if you have future problems getting the game to run.

        And may I interest you in testing the future version 0.6.5 that's due to be released this December?

        The differences are purely technical (it uses newer versions of development libraries). So the new game looks and plays just like the current 0.6.4 but we want to make sure it works correctly for everybody.

         
  • Andrei

    Andrei - 2016-11-12

    Also, if my above post did not help you, please share more information about your system and tools.

    For example, if you're trying to build on Windows then you must use GNUmakefile.MSYS or GNUmakefile.MSYS64, like so:

    $ # 32-bit build
    $ make -f GNUmakefile.MSYS
    $ # 64-bit build
    $ make -f GNUmakefile.MSYS64
    
     

Log in to post a comment.