Error while Building from Source

Error while Building from Source

Postby NowhereMan » 07 Mar 2015, 04:18

Got the source from git and SVN. Made sure I had all the dependencies for Kubuntu. Cmake didn't give me any errors (at least that I noticed). Then make errored out after about 45%. Here's the last few lines, in case it helps:
{l Code}: {l Select All Code}
[ 45%] [ 45%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CGUIEnvironment.cpp.o
Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CParticleScaleAffector.cpp.o
../Games/STK/stk-repo-build/stk-code/lib/irrlicht/source/Irrlicht/CGUIImage.cpp: In member function ‘virtual void irr::gui::CGUIImage::draw()’:
../Games/STK/stk-repo-build/stk-code/lib/irrlicht/source/Irrlicht/CGUIImage.cpp:77:23: warning: unused variable ‘driver’ [-Wunused-variable]
  video::IVideoDriver* driver = Environment->getVideoDriver();
                       ^
[ 45%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CSceneNodeAnimatorDelete.cpp.o
[ 45%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CImageWriterBMP.cpp.o
[ 45%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CParticleMeshEmitter.cpp.o
[ 45%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CSceneNodeAnimatorRotation.cpp.o
Linking CXX static library libstkirrlicht.a
[ 45%] Built target stkirrlicht
make: *** [all] Error 2


I admit it. I'm clueless. Help please?
NowhereMan
 
Posts: 16
Joined: 04 Mar 2015, 23:13

Re: Error while Building from Source

Postby samuncle » 07 Mar 2015, 04:38

Can you post the whole cmake lines + the whole make lines. It's quite difficult with only the last thing to figure out what happened
Image
User avatar
samuncle
STK Moderator
 
Posts: 754
Joined: 16 Mar 2010, 21:28

Re: Error while Building from Source

Postby NowhereMan » 07 Mar 2015, 19:51

Sorry, I didn't save the rest. I'll try again later today or tomorrow when I get a chance and paste the contents here.
NowhereMan
 
Posts: 16
Joined: 04 Mar 2015, 23:13

Re: Error while Building from Source

Postby Akien » 07 Mar 2015, 21:34

NowhereMan {l Wrote}:Sorry, I didn't save the rest. I'll try again later today or tomorrow when I get a chance and paste the contents here.

If you still have the build folder, you can simply run "make", it should jump directly to the part that hasn't been built yet, i.e. the part where there is an issue. (search for "error:").
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Re: Error while Building from Source

Postby NowhereMan » 08 Mar 2015, 21:22

Akien {l Wrote}:If you still have the build folder, you can simply run "make", it should jump directly to the part that hasn't been built yet, i.e. the part where there is an issue. (search for "error:").

Yeah, I haven't deleted anything, so I'll give that a try, tonight. Thanks!
NowhereMan
 
Posts: 16
Joined: 04 Mar 2015, 23:13

Re: Error while Building from Source

Postby NowhereMan » 09 Mar 2015, 00:07

Well, that took much less time that I thought. Here's everything:
{l Code}: {l Select All Code}
[  0%] Building C object lib/glew/CMakeFiles/glew.dir/src/glew.c.o
[  1%] Built target enet
[  4%] [  5%] Built target bulletmath
[  6%] Built target wiiuse
Building C object lib/glew/CMakeFiles/glew.dir/src/glewinfo.c.o
In file included from .../Games/STK/stk-repo-build/stk-code/lib/glew/src/glew.c:33:0:
.../Games/STK/stk-repo-build/stk-code/lib/glew/include/GL/glew.h:1201:24: fatal error: GL/glu.h: No such file or directory
 #    include <GL/glu.h>
                        ^
compilation terminated.
[ 13%] [ 13%] Built target angelscript
Built target bulletdynamics
In file included from .../Games/STK/stk-repo-build/stk-code/lib/glew/src/glewinfo.c:36:0:
.../Games/STK/stk-repo-build/stk-code/lib/glew/include/GL/glew.h:1201:24: fatal error: GL/glu.h: No such file or directory
 #    include <GL/glu.h>
                        ^
compilation terminated.
[ 28%] Built target bulletcollision
make[2]: *** [lib/glew/CMakeFiles/glew.dir/src/glew.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 46%] make[2]: *** [lib/glew/CMakeFiles/glew.dir/src/glewinfo.c.o] Error 1
Built target stkirrlicht
make[1]: *** [lib/glew/CMakeFiles/glew.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2

Not that I have a clue what I'm looking at, but it looks to me like it's saying there are missing files. Should I try grabbing the source again? Oh wait....

I'm an idiot. I somehow didn't get libglu1-mesa-dev installed. :oops: Well, that's massive egg on my face. Thanks, Akien!

And it just finished building (took less time than to write this post), so now I get to see if it actually runs. (Watch. I've probably forgotten something else....)
NowhereMan
 
Posts: 16
Joined: 04 Mar 2015, 23:13

Who is online

Users browsing this forum: No registered users and 1 guest

cron