Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation with VS2017 (v141 build tools) #4546

Merged
merged 3 commits into from Aug 24, 2018
Merged

Fix compilation with VS2017 (v141 build tools) #4546

merged 3 commits into from Aug 24, 2018

Conversation

Morten242
Copy link
Contributor

Just making the types explicit.

@Megamouse
Copy link
Contributor

Just wondering... My VS2017 compiles RPCS3 without any problems.

@Zangetsu38
Copy link
Contributor

not for me, without my fix by clienthax compile not works

@Morten242
Copy link
Contributor Author

Morten242 commented May 12, 2018

hmm.. maybe it's because I use 2017.7? What version are you on? I think I also had this issue on 2017.6

edit: not with the 2015 build tools (v140(?)).

@Morten242 Morten242 changed the title Fix compilation with VS2017 Fix compilation with VS2017 (v141 build tools) May 12, 2018
@Megamouse
Copy link
Contributor

In case this really fixes v141 you could update this part of the readme,md:
image
Also maybe move it above the "Configuring Qt" part

@elad335
Copy link
Contributor

elad335 commented May 12, 2018

some people on discord had narrowing conversation compilation errors in PPUAnalyser.cpp file.
I think they have used toolset v140 though afair

@Megamouse
Copy link
Contributor

btw I have VS2017 community 15.7.1 with v141 tools

@Morten242
Copy link
Contributor Author

Morten242 commented May 12, 2018

@Megamouse It fixes it for me (with upgraded projects), people would have to manually update the llvm-build, glsl-build and Vulkan-build though to use "Visual Studio 15 2017" instead of 2015 (unless this is also changed).

@elad335 I think that's where the VS said the error was for me as well, but it was when instantiating this struct.

@Megamouse
Copy link
Contributor

well. all I did was install VS17, opened the project, rebuilt the submodules and rpcs3

@Nicba1010
Copy link
Contributor

@Morten242 you need to change the appveyor .yml file to use visual studio 2017

@Morten242
Copy link
Contributor Author

So.. was this the only thing preventing RPCS3 from using v141 build tools? Should making a full transfer to v141 build tools be a separate change from this?

@Nekotekina
Copy link
Member

I would hope for dropping MSVC completely instead (using clang)

@Zangetsu38
Copy link
Contributor

Zangetsu38 commented May 12, 2018

Dropping MSVC is bad idea, but very need bump project on 2017 same other all, 2015 is obsolete actually, no updated after Update 3, 2017 get update frequently

@isJuhn
Copy link
Contributor

isJuhn commented May 12, 2018

@Zangetsu38 why is dropping MSVC a bad idea?

@danilaml
Copy link
Contributor

@Nekotekina need to drop VS solutions as project files as well then, moving completely to CMake. Though there is no proper support for Clang on Windows there IRC (only clang-cl compatibility driver).

@kd-11
Copy link
Contributor

kd-11 commented May 12, 2018

We will lose debugging functionality. Like setting one single file to build without optimizations while the rest of the emu is built in release mode. It (cmake) works well enough for building, but debugging with msvc mighy become a bit harder.

@Zangetsu38
Copy link
Contributor

Zangetsu38 commented May 12, 2018

So yes, drop him is very bad idea, and use cmake not change this problem compile with VS2017, and clang not exist for Windows so no.

@scribam
Copy link
Contributor

scribam commented May 13, 2018

I don't think there would be a problem to improve the Visual Studio 2017 compatibility as long as we keep the "official" compatibility with VS2015. Is it possible with these changes?

Improvements with the build system will come (I am interested by it at least), step by step and I will try to make all users/developers happy with the changes.

@Morten242
Copy link
Contributor Author

@scribam yeah, this was my intent with the patch. I've made these changes 2-3 times in the past when compiling with the v141 build tools (I don't have any reason to install the v140 build tools) and figured I might as well push it upstream.

@Nekotekina
Copy link
Member

Nekotekina commented May 13, 2018

This is most likely compiler bug. I would like someone at least report it to the MS (I don't have account).

@Morten242
Copy link
Contributor Author

Morten242 commented May 13, 2018

@Nekotekina could be, yeah. I have a small repro for the error so I'll report it then

edit: https://developercommunity.visualstudio.com/content/problem/251976/value-initializing-an-object-in-an-array-gives-an.html

@Nekotekina Nekotekina merged commit b095a0b into RPCS3:master Aug 24, 2018
@Zangetsu38
Copy link
Contributor

for now not forget it not works on last VS2017 15.8, error on error_code if @Morten242 you can look on it

@AniLeo
Copy link
Member

AniLeo commented Aug 24, 2018

I think @Nekotekina is already looking into it

@Zangetsu38
Copy link
Contributor

ah no idea, i have repoort first this issue but so i have no see news after :/

@Morten242 Morten242 deleted the vs-compile-fix branch August 24, 2018 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet