Building ReShade with LLVM (Clang+LLD Linker)

More
3 years 6 months ago - 3 years 6 months ago #1 by lowenz Building ReShade with LLVM (Clang+LLD Linker) was created by lowenz
LLVM 7.01 ( releases.llvm.org/7.0.1/LLVM-7.0.1-win32.exe ) + LLVM Toolchain integration in MSVC ( marketplace.visualstudio.com/items?itemN...sions.llvm-toolchain )

*gl3w
*ImGui
*MinHook+-stb
build with no issues (!!!)

But I can't build the proper reshade core!
Severity	Code	Description	Project	File	Line	Suppression State
Error		reference to scoped enumeration must use 'enum' not 'enum class'	ReShade FX	D:\Projects\reshade\source\effect_expression.hpp	220	
Error		expected expression	ReShade FX	D:\Projects\reshade\source\effect_codegen.hpp	18	
Error		variable has incomplete type 'class codegen'	ReShade FX	D:\Projects\reshade\source\effect_codegen.hpp	16	
Error		too many errors emitted, stopping now [-ferror-limit=]	ReShade	D:\Projects\reshade\CL	1	
Error		no member named 'frame_width' in 'reshade::d3d10::runtime_d3d10'	ReShade	D:\Projects\reshade\source\d3d10\d3d10_device.cpp	54	
Error		no member named 'frame_height' in 'reshade::d3d10::runtime_d3d10'	ReShade	D:\Projects\reshade\source\d3d10\d3d10_device.cpp	51	
Error		no member named 'frame_width' in 'reshade::d3d10::runtime_d3d10'	ReShade	D:\Projects\reshade\source\d3d10\d3d10_device.cpp	51	
Error		only virtual member functions can be marked 'override'	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	97	
Error		only virtual member functions can be marked 'override'	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	92	
Error		only virtual member functions can be marked 'override'	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	63	
Error		only virtual member functions can be marked 'override'	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	61	
Error		only virtual member functions can be marked 'override'	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	60	
Error		only virtual member functions can be marked 'override'	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	57	
Error		only virtual member functions can be marked 'override'	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	56	
Error		base class has incomplete type	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	45	
Error		base class has incomplete type	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	33	
Error		base class has incomplete type	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	20	
Error		base class has incomplete type	ReShade	D:\Projects\reshade\source\d3d10\runtime_d3d10.hpp	14	
Error		expected expression	ReShade	D:\Projects\reshade\source\runtime.hpp	27	
Error		redefinition of 'abstract'	ReShade	D:\Projects\reshade\source\runtime.hpp	25	
Error		variable has incomplete type 'class base_object'	ReShade	D:\Projects\reshade\source\runtime_objects.hpp	36	
Error		expected expression	ReShade	D:\Projects\reshade\source\runtime_objects.hpp	38	
Error		reference to scoped enumeration must use 'enum' not 'enum class'	ReShade	D:\Projects\reshade\source\effect_expression.hpp	220	
Error		too many errors emitted, stopping now [-ferror-limit=]	ReShade FX	D:\Projects\reshade\CL	1	
Error		unknown type name 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	301	
Error		unknown type name 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	271	
Error		unknown type name 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	229	
Error		unknown type name 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	218	
Error		unknown type name 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	216	
Error		only virtual member functions can be marked 'override'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	47	
Error		use of undeclared identifier 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	45	
Error		use of undeclared identifier 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	40	
Error		use of undeclared identifier 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	39	
Error		unknown type name 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	37	
Error		unknown type name 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	36	
Error		unknown type name 'id'	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	35	
Error		base class has incomplete type	ReShade FX	D:\Projects\reshade\source\effect_codegen_glsl.cpp	13	
Error		incomplete type 'reshadefx::codegen' named in nested name specifier	ReShade FX	D:\Projects\reshade\source\effect_parser.hpp	91	
Error		incomplete type 'reshadefx::codegen' named in nested name specifier	ReShade FX	D:\Projects\reshade\source\effect_parser.hpp	90	
Error		incomplete type 'reshadefx::codegen' named in nested name specifier	ReShade FX	D:\Projects\reshade\source\effect_parser.hpp	31	
etc etc etc
Last edit: 3 years 6 months ago by lowenz.

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago - 3 years 6 months ago #2 by seri14 Replied by seri14 on topic Building ReShade with LLVM (Clang+LLD Linker)
More requires fix after solve these error.
I give up.
Last edit: 3 years 6 months ago by seri14.

Please Log in or Create an account to join the conversation.

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.