Error creating OpenGL3Renderer

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

samuelnaga
Just popping in
Just popping in
Posts: 9
Joined: Mon Mar 06, 2017 12:29

Error creating OpenGL3Renderer

Postby samuelnaga » Tue Mar 21, 2017 10:45

Hi
I'm using cegui 0.8.7 with visual studio 2015 and opengl
OS: Windows 10 x64
I'm trying CEGUI with opengl but when I create a simple renderer it shows an error.
I think a dll is missing but it is supposed that I've included all I need


Thats the simple things I have about CEGUI:

Code: Select all

#include <CEGUI\CEGUI.h>
#include <CEGUI\RendererModules\OpenGL\GL3Renderer.h>

CEGUI::OpenGL3Renderer& myrenderer = CEGUI::OpenGL3Renderer::bootstrapSystem();


Here are the dlls I have included

Code: Select all

assimp-vc140-mt.dll
CEGUIBase-0_d.dll
CEGUICoreWindowRendererSet_d.dll
CEGUIExpatParser_d.dll
CEGUIOpenGLRenderer-0_d.dll
CEGUISILLYImageCodec_d.dll
freetype_d.dll
glew_d.dll
glew32.dll
glfw_d.dll
glfw3.dll
jpeg_d.dll
libexpat_d.dll
libpng_d.dll
lua_d.dll
pcre_d.dll
SILLY_d.dll
toluapp_d.dll
zlib_d.dll

Their libs are included aswell.
In the input linked I've included CEGUIBase-0_d.lib and CEGUIOpenGLRenderer-0_d.lib, Do I need to include the others here too?


Here is the error it shows:

Code: Select all

Error   LNK2019   símbolo externo "__declspec(dllimport) public: static class CEGUI::OpenGL3Renderer & __cdecl CEGUI::OpenGL3Renderer::bootstrapSystem(int)" (__imp_?bootstrapSystem@OpenGL3Renderer@CEGUI@@SAAEAV12@H@Z) sin resolver al que se hace referencia en la función main   [TAG]GraphicEngine   C:\Users\Samuel\Desktop\[TAG]GraphicEngineeee\[TAG]GraphicEngine\main.obj   1   

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Error creating OpenGL3Renderer

Postby Ident » Tue Mar 21, 2017 21:36

The linker message tells you it is looking for OpenGL3Renderer not OpenGLRenderer, you seem to have misconfigured it or whatever. I am not sure which one you intend to use.
CrazyEddie: "I don't like GUIs"

samuelnaga
Just popping in
Just popping in
Posts: 9
Joined: Mon Mar 06, 2017 12:29

Re: Error creating OpenGL3Renderer

Postby samuelnaga » Wed Mar 22, 2017 11:32

well, if I try to use OpenGLRenderer instead,

Code: Select all

CEGUI::OpenGLRenderer& myrenderer = CEGUI::OpenGLRenderer::bootstrapSystem();


it happens the same...

Code: Select all

Error   LNK2019   símbolo externo "__declspec(dllimport) public: static class CEGUI::OpenGLRenderer & __cdecl CEGUI::OpenGLRenderer::bootstrapSystem(enum CEGUI::OpenGLRenderer::TextureTargetType,int)" (__imp_?bootstrapSystem@OpenGLRenderer@CEGUI@@SAAEAV12@W4TextureTargetType@12@H@Z) sin resolver al que se hace referencia en la función main   [TAG]GraphicEngine   C:\Users\Samuel\Desktop\[TAG]GraphicEngineeee\[TAG]GraphicEngine\main.obj   1   

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Error creating OpenGL3Renderer

Postby Ident » Thu Mar 23, 2017 08:02

Try to compile the samplebrowser, see if it works. If it works, look at its project settings and compare. If possible only compile either OpenGLRenderer OR OpenGL3Renderer, makes it less confusing.
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 9 guests