I followed the Build Instructions to build Slicer on Windows 10.
CMake: 3.19.3
Git: 2.30.0.2
Qt: 5.15.2 64-bit (MSVC 2019)
Visual Studio 2019 C++ x64
After build Slicer in Visual Studio, 5 errors occurred.
The error list window in Visual Studio shows the errors in a somewhat random order. The errors that you show in the screenshot (all of them due to missing archive.h) are consequence of some previous errors that we don’t see.
Can you upload the full build log (not the content of “Error list” but content of “Output” window) somewhere and post the download link here?
Probably the issue is that your system code page is set to 950 (Traditional Chinese) and c:\S4R\LibArchive\libarchive\archive_read_support_format_rar5.c contains characters that cannot be interpreted in this code page.
The simplest is to remove the offending characters (remove entire line 74, it is just a comment):
* "Rar!→•☺·\x00"
If you will keep running into similar errors then you may consider switching to Latin1 code page for the build.
Hello, I am a graduate student in a master class, and I am currently working on building a 3D slicer, and some building errors are happening to me. It is convenient for you to ask if the five errors are all solved by deleting the comments, or Is it useful for other solutions? If you are willing and available, is it convenient to email you for more details. Thank you! It doesn’t matter if you don’t want to, thank you for reading.