Page 1 of 1

Cannot build LATEST GIT on GCC 4.8.2

PostPosted: 29 Jan 2014, 03:54
by dehavilland
[ 16%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/COpenGLSLMaterialRenderer.cpp.o
In file included from /home/highcheng/src/games/supertuxkart-code/lib/irrlicht/source/Irrlicht/COpenGLDriver.h:25:0,
from /home/highcheng/src/games/supertuxkart-code/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.cpp:22:
/home/highcheng/src/games/supertuxkart-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h:82:1: Error:expected initializer before ‘namespace’
namespace irr
^
lib/irrlicht/CMakeFiles/stkirrlicht.dir/build.make:1483: recipe for target 'lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/COpenGLSLMaterialRenderer.cpp.o' failed
make[2]: *** [lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/COpenGLSLMaterialRenderer.cpp.o] Error 1
CMakeFiles/Makefile2:323: recipe for target 'lib/irrlicht/CMakeFiles/stkirrlicht.dir/all' failed
make[1]: *** [lib/irrlicht/CMakeFiles/stkirrlicht.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
====================
Maybe there is a syntax error?

UPDATE Changed to latest GIT version but now I have new problems on PFNGLBLENDEQUATIONPROC and pGlBlendEquation. See my following post.

Re: Cannot build SVN 15119 on GCC 4.8.2

PostPosted: 29 Jan 2014, 07:23
by Arthur
SVN? We have officially moved to Git, so I suggest to get the latest version by following the instructions at http://supertuxkart.sourceforge.net/Source_control.

Re: Cannot build SVN 15119 on GCC 4.8.2

PostPosted: 29 Jan 2014, 16:53
by dehavilland
Arthur {l Wrote}:SVN? We have officially moved to Git, so I suggest to get the latest version by following the instructions at http://supertuxkart.sourceforge.net/Source_control.


Well...
I changed to GIT version now but I have:

In file included from /home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLDriver.h:25:0,
from /home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.cpp:22:
/home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h:1239:3: error: 'PFNGLBLENDEQUATIONPROC' does not name a type
PFNGLBLENDEQUATIONPROC pGlBlendEquation;
^
/home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlBlendEquation(GLenum)':
/home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h:2573:6: error: 'pGlBlendEquation' was not declared in this scope
if (pGlBlendEquation)
^

Re: Cannot build LATEST GIT on GCC 4.8.2

PostPosted: 30 Jan 2014, 13:47
by Totoplus62
I also have a problem (i downloaded stk-code from GIT and stk-assets sourceforge)
{l Code}: {l Select All Code}
[  1%] Built target enet
[ 13%] Built target bulletcollision
[ 15%] Built target bulletdynamics
[ 16%] Built target bulletmath
[ 16%] Building C object lib/wiiuse/CMakeFiles/wiiuse.dir/classic.c.o
In file included from /home/thomas/stk-code/lib/wiiuse/classic.h:37:0,
                 from /home/thomas/stk-code/lib/wiiuse/classic.c:34:
/home/thomas/stk-code/lib/wiiuse/wiiuse_internal.h:73:34: erreur fatale: bluetooth/bluetooth.h : Aucun fichier ou dossier de ce type
compilation terminée.
make[2]: *** [lib/wiiuse/CMakeFiles/wiiuse.dir/classic.c.o] Erreur 1
make[1]: *** [lib/wiiuse/CMakeFiles/wiiuse.dir/all] Erreur 2
make[1]: *** Attente des tâches non terminées....
[ 55%] Built target stkirrlicht
make: *** [all] Erreur 2

Re: Cannot build LATEST GIT on GCC 4.8.2

PostPosted: 30 Jan 2014, 22:41
by KroArtem
Totoplus: you need to install libbluetooth-dev (under ubuntu) or disable WIIUSE in cmake file.

Re: Cannot build SVN 15119 on GCC 4.8.2

PostPosted: 01 Feb 2014, 21:22
by Auria
dehavilland {l Wrote}:
Arthur {l Wrote}:SVN? We have officially moved to Git, so I suggest to get the latest version by following the instructions at http://supertuxkart.sourceforge.net/Source_control.


Well...
I changed to GIT version now but I have:

In file included from /home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLDriver.h:25:0,
from /home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.cpp:22:
/home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h:1239:3: error: 'PFNGLBLENDEQUATIONPROC' does not name a type
PFNGLBLENDEQUATIONPROC pGlBlendEquation;
^
/home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlBlendEquation(GLenum)':
/home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h:2573:6: error: 'pGlBlendEquation' was not declared in this scope
if (pGlBlendEquation)
^


There seems to be missing parts in your OpenGL headers. What version of mesa are you using?
Anyway as we get closer to a release we will look to stabilize things more, but for the moment we're trying to something nice working at all, and will likely concentrate on making it work for as many people as possible a bit later

Re: Cannot build LATEST GIT on GCC 4.8.2

PostPosted: 02 Feb 2014, 01:20
by vlj
I think I've fixed the issue with my last commits, can you give it a try ?

Re: Cannot build SVN 15119 on GCC 4.8.2

PostPosted: 05 Feb 2014, 01:21
by dehavilland
Auria {l Wrote}:
dehavilland {l Wrote}:
Arthur {l Wrote}:SVN? We have officially moved to Git, so I suggest to get the latest version by following the instructions at http://supertuxkart.sourceforge.net/Source_control.


Well...
I changed to GIT version now but I have:

In file included from /home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLDriver.h:25:0,
from /home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.cpp:22:
/home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h:1239:3: error: 'PFNGLBLENDEQUATIONPROC' does not name a type
PFNGLBLENDEQUATIONPROC pGlBlendEquation;
^
/home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h: In member function 'void irr::video::COpenGLExtensionHandler::extGlBlendEquation(GLenum)':
/home/highcheng/src/games/SUPERTUXKART/stk-code/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h:2573:6: error: 'pGlBlendEquation' was not declared in this scope
if (pGlBlendEquation)
^


There seems to be missing parts in your OpenGL headers. What version of mesa are you using?
Anyway as we get closer to a release we will look to stabilize things more, but for the moment we're trying to something nice working at all, and will likely concentrate on making it work for as many people as possible a bit later


I am using Mesa 10.
Maybe it is a problem for it. I have found a solution by vlj but it doesn't work.

By vlj:

I'm aware of the issue.

You can fix it by adding this line before #include "glext.h" in CIrrDeviceLinux.h/cpp :

"typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);"
I will come with a proper solution a bit later.

Re: Cannot build LATEST GIT on GCC 4.8.2

PostPosted: 05 Feb 2014, 01:22
by dehavilland
vlj {l Wrote}:I think I've fixed the issue with my last commits, can you give it a try ?


It's not working...:(