quiverteam / Engine

Modified Version of Source 2007
104 stars 29 forks source link

posix-support "error: ‘s_GLShaderDevice’ was not declared in this scope" #87

Open Titaniumtown opened 4 years ago

Titaniumtown commented 4 years ago

In file included from /home/simon/Engine/src/materialsystem/shaderapigl/DeviceManager.cpp:10: /home/simon/Engine/src/materialsystem/shaderapigl/ShaderAPIGL.h:31:8: error: ‘CShaderDeviceEmpty’ does not name a type; did you mean ‘CShaderDevice’? 31 | static CShaderDeviceEmpty s_GLShaderDevice; | ^~~~~~ | CShaderDevice In file included from /home/simon/Engine/src/public/materialsystem/imaterialsystem.h:19, from /home/simon/Engine/src/public/materialsystem/imaterial.h:17, from /home/simon/Engine/src/public/shaderapi/ishaderdynamic.h:17, from /home/simon/Engine/src/public/shaderapi/ishaderapi.h:17, from /home/simon/Engine/src/materialsystem/shaderapigl/DeviceManager.h:10, from /home/simon/Engine/src/materialsystem/shaderapigl/DeviceManager.cpp:8: /home/simon/Engine/src/materialsystem/shaderapigl/ShaderAPIGL.h: In function ‘void __CreateCOpenGLShaderDeviceIShaderDevice_interface()’: /home/simon/Engine/src/materialsystem/shaderapigl/ShaderAPIGL.h:35:44: error: ‘s_GLShaderDevic ’ was not declared in this scope; did you mean ‘CGLShaderDevice’? 35 | SHADER_DEVICE_INTERFACE_VERSION, s_GLShaderDevice ) | ^~~~ /home/simon/Engine/src/public/tier1/interface.h:124:122: note: in definition of macro ‘EXPOSE_SINGLE_INTERFACE_GLOBALVAR_WITH_NAMESPACE’ 124 | static void __Create##className##interfaceName##_interface() {return static_cast<interfaceNamespace interfaceName >( &globalVarName );} \ | ^~~~~ /home/simon/Engine/src/materialsystem/shaderapigl/ShaderAPIGL.h:34:1: note: in expansion of macro ‘EXPOSE_SINGLE_INTERFACE_GLOBALVAR’ 34 | EXPOSE_SINGLE_INTERFACE_GLOBALVAR( COpenGLShaderDevice, IShaderDevice, | ^~~~~~~~~ /home/simon/Engine/src/materialsystem/shaderapigl/DeviceManager.cpp: In function ‘void ShaderInterfaceFactory(const char, int)’: /home/simon/Engine/src/materialsystem/shaderapigl/DeviceManager.cpp:23:42: error: ‘s_GLShaderDevice’ was not declared in this scope; did you mean ‘CGLShaderDevice’? 23 | return static_cast< IShaderDevice* >( &s_GLShaderDevice ); | ^~~~ | CGLShaderDevice

JJL772 commented 4 years ago

ShaderAPIGL is just a stub that doesn't work right now. We intend to eventually make an OpenGL shader API, but this won't happen for a long while.

Also, make sure you're building either the upcoming or master branch, as posix-support and x64 are still very much in active development and don't currently run.