pbatard / rufus

The Reliable USB Formatting Utility
https://rufus.ie
GNU General Public License v3.0
29.32k stars 2.6k forks source link

Can't compile 'Rufus' with Visual Studio 2017 #1315

Closed mbluecoder closed 5 years ago

mbluecoder commented 5 years ago



Checklist

Additionally (if applicable):

Issue description

I can not compile your source code. I'm using Visual Studio 2017. Everything builds, except the 'rufus' project. So 10 build, and one does not. I'm getting errors like:

Any help is appreciated! Thanks.

Log

Can not post log as it is on another machine, and a security violation to copy it.
pbatard commented 5 years ago

Can not post log as it is on another machine, and a security violation to copy it.

Well that's gonna be tough to troubleshoot, especially as AppVeyor demonstrates that VS2017 builds don't have any known issues and therefore that the problem is 100% on your end.

Here is a log that demonstrates that the VS2017 compilation does work (same as what I get on my machine).

As much as I'd like to help, I'm afraid my time is way too limited to help you figure out what it is exactly with your environment that prevents Rufus from compiling. The best I can say is that, it is most certainly not a general issue with the project itself.

mbluecoder commented 5 years ago

Thank you for the fast response. I'm trying update the SDK now.

It is strange that all other projects build fine, but not the Rufus one.

pbatard commented 5 years ago

Can you try on a vanilla install of VS2017? By the looks of it, you may be using a corporate version that might have been tweaked somehow.

Also, I'm afraid I'm not aware of anybody having reported the kind of compilation errors you report. The last VS2017 compilation issue I know of had to do with compiling on platforms with non western languages, but that was fixed in 7e21f8a60c8d508fef62a13c32e5cb1849dd0757 and the error you would have gotten then are different from the ones you have.

mbluecoder commented 5 years ago

Yes. I had to manually download the source code from GitHub, copy then unzip the file on a secure machine (no internet access). I will try at home tonight to build there. I'll let you know. -Michael

mbluecoder commented 5 years ago

OK - I tried compiling at home and it worked perfectly. So I compared differences. At work I WAS using VS2017 v15.3.3. I upgraded it to v15.9.11, along with adding some 'individual components' during the setup, and it works fine. I wanted to put that out there for anyone having this problem.

pbatard commented 5 years ago

Okay. I'll close this issue then.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.