Menu

0.6.3 building problems

jacob
2016-02-23
2016-03-19
  • jacob

    jacob - 2016-02-23

    Hello!
    Congrats with 0.6.3 release!
    I want to try it out. And as always, problematic compilation ;)

    current values of user-set variables:
        DESTDIR      ?= 
        prefix       ?= /usr/local
        exec_prefix  ?= /usr/local
        OPTIMS       ?= -march=native -mtune=native -Ofast
        WARNINGS     ?= -Wall -Wextra -pedantic
    
    g++ PEngine/vbuffer.cpp -> PEngine/vbuffer.o
    In file included from PEngine/vbuffer.cpp:8:0:
    ./include/pengine.h:24:21: fatal error: SDL/SDL.h: Немає такого файла або каталогу
     #include <SDL/SDL.h>
                         ^
    compilation terminated.
    make: *** [PEngine/vbuffer.o] Помилка 1
    boo@boobee-pc:~/Ігри/trigger-rally-0.6.3/src$
    

    Немає такого файла або каталогу (ukr) - no such file or directoty (eng)
    Помилка 1 - Error 1

    ...besides, how about .deb pack? :)

    arhhh, sorry, wrong section, mised that :\

     

    Last edit: jacob 2016-02-23
  • Andrei

    Andrei - 2016-02-23

    I want to try it out. And as always, problematic compilation ;)

    If I was a Linux user I'd simply tell you to RTFM...

    The building documentation, found in /doc/, enumerates the development libraries you need to install before attempting to build the game:

    LIBRARY NAME      POSSIBLE PACKAGE NAME
    ---------------------------------------
    GL                libgl1-mesa-dev
    GLU               libglu1-mesa-dev
    GLEW              libglew-dev
    OpenAL            libopenal-dev
    ALUT              libalut-dev
    PhysFS            libphysfs-dev
    SDL 1.2           libsdl1.2-dev
    SDL_image 1.2     libsdl-image1.2-dev
    

    In your particular case the SDL library seems to be missing. Please take note that you must install the old versions of SDL and SDL_image (1.2.15 and 1.2.12 respectively).

     
  • Vita

    Vita - 2016-03-19

    Hi, I have same problem, and yes, I read the /doc/ building file. I have SDL and SDL_Image (1.2.15 and 1.2.12 respectively).

    (I have all -dev packages installes)

    but running "make -j3" it won't compile:

    cxx::normal_iterator<std::basic_string<char>, std::vector<std::basic_string<char> > >; typename std::_Vector_base<_Tp, _Alloc>::pointer = std::basic_string<char>]
    vector<_Tp, _Alloc>::
    ^
    /usr/include/c++/4.8/bits/vector.tcc:146:5: note: no known conversion for argument 1 from ‘std::vector<std::basic_string<char> >::const_iterator {aka
    gnu_cxx::normal_iterator<const std::basic_string<char="">*, std::vector<std::basic_string<char> > >}’ to ‘std::vector<std::basic_string<char> >::iterator {aka gnu_cxx::normal_iterator<std::basic_string<char>*, std::vector<std::basic_string<char> > >}’
    /usr/include/c++/4.8/bits/vector.tcc:146:5: note: no known conversion for argument 1 from ‘std::vector<std::basic_string<char> >::const_iterator {aka
    gnu_cxx::normal_iterator<const std::basic_string<char="">*, std::vector<std::basic_string<char> > >}’ to ‘std::vector<std::basic_string<char> >::iterator {aka gnu_cxx::__normal_iterator<std::basic_string<char>*, std::vector<std::basic_string<char> > >}’
    make: [PEngine/vbuffer.o] Error 1
    make:
    Se espera a que terminen otras tareas....
    make: [PEngine/audio.o] Error 1
    make:
    [PEngine/render.o] Error 1

    with "make":

    /usr/include/c++/4.8/bits/vector.tcc:146:5: note: no known conversion for argument 1 from ‘std::vector<std::basic_string<char> >::const_iterator {aka gnu_cxx::normal_iterator<const std::basic_string<char="">, std::vector<std::basic_string<char> > >}’ to ‘std::vector<std::basic_string<char> >::iterator {aka gnu_cxx::normal_iterator<std::basic_string<char>, std::vector<std::basic_string<char> > >}’
    make: *** [PEngine/render.o] Error 1

    more info with "make":

    http://hastebin.com/ebudagokay.cpp

     

    Last edit: Vita 2016-03-19
  • Andrei

    Andrei - 2016-03-19

    Update your GCC to 4.9 or higher.

    If you are unable to upgrade GCC, attached to this post is an untested patch.

     

Log in to post a comment.