Author Topic: Problem with build, during linking...  (Read 5871 times)

NoMoreNicksLeft

  • Guest
Problem with build, during linking...
« on: 1 November 2005, 04:32:41 »
Hoping someone can help me figure out what the deal is. I'm used to seeing things fail during the compilation, so I'm a little lost.

bash-3.00# jam
...found 390 target(s)...
...updating 1 target(s)...
LinkApplication glest
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x81): In function `Shared::Graphics::Gl::ShaderProgramGl::init()':
/usr/include/c++/3.3.4/i486-slackware-linux/bits/atomicity.h:40: undefined reference to `glCreateProgramObjectARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0xb8): In function `Shared::Graphics::Gl::ShaderProgramGl::end()':
/usr/include/c++/3.3.4/bits/basic_string.h:728: undefined reference to `glDeleteObjectARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x208): In function `Shared::Graphics::Gl::ShaderProgramGl::link(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
shared_lib/include/graphics/gl/shader_gl.h:83: undefined reference to `glAttachObjectARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x21a):shared_lib/include/graphics/gl/shader_gl.h:83: undefined reference to `glAttachObjectARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x276): In function `Shared::Graphics::Gl::ShaderProgramGl::link(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
/usr/include/c++/3.3.4/bits/stl_iterator.h:676: undefined reference to `glBindAttribLocationARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x2ae): In function `Shared::Graphics::Gl::ShaderProgramGl::link(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
shared_lib/sources/graphics/gl/shader_gl.cpp:79: undefined reference to `glLinkProgramARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x2b8):shared_lib/sources/graphics/gl/shader_gl.cpp:80: undefined reference to `glValidateProgramARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x2d4):shared_lib/sources/graphics/gl/shader_gl.cpp:86: undefined reference to `glGetObjectParameterivARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x2f3):shared_lib/sources/graphics/gl/shader_gl.
cpp:88: undefined reference to `glGetInfoLogARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x337):shared_lib/sources/graphics/gl/shader_gl.
cpp:96: undefined reference to `glGetObjectParameterivARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x5e3): In function `Shared::Graphics::Gl::Shade
rProgramGl::setUniform(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Shared::Graphics::Matrix3<float>
const&)':
shared_lib/include/graphics/matrix.h:42: undefined reference to `glUniformMatrix3fvARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x613): In function `Shared::Graphics::Gl::Shade
rProgramGl::setUniform(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Shared::Graphics::Matrix4<float>
const&)':
shared_lib/include/graphics/matrix.h:114: undefined reference to `glUniformMatrix4fvARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x732): In function `Shared::Graphics::Gl::Shade
rProgramGl::getLocation(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/c++/3.3.4/bits/basic_string.h:717: undefined reference to `glGetUniformLocationARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x94e): In function `Shared::Graphics::Gl::Shade
rGl::compile(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
shared_lib/sources/graphics/gl/shader_gl.cpp:184: undefined reference to `glShaderSourceARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x958):shared_lib/sources/graphics/gl/shader_gl.
cpp:187: undefined reference to `glCompileShaderARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x974):shared_lib/sources/graphics/gl/shader_gl.
cpp:191: undefined reference to `glGetObjectParameterivARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x993):shared_lib/sources/graphics/gl/shader_gl.
cpp:193: undefined reference to `glGetInfoLogARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x9d4):shared_lib/sources/graphics/gl/shader_gl.
cpp:199: undefined reference to `glGetObjectParameterivARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0xad9): In function `Shared::Graphics::Gl::Verte
xShaderGl::init()':
shared_lib/sources/graphics/gl/shader_gl.cpp:220: undefined reference to `glCreateShaderObjectARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0xb19): In function `Shared::Graphics::Gl::Fragm
entShaderGl::init()':
shared_lib/sources/graphics/gl/shader_gl.cpp:233: undefined reference to `glCreateShaderObjectARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x4be): In function `Shared::Graphics::Gl::Shade
rProgramGl::activate()':
shared_lib/sources/graphics/gl/shader_gl.cpp:105: undefined reference to `glUseProgramObjectARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x4f3): In function `Shared::Graphics::Gl::Shade
rProgramGl::setUniform(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
shared_lib/sources/graphics/gl/shader_gl.cpp:111: undefined reference to `glUniform1iARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x523): In function `Shared::Graphics::Gl::Shade
rProgramGl::setUniform(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float)':
shared_lib/sources/graphics/gl/shader_gl.cpp:117: undefined reference to `glUniform1fARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x554): In function `Shared::Graphics::Gl::Shade
rProgramGl::setUniform(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Shared::Graphics::Vec2<float> con
st&)':
shared_lib/include/graphics/vec.h:62: undefined reference to `glUniform2fvARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x584): In function `Shared::Graphics::Gl::Shade
rProgramGl::setUniform(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Shared::Graphics::Vec3<float> con
st&)':
shared_lib/include/graphics/vec.h:193: undefined reference to `glUniform3fvARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0x5b4): In function `Shared::Graphics::Gl::Shade
rProgramGl::setUniform(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Shared::Graphics::Vec4<float> con
st&)':
shared_lib/include/graphics/vec.h:365: undefined reference to `glUniform4fvARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(shader_gl.o)(.text+0xaa8): In function `Shared::Graphics::Gl::Shade
rGl::end()':
shared_lib/sources/graphics/gl/shader_gl.cpp:208: undefined reference to `glDeleteObjectARB'
./build/i686-pc-linux-gnu/optimize/shared_lib/sources/libglestlib.a(context_gl.o)(.text+0x8c): In function `Shared::Graphics::Gl::Conte
xtGl::disableShaders()':
shared_lib/sources/graphics/gl/context_gl.cpp:51: undefined reference to `glUseProgramObjectARB'
collect2: ld returned 1 exit status
« Last Edit: 1 January 1970, 00:00:00 by NoMoreNicksLeft »

NoMoreNicksLeft

  • Guest
Bah.
« Reply #1 on: 1 November 2005, 07:53:43 »
As per another post, I commented out everything related to ARB. It compiles.

But when I try to run it, I get this.

bash-3.00# ./glest
Exception: OpenGL extension not supported: GL_ARB_texture_env_crossbar, required for Glest


Any help?
« Last Edit: 1 January 1970, 00:00:00 by NoMoreNicksLeft »

Speedator

  • Guest
(No subject)
« Reply #2 on: 1 November 2005, 11:14:45 »
Try disabling the OpenGL-check: CheckGlCaps=1 -> CheckGlCaps=0 |in glest.ini
And maybe you have to disable shadow in the options.
« Last Edit: 1 January 1970, 00:00:00 by Speedator »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #3 on: 1 November 2005, 22:30:42 »
You really need this extension to run Glest properly, if you dont have it you will not be able to seed faction colors.
« Last Edit: 1 January 1970, 00:00:00 by martiño »

NoMoreNicksLeft

  • Guest
I did get it to compile.
« Reply #4 on: 3 November 2005, 21:36:32 »
Had to comment out a few more things, and redo a few. Faction colors aren't visible, but it's still a nice game. Far better than I expected, easily as good as some of the crap that goes into the bargain bins coded by lesser known studios.

(Any other people wanting the modified code are welcome, I could make available a patch file. You should at least attempt it yourself though, you don't have to be a C/C++ expert to do minor adjustments like these.)

With work, I think it could easily rival some of the A-list games even as recently as a year or two ago.  Alot of the features I wanted in my own game, that I figured would be difficult, are already present (weather, day/night).

One thing I'd really like to work on, is making it possible for mesh unions. Making a unit be able to hold a new weapon, or even climb on the back of a horse (a unit in its own right).
« Last Edit: 1 January 1970, 00:00:00 by NoMoreNicksLeft »

dolny

  • Guest
-
« Reply #5 on: 4 June 2006, 13:23:51 »
I have exactly the same problem. Can you please paste your glest.ini? I can't launch the game on my laptop and I can't change my video card :(
« Last Edit: 19 June 2016, 06:45:12 by filux »