Cannot build LATEST GIT on GCC 4.8.2

Cannot build LATEST GIT on GCC 4.8.2

Postby dehavilland » 29 Jan 2014, 03:54

[ 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.
Last edited by dehavilland on 30 Jan 2014, 07:29, edited 1 time in total.
Ready to roll.
dehavilland
 
Posts: 15
Joined: 19 Mar 2012, 18:21
Location: Haidian, Beijing, China

Re: Cannot build SVN 15119 on GCC 4.8.2

Postby Arthur » 29 Jan 2014, 07:23

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.
Hey pal, I took an oath for justice! "In happy days or tightest tights..." or something like that.
User avatar
Arthur
 
Posts: 1073
Joined: 06 Dec 2009, 00:49

Re: Cannot build SVN 15119 on GCC 4.8.2

Postby dehavilland » 29 Jan 2014, 16:53

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)
^
Ready to roll.
dehavilland
 
Posts: 15
Joined: 19 Mar 2012, 18:21
Location: Haidian, Beijing, China

Re: Cannot build LATEST GIT on GCC 4.8.2

Postby Totoplus62 » 30 Jan 2014, 13:47

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
"Imagination is more important than knowledge." Features under CC-BY 3.0, CC-BY-SA 3.0 or equivalent GNU license
Image SuperTuxKart Popularity
User avatar
Totoplus62
 
Posts: 584
Joined: 10 Nov 2012, 13:33
Location: France - Pas-de-Calais

Re: Cannot build LATEST GIT on GCC 4.8.2

Postby KroArtem » 30 Jan 2014, 22:41

Totoplus: you need to install libbluetooth-dev (under ubuntu) or disable WIIUSE in cmake file.
KroArtem
 
Posts: 375
Joined: 26 Aug 2010, 19:04

Re: Cannot build SVN 15119 on GCC 4.8.2

Postby Auria » 01 Feb 2014, 21:22

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Cannot build LATEST GIT on GCC 4.8.2

Postby vlj » 02 Feb 2014, 01:20

I think I've fixed the issue with my last commits, can you give it a try ?
vlj
 
Posts: 58
Joined: 27 Dec 2013, 04:22

Re: Cannot build SVN 15119 on GCC 4.8.2

Postby dehavilland » 05 Feb 2014, 01:21

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.
Ready to roll.
dehavilland
 
Posts: 15
Joined: 19 Mar 2012, 18:21
Location: Haidian, Beijing, China

Re: Cannot build LATEST GIT on GCC 4.8.2

Postby dehavilland » 05 Feb 2014, 01:22

vlj {l Wrote}:I think I've fixed the issue with my last commits, can you give it a try ?


It's not working...:(
Ready to roll.
dehavilland
 
Posts: 15
Joined: 19 Mar 2012, 18:21
Location: Haidian, Beijing, China

Who is online

Users browsing this forum: No registered users and 1 guest