• 12
• 12
• 9
• 10
• 13
• ### Similar Content

• By elect
Hi,
ok, so, we are having problems with our current mirror reflection implementation.
At the moment we are doing it very simple, so for the i-th frame, we calculate the reflection vectors given the viewPoint and some predefined points on the mirror surface (position and normal).
Then, using the least squared algorithm, we find the point that has the minimum distance from all these reflections vectors. This is going to be our virtual viewPoint (with the right orientation).
After that, we render offscreen to a texture by setting the OpenGL camera on the virtual viewPoint.
And finally we use the rendered texture on the mirror surface.
So far this has always been fine, but now we are having some more strong constraints on accuracy.
What are our best options given that:
- we have a dynamic scene, the mirror and parts of the scene can change continuously from frame to frame
- we have about 3k points (with normals) per mirror, calculated offline using some cad program (such as Catia)
- all the mirror are always perfectly spherical (with different radius vertically and horizontally) and they are always convex
- a scene can have up to 10 mirror
- it should be fast enough also for vr (Htc Vive) on fastest gpus (only desktops)

Looking around, some papers talk about calculating some caustic surface derivation offline, but I don't know if this suits my case
Also, another paper, used some acceleration structures to detect the intersection between the reflection vectors and the scene, and then adjust the corresponding texture coordinate. This looks the most accurate but also very heavy from a computational point of view.

Other than that, I couldn't find anything updated/exhaustive around, can you help me?

• Hello all,
I am currently working on a game engine for use with my game development that I would like to be as flexible as possible.  As such the exact requirements for how things should work can't be nailed down to a specific implementation and I am looking for, at least now, a default good average case scenario design.
Here is what I have implemented:
Deferred rendering using OpenGL Arbitrary number of lights and shadow mapping Each rendered object, as defined by a set of geometry, textures, animation data, and a model matrix is rendered with its own draw call Skeletal animations implemented on the GPU.   Model matrix transformation implemented on the GPU Frustum and octree culling for optimization Here are my questions and concerns:
Doing the skeletal animation on the GPU, currently, requires doing the skinning for each object multiple times per frame: once for the initial geometry rendering and once for the shadow map rendering for each light for which it is not culled.  This seems very inefficient.  Is there a way to do skeletal animation on the GPU only once across these render calls? Without doing the model matrix transformation on the CPU, I fail to see how I can easily batch objects with the same textures and shaders in a single draw call without passing a ton of matrix data to the GPU (an array of model matrices then an index for each vertex into that array for transformation purposes?) If I do the matrix transformations on the CPU, It seems I can't really do the skinning on the GPU as the pre-transformed vertexes will wreck havoc with the calculations, so this seems not viable unless I am missing something Overall it seems like simplest solution is to just do all of the vertex manipulation on the CPU and pass the pre-transformed data to the GPU, using vertex shaders that do basically nothing.  This doesn't seem the most efficient use of the graphics hardware, but could potentially reduce the number of draw calls needed.

Really, I am looking for some advice on how to proceed with this, how something like this is typically handled.  Are the multiple draw calls and skinning calculations not a huge deal?  I would LIKE to save as much of the CPU's time per frame so it can be tasked with other things, as to keep CPU resources open to the implementation of the engine.  However, that becomes a moot point if the GPU becomes a bottleneck.

• Hello!
I would like to introduce Diligent Engine, a project that I've been recently working on. Diligent Engine is a light-weight cross-platform abstraction layer between the application and the platform-specific graphics API. Its main goal is to take advantages of the next-generation APIs such as Direct3D12 and Vulkan, but at the same time provide support for older platforms via Direct3D11, OpenGL and OpenGLES. Diligent Engine exposes common front-end for all supported platforms and provides interoperability with underlying native API. Shader source code converter allows shaders authored in HLSL to be translated to GLSL and used on all platforms. Diligent Engine supports integration with Unity and is designed to be used as a graphics subsystem in a standalone game engine, Unity native plugin or any other 3D application. It is distributed under Apache 2.0 license and is free to use. Full source code is available for download on GitHub.
Features:
True cross-platform Exact same client code for all supported platforms and rendering backends No #if defined(_WIN32) ... #elif defined(LINUX) ... #elif defined(ANDROID) ... No #if defined(D3D11) ... #elif defined(D3D12) ... #elif defined(OPENGL) ... Exact same HLSL shaders run on all platforms and all backends Modular design Components are clearly separated logically and physically and can be used as needed Only take what you need for your project (do not want to keep samples and tutorials in your codebase? Simply remove Samples submodule. Only need core functionality? Use only Core submodule) No 15000 lines-of-code files Clear object-based interface No global states Key graphics features: Automatic shader resource binding designed to leverage the next-generation rendering APIs Multithreaded command buffer generation 50,000 draw calls at 300 fps with D3D12 backend Descriptor, memory and resource state management Modern c++ features to make code fast and reliable The following platforms and low-level APIs are currently supported:
Windows Desktop: Direct3D11, Direct3D12, OpenGL Universal Windows: Direct3D11, Direct3D12 Linux: OpenGL Android: OpenGLES MacOS: OpenGL iOS: OpenGLES API Basics
Initialization
The engine can perform initialization of the API or attach to already existing D3D11/D3D12 device or OpenGL/GLES context. For instance, the following code shows how the engine can be initialized in D3D12 mode:
#include "RenderDeviceFactoryD3D12.h" using namespace Diligent; // ...  GetEngineFactoryD3D12Type GetEngineFactoryD3D12 = nullptr; // Load the dll and import GetEngineFactoryD3D12() function LoadGraphicsEngineD3D12(GetEngineFactoryD3D12); auto *pFactoryD3D11 = GetEngineFactoryD3D12(); EngineD3D12Attribs EngD3D12Attribs; EngD3D12Attribs.CPUDescriptorHeapAllocationSize[0] = 1024; EngD3D12Attribs.CPUDescriptorHeapAllocationSize[1] = 32; EngD3D12Attribs.CPUDescriptorHeapAllocationSize[2] = 16; EngD3D12Attribs.CPUDescriptorHeapAllocationSize[3] = 16; EngD3D12Attribs.NumCommandsToFlushCmdList = 64; RefCntAutoPtr<IRenderDevice> pRenderDevice; RefCntAutoPtr<IDeviceContext> pImmediateContext; SwapChainDesc SwapChainDesc; RefCntAutoPtr<ISwapChain> pSwapChain; pFactoryD3D11->CreateDeviceAndContextsD3D12( EngD3D12Attribs, &pRenderDevice, &pImmediateContext, 0 ); pFactoryD3D11->CreateSwapChainD3D12( pRenderDevice, pImmediateContext, SwapChainDesc, hWnd, &pSwapChain ); Creating Resources
Device resources are created by the render device. The two main resource types are buffers, which represent linear memory, and textures, which use memory layouts optimized for fast filtering. To create a buffer, you need to populate BufferDesc structure and call IRenderDevice::CreateBuffer(). The following code creates a uniform (constant) buffer:
BufferDesc BuffDesc; BufferDesc.Name = "Uniform buffer"; BuffDesc.BindFlags = BIND_UNIFORM_BUFFER; BuffDesc.Usage = USAGE_DYNAMIC; BuffDesc.uiSizeInBytes = sizeof(ShaderConstants); BuffDesc.CPUAccessFlags = CPU_ACCESS_WRITE; m_pDevice->CreateBuffer( BuffDesc, BufferData(), &m_pConstantBuffer ); Similar, to create a texture, populate TextureDesc structure and call IRenderDevice::CreateTexture() as in the following example:
TextureDesc TexDesc; TexDesc.Name = "My texture 2D"; TexDesc.Type = TEXTURE_TYPE_2D; TexDesc.Width = 1024; TexDesc.Height = 1024; TexDesc.Format = TEX_FORMAT_RGBA8_UNORM; TexDesc.Usage = USAGE_DEFAULT; TexDesc.BindFlags = BIND_SHADER_RESOURCE | BIND_RENDER_TARGET | BIND_UNORDERED_ACCESS; TexDesc.Name = "Sample 2D Texture"; m_pRenderDevice->CreateTexture( TexDesc, TextureData(), &m_pTestTex ); Initializing Pipeline State
Diligent Engine follows Direct3D12 style to configure the graphics/compute pipeline. One big Pipelines State Object (PSO) encompasses all required states (all shader stages, input layout description, depth stencil, rasterizer and blend state descriptions etc.)
To create a shader, populate ShaderCreationAttribs structure. An important member is ShaderCreationAttribs::SourceLanguage. The following are valid values for this member:
SHADER_SOURCE_LANGUAGE_DEFAULT  - The shader source format matches the underlying graphics API: HLSL for D3D11 or D3D12 mode, and GLSL for OpenGL and OpenGLES modes. SHADER_SOURCE_LANGUAGE_HLSL  - The shader source is in HLSL. For OpenGL and OpenGLES modes, the source code will be converted to GLSL. See shader converter for details. SHADER_SOURCE_LANGUAGE_GLSL  - The shader source is in GLSL. There is currently no GLSL to HLSL converter. To allow grouping of resources based on the frequency of expected change, Diligent Engine introduces classification of shader variables:
Static variables (SHADER_VARIABLE_TYPE_STATIC) are variables that are expected to be set only once. They may not be changed once a resource is bound to the variable. Such variables are intended to hold global constants such as camera attributes or global light attributes constant buffers. Mutable variables (SHADER_VARIABLE_TYPE_MUTABLE) define resources that are expected to change on a per-material frequency. Examples may include diffuse textures, normal maps etc. Dynamic variables (SHADER_VARIABLE_TYPE_DYNAMIC) are expected to change frequently and randomly. This post describes the resource binding model in Diligent Engine.
The following is an example of shader initialization:
To create a pipeline state object, define instance of PipelineStateDesc structure. The structure defines the pipeline specifics such as if the pipeline is a compute pipeline, number and format of render targets as well as depth-stencil format:
// This is a graphics pipeline PSODesc.IsComputePipeline = false; PSODesc.GraphicsPipeline.NumRenderTargets = 1; PSODesc.GraphicsPipeline.RTVFormats[0] = TEX_FORMAT_RGBA8_UNORM_SRGB; PSODesc.GraphicsPipeline.DSVFormat = TEX_FORMAT_D32_FLOAT; The structure also defines depth-stencil, rasterizer, blend state, input layout and other parameters. For instance, rasterizer state can be defined as in the code snippet below:
// Init rasterizer state RasterizerStateDesc &RasterizerDesc = PSODesc.GraphicsPipeline.RasterizerDesc; RasterizerDesc.FillMode = FILL_MODE_SOLID; RasterizerDesc.CullMode = CULL_MODE_NONE; RasterizerDesc.FrontCounterClockwise = True; RasterizerDesc.ScissorEnable = True; //RSDesc.MultisampleEnable = false; // do not allow msaa (fonts would be degraded) RasterizerDesc.AntialiasedLineEnable = False; When all fields are populated, call IRenderDevice::CreatePipelineState() to create the PSO:
Shader resource binding in Diligent Engine is based on grouping variables in 3 different groups (static, mutable and dynamic). Static variables are variables that are expected to be set only once. They may not be changed once a resource is bound to the variable. Such variables are intended to hold global constants such as camera attributes or global light attributes constant buffers. They are bound directly to the shader object:

m_pPSO->CreateShaderResourceBinding(&m_pSRB); Dynamic and mutable resources are then bound through SRB object:
m_pSRB->GetVariable(SHADER_TYPE_VERTEX, "tex2DDiffuse")->Set(pDiffuseTexSRV); m_pSRB->GetVariable(SHADER_TYPE_VERTEX, "cbRandomAttribs")->Set(pRandomAttrsCB); The difference between mutable and dynamic resources is that mutable ones can only be set once for every instance of a shader resource binding. Dynamic resources can be set multiple times. It is important to properly set the variable type as this may affect performance. Static variables are generally most efficient, followed by mutable. Dynamic variables are most expensive from performance point of view. This post explains shader resource binding in more details.
Setting the Pipeline State and Invoking Draw Command
Before any draw command can be invoked, all required vertex and index buffers as well as the pipeline state should be bound to the device context:
// Clear render target const float zero[4] = {0, 0, 0, 0}; m_pContext->ClearRenderTarget(nullptr, zero); // Set vertex and index buffers IBuffer *buffer[] = {m_pVertexBuffer}; Uint32 offsets[] = {0}; Uint32 strides[] = {sizeof(MyVertex)}; m_pContext->SetVertexBuffers(0, 1, buffer, strides, offsets, SET_VERTEX_BUFFERS_FLAG_RESET); m_pContext->SetIndexBuffer(m_pIndexBuffer, 0); m_pContext->SetPipelineState(m_pPSO); Also, all shader resources must be committed to the device context:
m_pContext->CommitShaderResources(m_pSRB, COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES); When all required states and resources are bound, IDeviceContext::Draw() can be used to execute draw command or IDeviceContext::DispatchCompute() can be used to execute compute command. Note that for a draw command, graphics pipeline must be bound, and for dispatch command, compute pipeline must be bound. Draw() takes DrawAttribs structure as an argument. The structure members define all attributes required to perform the command (primitive topology, number of vertices or indices, if draw call is indexed or not, if draw call is instanced or not, if draw call is indirect or not, etc.). For example:
DrawAttribs attrs; attrs.IsIndexed = true; attrs.IndexType = VT_UINT16; attrs.NumIndices = 36; attrs.Topology = PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; pContext->Draw(attrs); Tutorials and Samples
The GitHub repository contains a number of tutorials and sample applications that demonstrate the API usage.

AntTweakBar sample demonstrates how to use AntTweakBar library to create simple user interface.

Atmospheric scattering sample is a more advanced example. It demonstrates how Diligent Engine can be used to implement various rendering tasks: loading textures from files, using complex shaders, rendering to textures, using compute shaders and unordered access views, etc.

The repository includes Asteroids performance benchmark based on this demo developed by Intel. It renders 50,000 unique textured asteroids and lets compare performance of D3D11 and D3D12 implementations. Every asteroid is a combination of one of 1000 unique meshes and one of 10 unique textures.

Integration with Unity
Diligent Engine supports integration with Unity through Unity low-level native plugin interface. The engine relies on Native API Interoperability to attach to the graphics API initialized by Unity. After Diligent Engine device and context are created, they can be used us usual to create resources and issue rendering commands. GhostCubePlugin shows an example how Diligent Engine can be used to render a ghost cube only visible as a reflection in a mirror.

• By Yxjmir
I'm trying to load data from a .gltf file into a struct to use to load a .bin file. I don't think there is a problem with how the vertex positions are loaded, but with the indices. This is what I get when drawing with glDrawArrays(GL_LINES, ...):

Also, using glDrawElements gives a similar result. Since it looks like its drawing triangles using the wrong vertices for each face, I'm assuming it needs an index buffer/element buffer. (I'm not sure why there is a line going through part of it, it doesn't look like it belongs to a side, re-exported it without texture coordinates checked, and its not there)
I'm using jsoncpp to load the GLTF file, its format is based on JSON. Here is the gltf struct I'm using, and how I parse the file:
glBindVertexArray(g_pGame->m_VAO);
glDrawElements(GL_LINES, g_pGame->m_indices.size(), GL_UNSIGNED_BYTE, (void*)0); // Only shows with GL_UNSIGNED_BYTE
glDrawArrays(GL_LINES, 0, g_pGame->m_vertexCount);
So, I'm asking what type should I use for the indices? it doesn't seem to be unsigned short, which is what I selected with the Khronos Group Exporter for blender. Also, am I reading part or all of the .bin file wrong?
Test.gltf
Test.bin

• That means how do I use base DirectX or OpenGL api's to make a physics based destruction simulation?
Will it be just smart rendering or something else is required?

# OpenGL Glew and SFML linker issues with MinGW in windows :(

This topic is 2680 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I am finally getting back to maintaining my project (Project Website) in windows, and eventually osx too. But I've run into some linker errors. I had a slew of issues with VC++ express in general, so I switched to MinGW and feel I am very close but I have a few linker errors left. Note: I have compiled or collected everything in .a files as needed for mingw and the library files are found (like libsfml-graphics.a), but I am still getting these linker errors. I am using a few other libraries like bullet and assimp which seem to be linking fine, so I suspect it's the order in which I'm linking or maybe I need to use the static libraries, I'm honestly not sure...

glew32 sfml-graphics sfml-window sfml-audio sfml-network sfml-system assimp opengl32 glu32 glut32 BulletDynamics BulletCollision LinearMath

Linking CXX executable sfml_test.exeC:\PROGRA~1\CODEBL~1\MinGW\bin\G__~1.EXE      CMakeFiles\sfml_test.dir\Sources\main.cpp.obj  -o sfml_test.exe -Wl,--out-implib,libsfml_test.dll.a -Wl,--major-image-version,0,--minor-image-version,0  -LDependencies\win32\library\debug -L..\..\Dependencies\win32\library\debug ..\..\ElementGames\Base\libegbase.a ..\..\ElementGames\Engine\libegengine.a -lglew32 -lsfml-graphics -lsfml-window -lsfml-audio -lsfml-network -lsfml-system -lassimp -lopengl32 -lglu32 -lglut32 -lBulletDynamics -lBulletCollision -lLinearMath ..\..\ElementGames\Base\libegbase.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 Info: resolving vtable for sf::String by linking to __imp___ZTVN2sf6StringE (auto-import)Info: resolving vtable for sf::Drawable by linking to __imp___ZTVN2sf8DrawableE (auto-import)c:/progra~1/codebl~1/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.This should work unless it involves constant data structures referencing symbols from auto-imported DLLs...\..\ElementGames\Base\libegbase.a(SceneManagerBase.cpp.obj):SceneManagerBase.cpp:(.text+0x50c): undefined reference to glewInit'..\..\ElementGames\Base\libegbase.a(SceneManagerBase.cpp.obj):SceneManagerBase.cpp:(.text+0x57d): undefined reference to glPushAttrib@4'..\..\ElementGames\Base\libegbase.a(SceneManagerBase.cpp.obj):SceneManagerBase.cpp:(.text+0x587): undefined reference to glPopAttrib@0'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x398): undefined reference to sf::Unicode::Text::Text(char const*)'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0xa3a): undefined reference to sf::Unicode::Text::Text(char const*)'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x1131): undefined reference to sf::String::GetText() const'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x1143): undefined reference to sf::Unicode::Text::operator std::string() const'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x25a5): undefined reference to glVertex2i@8'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x2600): undefined reference to glVertex2i@8'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x2663): undefined reference to glVertex2i@8'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x26c6): undefined reference to glVertex2i@8'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x2777): undefined reference to glVertex2i@8'..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x27da): more undefined references to glVertex2i@8' follow..\..\ElementGames\Base\libegbase.a(Console.cpp.obj):Console.cpp:(.text+0x2adb): undefined reference to sf::Unicode::Text::Text(char const*)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x539): undefined reference to sf::SoundBuffer::SoundBuffer()'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x588): undefined reference to sf::SoundBuffer::LoadFromFile(std::string const&)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x5dc): undefined reference to sf::SoundBuffer::GetSampleRate() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x5f0): undefined reference to sf::SoundBuffer::GetChannelsCount() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x604): undefined reference to sf::SoundBuffer::GetDuration() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xa89): undefined reference to sf::Sound::Sound()'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xaf0): undefined reference to sf::Sound::Sound()'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xb48): undefined reference to sf::Sound::SetBuffer(sf::SoundBuffer const&)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xb63): undefined reference to sf::Sound::SetLoop(bool)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xb7b): undefined reference to sf::Sound::SetPitch(float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xb93): undefined reference to sf::Sound::SetVolume(float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xbf6): undefined reference to sf::Sound::Play()'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xc0c): undefined reference to sf::Sound::Pause()'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xc22): undefined reference to sf::Sound::Stop()'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xc4b): undefined reference to sf::Sound::SetVolume(float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xc75): undefined reference to sf::Sound::SetPitch(float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xca8): undefined reference to sf::Sound::SetLoop(bool)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xcf2): undefined reference to sf::Sound::GetStatus() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xd38): undefined reference to sf::Sound::GetPlayingOffset() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xdb1): undefined reference to sf::Sound::SetPosition(float, float, float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0xe0b): undefined reference to sf::Sound::SetAttenuation(float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x14ef): undefined reference to sf::Music::Music(unsigned int)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x1517): undefined reference to sf::Music::OpenFromFile(std::string const&)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x1571): undefined reference to sf::SoundStream::SetLoop(bool)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x158c): undefined reference to sf::Sound::SetVolume(float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x15a7): undefined reference to sf::Sound::SetPitch(float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x15b5): undefined reference to sf::SoundStream::GetSampleRate() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x15c9): undefined reference to sf::SoundStream::GetChannelsCount() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x15dd): undefined reference to sf::Music::GetDuration() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x170c): undefined reference to sf::SoundStream::GetStatus() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x1752): undefined reference to sf::SoundStream::GetPlayingOffset() const'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x17ce): undefined reference to sf::Sound::SetPosition(float, float, float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x1836): undefined reference to sf::SoundStream::Play()'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x184f): undefined reference to sf::Sound::Pause()'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x1866): undefined reference to sf::SoundStream::Stop()'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x25cf): undefined reference to sf::Listener::SetPosition(float, float, float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x2606): undefined reference to sf::Listener::SetTarget(float, float, float)'..\..\ElementGames\Base\libegbase.a(Audio.cpp.obj):Audio.cpp:(.text+0x2631): undefined reference to sf::Listener::SetGlobalVolume(float)'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x2ca): undefined reference to glGenTextures@8'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x41f): undefined reference to glTexParameterf@12'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x43d): undefined reference to glTexParameterf@12'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x462): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x471): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x480): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x4c0): undefined reference to glTexImage2D@36'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x4d2): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x4e1): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x4f0): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x520): undefined reference to gluBuild2DMipmaps@28'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x5a5): undefined reference to sf::Image::Image()'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x5c8): undefined reference to sf::Image::LoadFromFile(std::string const&)'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xceb): undefined reference to glGenTextures@8'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xe40): undefined reference to glTexParameterf@12'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xe5e): undefined reference to glTexParameterf@12'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xee4): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xef3): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xf02): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xf42): undefined reference to glTexImage2D@36'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xf53): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xf63): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xf73): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xfb3): undefined reference to glTexImage2D@36'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xfc4): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xfd4): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0xfe4): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1024): undefined reference to glTexImage2D@36'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1035): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1045): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1055): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1095): undefined reference to glTexImage2D@36'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x10a6): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x10b6): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x10c6): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1106): undefined reference to glTexImage2D@36'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1117): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1127): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1137): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1177): undefined reference to glTexImage2D@36'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x118c): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x119b): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x11aa): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x11da): undefined reference to gluBuild2DMipmaps@28'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x11eb): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x11fb): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x120b): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x123b): undefined reference to gluBuild2DMipmaps@28'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x124c): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x125c): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x126c): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x129c): undefined reference to gluBuild2DMipmaps@28'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x12ad): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x12bd): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x12cd): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x12fd): undefined reference to gluBuild2DMipmaps@28'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x130e): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x131e): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x132e): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x135e): undefined reference to gluBuild2DMipmaps@28'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x136f): undefined reference to sf::Image::GetPixelsPtr() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x137f): undefined reference to sf::Image::GetHeight() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x138f): undefined reference to sf::Image::GetWidth() const'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x13bf): undefined reference to gluBuild2DMipmaps@28'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1535): undefined reference to sf::Image::Image()'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x155b): undefined reference to sf::Image::LoadFromFile(std::string const&)'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1582): undefined reference to sf::Image::Image()'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x15d4): undefined reference to sf::Image::LoadFromFile(std::string const&)'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x15fb): undefined reference to sf::Image::Image()'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x164d): undefined reference to sf::Image::LoadFromFile(std::string const&)'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1674): undefined reference to sf::Image::Image()'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x16c6): undefined reference to sf::Image::LoadFromFile(std::string const&)'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x16ed): undefined reference to sf::Image::Image()'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x173f): undefined reference to sf::Image::LoadFromFile(std::string const&)'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x1760): undefined reference to sf::Image::Image()'..\..\ElementGames\Base\libegbase.a(Texture.cpp.obj):Texture.cpp:(.text+0x17af): undefined reference to sf::Image::LoadFromFile(std::string const&)'..\..\ElementGameundefineds\Base\libegbase.a(Camera.cpp.obj):Camera.cpp:(.text+0x1303):  reference to glGetDoublev@8'..\..\ElementGameundefineds\Base\libegbase.a(Camera.cpp.obj):Camera.cpp:(.text+0x131e):  reference to glGetDoublev@8'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x19cc):  reference to __glewCreateShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x19e9):  reference to __glewCreateShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1a0a):  reference to __glewCreateShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1d16):  reference to __glewShaderSource'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1d4e):  reference to __glewShaderSource'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1d8a):  reference to __glewShaderSource'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1dbc):  reference to __glewCompileShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1dd6):  reference to __glewCompileShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1df4):  reference to __glewCompileShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1e07):  reference to __glewCreateProgramObjectARB'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1e1c):  reference to __glewAttachShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1e39):  reference to __glewAttachShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1e61):  reference to __glewAttachShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1e89):  reference to __glewProgramParameteriEXT'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1eb4):  reference to __glewProgramParameteriEXT'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1ed8):  reference to __glewProgramParameteriEXT'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1efc):  reference to __glewLinkProgram'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1f17):  reference to __glewUseProgram'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1f3d):  reference to __glewUseProgram'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1fbe):  reference to __glewGetUniformLocation'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x1fe9):  reference to __glewGetAttribLocation'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x209c):  reference to __glewUniform1i'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2184):  reference to __glewUniform2i'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2274):  reference to __glewUniform3i'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x236a):  reference to __glewUniform4i'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2468):  reference to __glewUniform1iv'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2595):  reference to __glewUniform1f'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x25bc):  reference to __glewVertexAttrib1f'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x26b3):  reference to __glewUniform2f'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x26e1):  reference to __glewVertexAttrib2f'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x27df):  reference to __glewUniform3f'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2814):  reference to __glewVertexAttrib3f'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2919):  reference to __glewUniform4f'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2955):  reference to __glewVertexAttrib4f'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2a61):  reference to __glewUniform1fv'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2a8f):  reference to __glewVertexAttrib1fv'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2b48):  reference to __glewUniformMatrix2fv'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2c40):  reference to __glewUniformMatrix3fv'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2d38):  reference to __glewUniformMatrix4fv'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2dbc):  reference to __glewProgramParameteriEXT'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2ddf):  reference to __glewProgramParameteriEXT'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2e02):  reference to __glewLinkProgram'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2e1e):  reference to __glewUseProgram'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2e41):  reference to __glewUseProgram'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2e7b):  reference to __glewGetShaderiv'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2eb8):  reference to __glewGetShaderInfoLog'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2f5a):  reference to __glewGetProgramiv'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x2f97):  reference to __glewGetProgramInfoLog'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x3063):  reference to __glewDetachShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x3080):  reference to __glewDeleteShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x30a6):  reference to __glewDetachShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x30c4):  reference to __glewDeleteShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x30ec):  reference to __glewDetachShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x310a):  reference to __glewDeleteShader'..\..\ElementGameundefineds\Base\libegbase.a(Shader.cpp.obj):Shader.cpp:(.text+0x3132):  reference to __glewDeleteShader'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2e9): undefined reference to glEnableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x332): undefined reference to glVertexPointer@16'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x350): undefined reference to glEnableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x38a): undefined reference to glNormalPointer@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x3a8): undefined reference to glEnableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x3ea): undefined reference to glColorPointer@16'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x423): undefined reference to glEnableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x46c): undefined reference to glTexCoordPointer@16'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x4a5): undefined reference to glEnableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x4ee): undefined reference to glTexCoordPointer@16'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x527): undefined reference to glEnableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x570): undefined reference to glTexCoordPointer@16'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x5a9): undefined reference to glEnableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x5f2): undefined reference to glTexCoordPointer@16'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x641): undefined reference to glDrawArrays@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x66c): undefined reference to glDrawArrays@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x697): undefined reference to glDrawArrays@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x6c2): undefined reference to glDrawArrays@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x6ed): undefined reference to glDrawArrays@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x718): more undefined references to glDrawArrays@12' follow..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x7e5): undefined reference to glDisableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x7f4): undefined reference to glDisableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x803): undefined reference to glDisableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x81e): undefined reference to glDisableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x839): undefined reference to glDisableClientState@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x854): more undefined references to glDisableClientState@4' follow..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x87f): undefined reference to __glewActiveTexture'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x895): undefined reference to __glewClientActiveTexture'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x8b3): undefined reference to glGetError@0'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x22f1): undefined reference to glNormal3f@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x25e0): undefined reference to glNormal3f@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x278f): undefined reference to glVertex2i@8'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x27c3): undefined reference to glVertex2i@8'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x27ff): undefined reference to glVertex2i@8'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2835): undefined reference to glVertex2i@8'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x28ab): undefined reference to glOrtho@48'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2913): undefined reference to __GLEW_ARB_draw_buffers'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x291f): undefined reference to __glewDrawBuffers'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2a83): undefined reference to glPushAttrib@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2b68): undefined reference to glDrawBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2b77): undefined reference to glReadBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2cc3): undefined reference to glDrawBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2cd2): undefined reference to glReadBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2dba): undefined reference to glDrawBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2dc9): undefined reference to glReadBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2eb1): undefined reference to glDrawBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2ec0): undefined reference to glReadBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2fa8): undefined reference to glDrawBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x2fb7): undefined reference to glReadBuffer@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x354f): undefined reference to glPushAttrib@4'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x3d84): undefined reference to glPopAttrib@0'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x4183): undefined reference to glPopAttrib@0'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x4501): undefined reference to glLightfv@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x4524): undefined reference to glLightfv@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x4547): undefined reference to glLightfv@12'..\..\ElementGames\Base\libegbase.a(Graphics.cpp.obj):Graphics.cpp:(.text+0x456a): undefined reference to glLightfv@12'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x2af): undefined reference to __GLEW_EXT_framebuffer_object'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x2f4): undefined reference to __glewGenFramebuffersEXT'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x3c0): undefined reference to glGenTextures@8'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x5de): undefined reference to glTexImage2D@36'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x61c): undefined reference to glGenTextures@8'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x689): undefined reference to glTexImage2D@36'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x6df): undefined reference to __glewBindFramebufferEXT'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x70b): undefined reference to __glewFramebufferTexture2DEXT'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x76a): undefined reference to __glewFramebufferTexture2DEXT'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x7b4): undefined reference to glDrawBuffer@4'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x7c3): undefined reference to glReadBuffer@4'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x7cb): undefined reference to __glewCheckFramebufferStatusEXT'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x86e): undefined reference to __glewBindFramebufferEXT'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x8c5): undefined reference to __glewBindFramebufferEXT'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x8e9): undefined reference to __glewBindFramebufferEXT'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x90b): undefined reference to glDrawBuffer@4'..\..\ElementGames\Base\lFrameBufferObject.cppibegbase.a(FrameBufferObject.cpp.obj)::(.text+0x91c): undefined reference to glReadBuffer@4'..\..\ElemeundefinedntGames\Base\libegbase.a(Font.cpp.obj):Font.cpp:(.text+0xab):  reference to sf::Font::Font()'..\..\ElemeundefinedntGames\Base\libegbase.a(Font.cpp.obj):Font.cpp:(.text+0xbc):  reference to sf::Font::ourDefaultCharset'..\..\ElemeundefinedntGames\Base\libegbase.a(Font.cpp.obj):Font.cpp:(.text+0xce):  reference to sf::Unicode::Text::Text(unsigned int const*)'..\..\ElemeundefinedntGames\Base\libegbase.a(Font.cpp.obj):Font.cpp:(.text+0xf8):  referenceUnicode to sf::Font::LoadFromFile(std::string const&, unsigned int, sf::::Text const&)'..\..\ElemenundefinedtGames\Base\libegbase.a(Font.cpp.obj):Font.cpp:(.text+0x1c1):  reference to sf::Font::Font()'..\..\ElemenundefinedtGames\Base\libegbase.a(Font.cpp.obj):Font.cpp:(.text+0x1d2):  reference to sf::Font::ourDefaultCharset'..\..\ElemenundefinedtGames\Base\libegbase.a(Font.cpp.obj):Font.cpp:(.text+0x1e4):  reference to sf::Unicode::Text::Text(unsigned int const*)'..\..\ElemenundefinedtGames\Base\libegbase.a(Font.cpp.obj):Font.cpp:(.text+0x20e):  reUnicode to sf::Font::LoadFromFile(std::string const&, unsigned int, sf::::Text const&)'..\..\ElementGames\Batext$_ZN2sf4FontD1Evse\libegbase.a(Font.cpp.obj):Font.cpp:(.[sf::Font::~Font()]+0x5b): undefined reference to sf::Image::~Image()'..\..\ElementGames\Batext$_ZN2sf4FontD1Evse\libegbase.a(Font.cpp.obj):Font.cpp:(.[sf::Font::~Font()]+0x89): undefined reference to sf::Image::~Image()'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x116): undefined reference to __glewGenBuffersARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x139): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x153): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x249): undefined reference to __glewGenBuffersARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x26f): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x28a): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x380): undefined reference to __glewGenBuffersARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x3a6): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x3c1): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x4b7): undefined reference to __glewGenBuffersARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x4dd): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x4f8): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x5ee): undefined reference to __glewGenBuffersARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x614): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x62f): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x725): undefined reference to __glewGenBuffersARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x74b): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x766): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x85c): undefined reference to __glewGenBuffersARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x882): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0x89d): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0xa4b): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0xa6b): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0xa8c): undefined reference to __glewBindBufferARB'..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0xaad): more undefined references to __glewBindBufferARB' follow..\..\ElementGames\Base\libeVertexBufferObject.cppgbase.a(VertexBufferObject.cpp.obj)::(.text+0xb46): undefined reference to __glewBufferDataARB'collect2: ld returned 1 exit status

##### Share on other sites
Don't know about SFML, but you need to add mingw32 before everything, and change glew32 to glew32s and add a definition of GLEW_STATIC before including GLEW (don't ask me why, it simply wont work without static linking in Windows).

#define GLEW_STATIC
#include <GL/glew.h>

##### Share on other sites
Quote:
 and change glew32 to glew32s and add a definition of GLEW_STATIC before including GLEW (don't ask me why, it simply wont work without static linking in Windows).

Not true, I have glew working with the dll on windows.
Next to that, I'm also using glew in combination with sfml so that isn't a problem.

The only thing I should note is that I'm using Visual studio 2008/2010 express

assainator

##### Share on other sites
I am trying to use libglew32s.a but I can't seem to find it. And glew doesn't provide mingw makefiles. Is there an easy way to compile the static version of the library?

##### Share on other sites
Not sure what issues you had with visual studio, but I can pretty much assure that you could get this working in 10 minutes on VC++. A lot more people around here use it and could probably help you too, more than mingw anyway.

Up to you what you want to do though :\