Welcome, Guest.
Username: Password: Remember me

TOPIC: Reshade source code compile errors [SOLVED]

Reshade source code compile errors [SOLVED] 2 weeks 4 days ago #1

Hello everyone !
No idea if this is the right forum section for this kind of question but can anyone help with these compile errors :



Here is my Reshade .vcxproj project file
It seems like ImGui is not linked properly but even when explicitely adding the path to ImGui.lib to "Additional Library Directories" does not solve the issue :(

(This is the vanilla .sln/.vcxproj configuration straight from GitHub, no modifications whatsoever from me)
Last Edit: 2 weeks 4 days ago by Boulotaur2024.
The administrator has disabled public write access.

Reshade source code compile errors (Visual Studio) 2 weeks 4 days ago #2

Figured it out :



« imgui_widgets.cpp » was missing from the "ImGui" project so I added it manually and bingo
(Also a few references to "SetScrollHere" that need to be renamed to "SetScrollHereY")

EDIT : holy crap, the debug output is an .exe file !
How does this thing work :puzzled: :D
Last Edit: 2 weeks 4 days ago by Boulotaur2024.
The administrator has disabled public write access.

Reshade source code compile errors (Visual Studio) 2 weeks 4 days ago #3

The project files were created against a specific ImGui version. If you sync using Git submodules it should have downloaded the exact version you need without you having to make any modifications (ImGui is under heavy development, so the API changes frequently).

The "Debug App" target produces an executable which you can run in the Visual Studio debugger. This obviously makes debugging a LOT easier. It is also a nice environment to write shaders in. Just load a shader that outputs an image to the screen and you can then debug a shader applied to that image. If you want the actual DLL that you can install to games, select the "Debug" or "Release" targets.
Cheers, crosire =)
Last Edit: 2 weeks 4 days ago by crosire.
The administrator has disabled public write access.

Reshade source code compile errors (Visual Studio) 2 weeks 3 days ago #4

Thanks Crosire !
Bottom line : use Git submodules if you want to make your life easier (and my thread is useless in that case)

While I'm at it can I ask you one more question ?
I am trying to debug a game ("Gems.exe") by running the debugger in "Debug" mode (not "Debug App") and I get an instant "Access Violation Error " :



I remember having these kinds of "Access Violation Errors" before in "Debug" mode only (not "Release") but I can't seem to remember how to avoid them.
Maybe there is a special trick to debug reluctant apps ?
Using the Debug App ?

EDIT :
dxgi.log
Gems.exe
(No external overlays causing the crash)

EDIT :
Oh wow... I commented out :

//Flags |= D3D11_CREATE_DEVICE_DEBUG;
In d3d11.cpp and now it is working fine. (which is funny if you think about it)
And now I can debug throughout the game (app)
Last Edit: 2 weeks 3 days ago by Boulotaur2024.
The administrator has disabled public write access.

Reshade source code compile errors (Visual Studio) 2 weeks 3 days ago #5

Boulotaur2024 wrote:
Oh wow... I commented out :
Was about to say that. It's a weird Windows 10 thing. The flags works fine on Windows 7, but causes a crash every time on Windows 10 (something with the hooking messes up the SDK layers there).
Cheers, crosire =)
Last Edit: 2 weeks 3 days ago by crosire.
The administrator has disabled public write access.

Reshade source code compile errors (Visual Studio) 2 weeks 3 days ago #6

Yeah I guessed so... I was thinking that maybe I was missing a DirectX SDK or someting. Also installed a few things after googling... But nothing helped...
Now I understand why you don't want to upgrade to Windows 10 :]
Thing is with that commented out I don't get the extra debug output which would have been super convenient in my case...

Oh well that's it for today I guess...
I'll get back to it later..
The administrator has disabled public write access.