Menu

#30 Linux build fails on latest trunk (glTexImage3D redeclaration)

v1.0_(example)
closed
nobody
None
1
2018-06-04
2017-05-10
No

Latest commit (r898) fails to build on both Ubuntu 16.04 and Ubuntu 17.04

Problem comes from a redeclaration of glTexImage3D in ref_gl/qgl.h, full build log attached

../client/../ref_gl/qgl.h:576:32: error: ‘glTexImage3D’ redeclared as different kind of symbol
 extern PFNGLTEXIMAGE3DPROC     glTexImage3D;
1 Attachments

Related

Bugs: #30

Discussion

  • Kirk Barnes

    Kirk Barnes - 2017-05-16

    check lastest svn build

     
  • Mathieu Comandon

    Nice! This error seems to be fixed!

    However I get another error at build time:

    client/cl_view.c.5.o: In function `CL_PrepRefresh':
    cl_view.c:(.text+0x4f8): undefined reference to `xiActiveController'
    cl_view.c:(.text+0x501): undefined reference to `SetRumble'
    client/cl_view.c.5.o: In function `V_RenderView':
    cl_view.c:(.text+0x1068): undefined reference to `xiActiveController'
    cl_view.c:(.text+0x1077): undefined reference to `SetRumble'
    cl_view.c:(.text+0x12fa): undefined reference to `xiActiveController'
    cl_view.c:(.text+0x1303): undefined reference to `SetRumble'
    collect2: error: ld returned 1 exit status
    

    Looks like some XInput related functions are getting in the Linux build.

     
    • Kirk Barnes

      Kirk Barnes - 2017-05-16

      remove it its xbox360 controller code for wimdows

      9:17, 16 мая 2017 г., Mathieu Comandon <strycore@users.sf.net>:

      Nice! This error seems to be fixed!


      However I get another error at build time:


      client/cl_view.c.5.o: In function </span><span>CL_PrepRefresh</span><span>':</span><br /><span>cl_view.c:(.text+0x4f8): undefined reference toxiActiveController'
      cl_view.c:(.text+0x501): undefined reference to </span><span>SetRumble</span><span>'</span><br /><span>client/cl_view.c.5.o: In functionV_RenderView':
      cl_view.c:(.text+0x1068): undefined reference to </span><span>xiActiveController</span><span>'</span><br /><span>cl_view.c:(.text+0x1077): undefined reference toSetRumble'
      cl_view.c:(.text+0x12fa): undefined reference to </span><span>xiActiveController</span><span>'</span><br /><span>cl_view.c:(.text+0x1303): undefined reference toSetRumble'
      collect2: error: ld returned 1 exit status



      Looks like some XInput related functions are getting in the Linux build.




      [bugs:#30] Linux build fails on latest trunk (glTexImage3D redeclaration)


      Status: open

      Group: v1.0_(example)

      Created: Wed May 10, 2017 01:30 AM UTC by Mathieu Comandon

      Last Updated: Tue May 16, 2017 06:08 AM UTC

      Owner: nobody

      Attachments:



      • build.log (sourceforge.net) (6.2 kB; text/x-log)


      Latest commit (r898) fails to build on both Ubuntu 16.04 and Ubuntu 17.04


      Problem comes from a redeclaration of glTexImage3D in ref_gl/qgl.h, full build log attached


      ../client/../ref_gl/qgl.h:576:32: error: ‘glTexImage3D’ redeclared as different kind of symbol
      extern PFNGLTEXIMAGE3DPROC glTexImage3D;





      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/quake2xp/bugs/30/


      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/









      --
      Отправлено из мобильного приложения Яндекс.Почты

       

      Related

      Bugs: #30

  • Kirk Barnes

    Kirk Barnes - 2017-05-16

    yes its xInput for xbox controller. Update source from svn

     
    • Mathieu Comandon

      Yep, that fixes one of the errors. There's still a #ifdef _WIN32 missing before line 204 in CL_PrepRefresh, commenting this line produces a successful build!

       
  • Kirk Barnes

    Kirk Barnes - 2017-05-16

    fix-fix-fix
    update code from svn)

     
    • Mathieu Comandon

      Ah well now something else broke X)

      ../linux/refresh.c: In function ‘GLimp_SetMode’:
      ../linux/refresh.c:168:23: error: ‘SDL_GL_CONTEXT_MAJOR_VERSION’ undeclared (first use in this function)
         SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, r_glMajorVersion->value);
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../linux/refresh.c:168:23: note: each undeclared identifier is reported only once for each function it appears in
      ../linux/refresh.c:169:23: error: ‘SDL_GL_CONTEXT_MINOR_VERSION’ undeclared (first use in this function)
         SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, r_glMinorVersion->value);
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../linux/refresh.c:170:23: error: ‘SDL_GL_CONTEXT_PROFILE_MASK’ undeclared (first use in this function)
         SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../linux/refresh.c:170:52: error: ‘SDL_GL_CONTEXT_PROFILE_COMPATIBILITY’ undeclared (first use in this function)
         SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      

      For the record, this is the script I use to produce the build: https://github.com/lutris/buildbot/blob/master/games/quake2xp/build.sh

       
  • Kirk Barnes

    Kirk Barnes - 2017-05-16

    ups! camment it
    in
    linux\refresh.c

    GLimp_SetMode

    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, r_glMajorVersion->value);
    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, r_glMinorVersion->value);
    SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);

     
    • Mathieu Comandon

      indeed, these constants seem to be specific to SDL2.

       
  • Kirk Barnes

    Kirk Barnes - 2017-05-16

    maybe yes) im comment it lines on svn

     
  • Mathieu Comandon

    Works perfectly now, I'll push an update soon to use the new build here: https://lutris.net/games/quake-2/

     
  • Kirk Barnes

    Kirk Barnes - 2018-06-04
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB