RPCS3 Forums

Full Version: Rpcs3 compilation issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

MrComputerRevo

Hello. I'm trying to compile rpcs3 on Windows 8.1 with Visual Studio 2015 but no luck. There is an error in file /Emu/Memory/vm.cpp at line 241 pred = [exception = std::current_exception()]() -> bool
Operator() must return a value.
If anyone could help please. Thanks in advance!

flashmozzg

Are you using Visual Studio 2015 with Update 1?

MrComputerRevo

(01-26-2016, 09:34 PM)flashmozzg Wrote: [ -> ]Are you using Visual Studio 2015 with Update 1?
Oh. Yeah, that may be a problem. I haven't updated it in a while. Just to be sure, you CAN compile on Windows 8.1 right?

tambre

(01-27-2016, 05:44 AM)MrComputerRevo Wrote: [ -> ]
(01-26-2016, 09:34 PM)flashmozzg Wrote: [ -> ]Are you using Visual Studio 2015 with Update 1?
Oh. Yeah, that may be a problem. I haven't updated it in a while. Just to be sure, you CAN compile on Windows 8.1 right?

Yes you can. You just need the Update 1.

MrComputerRevo

That got rid of that error. But now there are 2 linker errors about not finding LLVMMCJIT.lib and asmjit.lib. But its still linking so maybe it's fine?
EDIT: No, it wasn't fine... But I built asmjit separately and now trying again.
EDIT2: Successfully compiled. Thanks for your answers!

MrComputerRevo

Also, uhm. Slightly off topic but for some reason Windows 10 is slower for me at recompiling SPU functions than 8.1. In 8.1 it takes 2-3 seconds and in 10 it takes more than 10 sometimes... Hardware is the same. Why is that?

tambre

(01-28-2016, 05:35 AM)MrComputerRevo Wrote: [ -> ]Also, uhm. Slightly off topic but for some reason Windows 10 is slower for me at recompiling SPU functions than 8.1. In 8.1 it takes 2-3 seconds and in 10 it takes more than 10 sometimes... Hardware is the same. Why is that?

You probably shouldn't be using it. It's kind of known to be sometimes slower and possibly inaccurate.

MrComputerRevo

(01-28-2016, 05:37 AM)tambre Wrote: [ -> ]
(01-28-2016, 05:35 AM)MrComputerRevo Wrote: [ -> ]Also, uhm. Slightly off topic but for some reason Windows 10 is slower for me at recompiling SPU functions than 8.1. In 8.1 it takes 2-3 seconds and in 10 it takes more than 10 sometimes... Hardware is the same. Why is that?

You probably shouldn't be using it. It's kind of known to be sometimes slower and possibly inaccurate.
Oh, is PPU recompiled any better?

flashmozzg

(01-28-2016, 05:57 AM)MrComputerRevo Wrote: [ -> ]
(01-28-2016, 05:37 AM)tambre Wrote: [ -> ]
(01-28-2016, 05:35 AM)MrComputerRevo Wrote: [ -> ]Also, uhm. Slightly off topic but for some reason Windows 10 is slower for me at recompiling SPU functions than 8.1. In 8.1 it takes 2-3 seconds and in 10 it takes more than 10 sometimes... Hardware is the same. Why is that?

You probably shouldn't be using it. It's kind of known to be sometimes slower and possibly inaccurate.
Oh, is PPU recompiled any better?
PPU llvm jit is usually better (in simple games like Sonic CD it's undoubtedly better, can get easily 300+ fps with it) but it takes time to warm up (for "hard" games it can take up several minutes) and it's less accurate/stable when interpreter 2. So the rule of thumb is to always test with interp 2 for both spu and ppu and if the game works and you want extra speed - try recompilers.

MrComputerRevo

(01-28-2016, 10:40 AM)flashmozzg Wrote: [ -> ]PPU llvm jit is usually better (in simple games like Sonic CD it's undoubtedly better, can get easily 300+ fps with it) but it takes time to warm up (for "hard" games it can take up several minutes) and it's less accurate/stable when interpreter 2. So the rule of thumb is to always test with interp 2 for both spu and ppu and if the game works and you want extra speed - try recompilers.

Argg... Back on topic, I've installed Windows 10 and now it's not compiling again... Error C2220 warning treated as error - no 'object' file generated D3D12GSRender c:\program files (x86)\microsoft visual studio 14.0\vc\include\xutility Line 2229
I'm really sorry that I'm bothering you with all this but I just really want to find out more about programming emulators. I'm familiar with programming software but not systems...

EDIT: I've disabled Treat Warnings as Errors and it went through, just don't know how "right" of a solution this is.
EDIT2: OK, last question. How do you debug with VS? The debug build crashes for me with Expression: "Standard C++ Libraries Out of Range". Thank you for all of the answers so far.
Pages: 1 2