Forums
cvs compile on ubuntu 10.04 - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: cvs compile on ubuntu 10.04 (/showthread.php?tid=1501)



cvs compile on ubuntu 10.04 - mike4 - 06-01-2011

Hi
just downloaded via cvs as package install didn't work. Now I get this below. Many thanks for help
Michael

michael@ubuntu:~/CPP/vdrift1$ scons
scons: Reading SConscript files ...
Checking for C++ header file asio.hpp... yes
Checking for C++ header file boost/bind.hpp... yes
Checking for C++ header file GL/gl.h... yes
Checking for C++ header file GL/glu.h... yes
Checking for C++ header file SDL/SDL.h... yes
Checking for C++ header file SDL/SDL_image.h... yes
Checking for C++ header file SDL/SDL_rotozoom.h... yes
Checking for C++ header file vorbis/vorbisfile.h... yes
Checking for C++ header file GL/glew.h... yes
Checking for C++ header file curl/curl.h... yes
scons: done reading SConscript files.
scons: Building targets ...
CPP build/aabb.o
CPP build/aabb_space_partitioning.o
CPP build/ai.o
In file included from src/gl3v/rendertextureentry.h:5,
from src/gl3v/rendermodelext.h:6,
from include/rendermodelext_drawable.h:4,
from include/drawable.h:8,
from include/drawable_container.h:4,
from include/scenenode.h:4,
from include/ai.h:6,
from src/ai.cpp:1:
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::SamplerParameteri(GLuint, GLenum, GLint)’:
src/gl3v/glwrapper.h:129: error: ‘glSamplerParameteri’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::SamplerParameterf(GLuint, GLenum, GLfloat)’:
src/gl3v/glwrapper.h:130: error: ‘glSamplerParameterf’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::SamplerParameterfv(GLuint, GLenum, const GLfloat*)’:
src/gl3v/glwrapper.h:131: error: ‘glSamplerParameterfv’ was not declared in this scope
In file included from src/gl3v/rendertextureentry.h:5,
from src/gl3v/rendermodelext.h:6,
from include/rendermodelext_drawable.h:4,
from include/drawable.h:8,
from include/drawable_container.h:4,
from include/scenenode.h:4,
from include/ai.h:6,
from src/ai.cpp:1:
src/gl3v/glwrapper.h: In member function ‘GLuint GLWrapper::GenSampler()’:
src/gl3v/glwrapper.h:150: error: ‘glGenSamplers’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper:Big GrineleteSampler(GLuint)’:
src/gl3v/glwrapper.h:151: error: ‘glDeleteSamplers’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::BindSampler(GLuint, GLuint)’:
src/gl3v/glwrapper.h:152: error: ‘glBindSampler’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::unbindSampler(GLuint)’:
src/gl3v/glwrapper.h:153: error: ‘glBindSampler’ was not declared in this scope
scons: *** [build/ai.o] Error 1
scons: building terminated because of errors.
michael@ubuntu:~/CPP/vdrift1$


- antoniovazquez - 06-01-2011

Ubuntu versions for glew are wrong. Download http://glew.sourceforge.net/ the zipped or tared version of glew (repo one doesn't build) and do "make; sudo make install". That should fix some things.


- skankerror - 06-01-2011

https://launchpad.net/~amuzen/+archive/ppa

Look in this ppa, a working package of glew inside.


- antoniovazquez - 06-01-2011

I've already seen that but I prefer to compile it myself. Thanks


- mike4 - 06-03-2011

Thanks works fine with scons. But now I try in Eclipse and get: "libcurl not found". What do I need to install?
Thanks


- NaN - 06-03-2011

You need to install libcurl (something like): sudo apt-get install libcurl4-gnutls-dev

I think the wiki needs an update.


- mike4 - 06-04-2011

yes i had that but in fact i needed the other version. Something with openssl in the name...anyway works now, thanks.


- portets - 06-07-2011

i get the same error in ubuntu 11.04 which comes with glew 1.5.7


- joevenzon - 06-08-2011

If you do "dpkg -s libglew1.5-dev" you'll see that the version of glew is "1.5.7.is.1.5.2-1ubuntu2" on 11.04. Ubuntu have purposefully mislabeled glew 1.5.2 as 1.5.7 in their repository. You need to manually install 1.5.7 or greater. Drives me nuts that they did that.


- portets - 06-08-2011

thanks, working now. and liking the damage effects so far Big Grin