r57zone / DualShock4-emulator

DualShock4 emulation for Xbox controllers or keyboard and mouse / Эмуляция DualShock4 для Xbox контроллеров или клавиатуры и мыши
https://youtu.be/17hY1zTqoYQ
The Unlicense
189 stars 30 forks source link

Having trouble compiling #80

Closed Sqlava closed 6 months ago

Sqlava commented 7 months ago

I'm trying to compile a debug version to test some changes with. I had to do a lot of fighting with Visual Studio to end up with:

Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MTd_StaticDebug' in DS4Emulator.obj --- DS4Emulator --- [User Directories]\DualShock4-emulator\DualShock4-emulator\Source\ViGEmClient.lib(ViGEmClient.obj)

The problem I have is that I cannot change 'StaticDebug' to 'StaticRlease' in the DS4Emulator solution because it causes several errors concerning debug symbols. I'm assuming the ViGEmClient.lib file that came with the source code was compiled as a release which is causing the problem with making a debug build.

Is there a lib file available that was compiled as a debug version with the 'RuntimeLibrary' value 'MTd_StaticDebug'? If there is no other solution to this would I be forced to compile the ViGEm source?

r57zone commented 6 months ago

debug.zip ViGEm lib sources - https://github.com/nefarius/ViGEmClient/tree/master

r57zone commented 6 months ago

Did you succeed?