Prusaslicer: Failed to build deps for wxWidgets

Created on 22 Jul 2020  ·  71Comments  ·  Source: prusa3d/PrusaSlicer

No stash entries found.
CMake Error at D:/PrusaSlicer/PrusaSlicer-master/deps/build/dep_wxWidgets-prefix/tmp/dep_wxWidgets-gitupdate.cmake:189 (message):

Failed to unstash changes in:
'D:/PrusaSlicer/PrusaSlicer-master/deps/build/dep_wxWidgets-prefix/src/dep_wxWidgets'.

You will have to resolve the conflicts manually

Most helpful comment

@n8bot I finally know why I failed to build wxwidgets: since Git 1.70 Submodules are now regarded as dirty if they have any modified files or untracked files
https://stackoverflow.com/questions/4873980/git-diff-says-subproject-is-dirty
I went to the submodule which is src/expat in my case and type
git checkout . to solve this problem

All 71 comments

My PrusaSlicer source code is cloning from the newest master branch.
I tried to build with msbuild first, then get failed with this dependency. And then I tried to build it with nmake, which showed the same result.

Hmm this seems related to git. Have you got any changes or anything that you never committed or the like? try doing a git clean.

let me try. So is that happened even though that the never committed file is from other folder or other project?

No clue. Make sure you have the latest version of git, try to clean the repo, and try again. I'm only guessing here. However, the unstash changes thing is definitely git related.

Thanks! let me update when I solved this problem.

Here is something wired, the failed unstach changed is inside the /deps/build folder, which is initially empty. it means that the file it mentioned was not from my computer but from the files it downloaded.

And when I going into the the directory it mentioned:D:/PrusaSlicer/PrusaSlicer-master/deps/build/dep_wxWidgets-prefix/src/dep_wxWidgets.
I used git status, it showed me following:

d:PrusaSlicerPrusaSlicer-masterdepsbuilddep_wxWidgets-prefixsrcdep_wxWidgets>git status
On branch v3.1.3-patched
Your branch is up to date with 'origin/v3.1.3-patched'.

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: src/expat (modified content)

no changes added to commit (use "git add" and/or "git commit -a")

And here is the error info from msbuild:

   "d:\PrusaSlicer\PrusaSlicer-master\deps\build\ALL_BUILD.vcxproj" (default target) (1) ->
   "D:\PrusaSlicer\PrusaSlicer-master\deps\build\deps.vcxproj" (default target) (3) ->
   "D:\PrusaSlicer\PrusaSlicer-master\deps\build\dep_wxWidgets.vcxproj" (default target) (21) ->
   (CustomBuild target) ->
     D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.t
   argets(231,5): error MSB6006: "cmd.exe" exited with code 1. [D:\PrusaSlicer\PrusaSlicer-master\deps\build\dep_w
   xWidgets.vcxproj]

My advice: destroy the whole repo, re-clone, and do it methodically. Also, make sure that you use .gitignore to ignore the built deps, so they are not tracked in the repo. Likely, you didn't commit the "change" of building the deps, and so doing much of anything becomes problematic at times. I'm no git expert. Are there extensive changes you have made, or are you just trying to build master?

Yes I am trying to build master, and this is definitely clean build.

Alright. Start from scratch. Build deps, but send them to a directory outside of the current Repo, so you can re-use them if you want to scrap the repo and start over.

  1. Open the x64 Native Tools Command prompt as administrator.
    _(Shift+Right click on the icon->Run as administrator -- running as admin might be unnecessary, but it can't hurt and can be required depending on where you choose to do all of the next steps.)_

  2. Build deps.
    _(I'm using build2 in case you already have made a build directory. We're making a new one)_

cd\C:\[Your_PrusaSlicer_Repo_Path]\

cd deps

mkdir build2

cd build2

cmake .. -G "Visual Studio 16 2019" -A "x64" -DDESTDIR="C:\[empty path where you want to build deps, not inside the repo/directory you are currently in]"

cmake will do its thing, then when it completes without error:

msbuild /m ALL_BUILD.vcxproj

That will build the deps to C:[empty path where you want to build deps, not inside the repo/directory you are currently in]

I'm pretty sure that DESTDIR path has to not exist. IE, it will create the folder for you, don't make it ahead of time.

  1. Then, to build PrusaSlicer, since you'll still be in the deps/build directory, go back to the main repo by doing cd .. twice, like so and continue on:
cd..

cd..

mkdir build2

cd build2
  1. Build PrusaSlicer.
    You are now in your C:[Your_PrusaSlicer_Repo_Path]build2 directory.
    From here, do this, using the exact path you built the deps into, with \usr\local added on for the PREFIX_PATH.
cmake .. -G "Visual Studio 16 2019" -A "x64" -DCMAKE_PREFIX_PATH="C:\[empty path where you want to build deps, not inside the repo/directory you are currently in]\usr\local"

Cmake will do its thing, then to build:

msbuild /m /P:Configuration=Release ALL_BUILD.vcxproj

And voila, 632 warnings and 0 errors later, you got yourself PrusaSlicer 2.3.0-alpha0.

These instructions are directly from SuperSlicer build instructions.

You can now skip building deps whenever you want to build prusaslicer and point to that prefix_path.

Thanks! let me try first

Well I followed your instruction, and it failed with the same error for this time.

   “D:\PrusaSlicer\PrusaSlicer-master\deps\build2\ALL_BUILD.vcxproj”(default target) (1) ->
   “D:\PrusaSlicer\PrusaSlicer-master\deps\build2\deps.vcxproj”(default target) (3) ->
   “D:\PrusaSlicer\PrusaSlicer-master\deps\build2\dep_wxWidgets.vcxproj”(default target) (21) ->
   (CustomBuild target) ->
     D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.ta
   rgets(231,5): error MSB6006: “cmd.exe”exited,code 1。 [D:\PrusaSlicer\PrusaSlicer-master\deps\build2\dep_wxWidgets.vc
   xproj]

1927 warning
1 error

Was that on a completely fresh clone of PS? Try that, if not.

I decompressed the zip file that I downloaded from github this afternoon.

So should be the clean clone.

Was it in the same location as the git repository? Is there a hidden .git folder? Did you actually delete the entire contents of all the folders or just add the files from the zip over top?

Yes I deleted the entire folder that I extracted. Should delete the hidden .git folder also.

In one of your posts, it says you have checked out a branch v3.1.3-patched is this correct?

Yes, that's under PrusaSlicer-masterdepsbuilddep_wxWidgets-prefixsrcdep_wxWidgets folder.

Then 3.1.3-patched should related to wxWidgets dependency.

Ok that seems correct. I'm building the deps myself at the moment to troubleshoot this for you. What version of git do you have?

D:Program Files (x86)Microsoft Visual Studio2019Community>git --version
git version 2.27.0.windows.1

I just successfully built the deps with the exact instructions I used, directly from the master repo of PS. There is likely some error in your setup somewhere. I'm on Windows 7, though.

You're using the "x64 native tools command prompt" from the Visual Studio tools packages, not just normal command prompt, right?

Yes, with the version of Visual Studio 2019

Well, I'm stumped. Sorry!

Well, thank you so much! let me try one more time >=<

I uploaded the deps that I just built, so that you can just move on and try to build PS itself. See here.

Should I just downloaded the zip file or the source code?

I downloaded the zip file, and plz allow me to take some time to extract it out.

Not the source code, just the zip file or 7z file called PrusaSlicer-2.3.0-alpha0_deps_Jul_21_2020

Then, extract that, and point the cmake command for building prusaslicer to wherever you extracted that directory.

which is the DCMAKE_PREFIX_PATH right?

yeah, and add on usrlocal to the end.

It would look like this D:\temp\prusadeps\usr\local

Here is the cmake result, and let me upload this info first, then I will build it:
I:PrusaSlicer-version_2.3.0-alpha0build>cmake .. -G "Visual Studio 16 2019" -A "x64" -DCMAKE_PREFIX_PATH="I:tempusrlocal"
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.26.28806.0
-- The CXX compiler identification is MSVC 19.26.28806.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- SLIC3R_ASAN: OFF
-- SLIC3R_BUILD_SANDBOXES: OFF
-- SLIC3R_BUILD_TESTS: ON
-- SLIC3R_FHS: OFF
-- SLIC3R_GTK: 2
-- SLIC3R_GUI: ON
-- SLIC3R_MSVC_COMPILE_PARALLEL: ON
-- SLIC3R_MSVC_PDB: ON
-- SLIC3R_PCH: ON
-- SLIC3R_PERL_XS: OFF
-- SLIC3R_PROFILE: OFF
-- SLIC3R_STATIC: ON
-- SLIC3R_WX_STABLE: OFF
-- SLIC3R_STATIC: ON
-- CMAKE_PREFIX_PATH: I:tempusrlocal (from cache or command line)
CMake Warning at CMakeLists.txt:98 (message):
CMAKE_PREFIX_PATH element doesn't exist: I:tempusrlocal

Building without Win10 Netfabb STL fixing service support
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
^C
I:PrusaSlicer-version_2.3.0-alpha0build>cmake .. -G "Visual Studio 16 2019" -A "x64" -DCMAKE_PREFIX_PATH="I:tempprusadepsusrlocal"
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.26.28806.0
-- The CXX compiler identification is MSVC 19.26.28806.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- SLIC3R_ASAN: OFF
-- SLIC3R_BUILD_SANDBOXES: OFF
-- SLIC3R_BUILD_TESTS: ON
-- SLIC3R_FHS: OFF
-- SLIC3R_GTK: 2
-- SLIC3R_GUI: ON
-- SLIC3R_MSVC_COMPILE_PARALLEL: ON
-- SLIC3R_MSVC_PDB: ON
-- SLIC3R_PCH: ON
-- SLIC3R_PERL_XS: OFF
-- SLIC3R_PROFILE: OFF
-- SLIC3R_STATIC: ON
-- SLIC3R_WX_STABLE: OFF
-- SLIC3R_STATIC: ON
-- CMAKE_PREFIX_PATH: I:tempprusadepsusrlocal (from cache or command line)
Building without Win10 Netfabb STL fixing service support
-- Found Boost 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET REQUIRED COMPONENTS system;filesystem;thread;log;locale;regex;chrono;atomic;date_time
-- Found boost_headers 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_headers-1.70.0
-- Found boost_system 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_system-1.70.0
-- libboost_system-vc142-mt-gd-x64-1_70.lib
-- libboost_system-vc142-mt-x64-1_70.lib
-- Adding boost_system dependencies: headers
-- Found boost_filesystem 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_filesystem-1.70.0
-- libboost_filesystem-vc142-mt-gd-x64-1_70.lib
-- libboost_filesystem-vc142-mt-x64-1_70.lib
-- Adding boost_filesystem dependencies: headers
-- Found boost_thread 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_thread-1.70.0
-- libboost_thread-vc142-mt-gd-x64-1_70.lib
-- libboost_thread-vc142-mt-x64-1_70.lib
-- Adding boost_thread dependencies: chrono;headers
-- Found boost_chrono 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_chrono-1.70.0
-- libboost_chrono-vc142-mt-gd-x64-1_70.lib
-- libboost_chrono-vc142-mt-x64-1_70.lib
-- Adding boost_chrono dependencies: headers
-- Found boost_log 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_log-1.70.0
-- libboost_log-vc142-mt-gd-x64-1_70.lib
-- libboost_log-vc142-mt-x64-1_70.lib
-- Adding boost_log dependencies: atomic;chrono;date_time;filesystem;regex;thread;headers
-- Found boost_atomic 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_atomic-1.70.0
-- libboost_atomic-vc142-mt-gd-x64-1_70.lib
-- libboost_atomic-vc142-mt-x64-1_70.lib
-- Adding boost_atomic dependencies: headers
-- Found boost_date_time 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_date_time-1.70.0
-- libboost_date_time-vc142-mt-gd-x64-1_70.lib
-- libboost_date_time-vc142-mt-x64-1_70.lib
-- Adding boost_date_time dependencies: headers
-- Found boost_regex 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_regex-1.70.0
-- libboost_regex-vc142-mt-gd-x64-1_70.lib
-- libboost_regex-vc142-mt-x64-1_70.lib
-- Adding boost_regex dependencies: headers
-- Found boost_locale 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_locale-1.70.0
-- libboost_locale-vc142-mt-gd-x64-1_70.lib
-- libboost_locale-vc142-mt-x64-1_70.lib
-- Adding boost_locale dependencies: system;headers
-- Found Boost: I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found version "1.70.0") found components: system filesystem thread log locale regex chrono atomic date_time
-- Boost::boost exists
-- Found TBB: I:/temp/prusadeps/usr/local/include (found version "2017.0")
-- TBB_FOUND = TRUE
-- TBB_INCLUDE_DIRS = I:/temp/prusadeps/usr/local/include
-- TBB_DEFINITIONS = __TBB_NO_IMPLICIT_LINKAGE
-- TBB_LIBRARIES = I:/temp/prusadeps/usr/local/lib/tbb_static.lib
-- TBB_DEFINITIONS_DEBUG = TBB_USE_DEBUG=1
-- TBB_LIBRARIES_DEBUG = I:/temp/prusadeps/usr/local/lib/tbb_static_debug.lib
-- TBB_DEFINITIONS_RELEASE =
-- TBB_LIBRARIES_RELEASE = I:/temp/prusadeps/usr/local/lib/tbb_static.lib
-- Found CURL: optimized;I:/temp/prusadeps/usr/local/lib/libcurl_a.lib;debug;I:/temp/prusadeps/usr/local/lib/libcurl_a_debug.lib (found version "7.58.0")
-- Found EXPAT: I:/temp/prusadeps/usr/local/lib/expat.lib (found version "2.2.0")
-- Found ZLIB: I:/temp/prusadeps/usr/local/lib/zlib.lib (found version "1.2.11")
-- Found PNG: optimized;I:/temp/prusadeps/usr/local/lib/libpng16_static.lib;debug;I:/temp/prusadeps/usr/local/lib/libpng16_staticd.lib (found version "1.6.35")
-- Found OpenGL: opengl32
-- FindGLEW: did not find GLEW CMake config file. Searching for libraries.
-- FindGLEW: GLEW_USE_STATIC_LIBS: ON.
-- FindGLEW: GLEW_INCLUDE_DIR: I:/temp/prusadeps/usr/local/include
-- FindGLEW: GLEW_INCLUDE_DIRS: I:/temp/prusadeps/usr/local/include
-- FindGLEW: CMAKE_FIND_LIBRARY_SUFFIXES for SHARED: .lib
-- FindGLEW: CMAKE_FIND_LIBRARY_SUFFIXES for STATIC: .lib
-- FindGLEW: GLEW_SHARED_LIBRARY_RELEASE: I:/temp/prusadeps/usr/local/lib/glew.lib
-- FindGLEW: GLEW_STATIC_LIBRARY_RELEASE: I:/temp/prusadeps/usr/local/lib/glew.lib
-- FindGLEW: GLEW_SHARED_LIBRARY_DEBUG: I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_STATIC_LIBRARY_DEBUG: I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_SHARED_LIBRARY: optimized;I:/temp/prusadeps/usr/local/lib/glew.lib;debug;I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_STATIC_LIBRARY: optimized;I:/temp/prusadeps/usr/local/lib/glew.lib;debug;I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_LIBRARIES: optimized;I:/temp/prusadeps/usr/local/lib/glew.lib;debug;I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_VERSION_MAJOR: 1
-- FindGLEW: GLEW_VERSION_MINOR: 13
-- FindGLEW: GLEW_VERSION_MICRO: 0
-- FindGLEW: GLEW_VERSION: 1.13.0
-- Found GLEW: I:/temp/prusadeps/usr/local/include (found version "1.13.0")
-- FindGLEW: Creating GLEW::glew_s imported target.
-- FindGLEW: Creating GLEW::GLEW imported target.
-- Found NLopt in 'I:/temp/prusadeps/usr/local/lib'.
-- Using NLopt include directory 'I:/temp/prusadeps/usr/local/include'.
-- Using NLopt library 'I:/temp/prusadeps/usr/local/lib/nlopt.lib'.
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found OpenVDB: I:/temp/prusadeps/usr/local/include (found suitable version "6.2.1", minimum required is "5.0") found components: openvdb
-- OpenVDB ABI Version: 6
-- Found Boost 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET REQUIRED COMPONENTS iostreams;system
-- Found boost_iostreams 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_iostreams-1.70.0
-- libboost_iostreams-vc142-mt-gd-x64-1_70.lib
-- libboost_iostreams-vc142-mt-x64-1_70.lib
-- Adding boost_iostreams dependencies: headers
-- Found Boost: I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found version "1.70.0") found components: iostreams system
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- OpenVDB libraries: I:/temp/prusadeps/usr/local/lib/libopenvdb.lib;I:/temp/prusadeps/usr/local/lib/libopenvdbd.lib
-- Miniz NOT found in system, using bundled version...
-- qhull Version: 7.2.0 (static linking)
-- IGL NOT found, using bundled version...
-- Visual Leak Detector (VLD) is not found.
-- Using header-only CGAL
-- Targetting Visual Studio 16 2019
-- Target build enviroment supports auto-linking
-- Using VC toolset 142.
-- Generator uses intermediate configuration directory: $(Configuration)
-- Found GMP: I:/temp/prusadeps/usr/local/lib/libgmp-10.lib
-- Found MPFR: I:/temp/prusadeps/usr/local/lib/libmpfr-4.lib
-- Found Boost 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET REQUIRED
-- Found Boost: I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found suitable version "1.70.0", minimum required is "1.48")
-- Boost include dirs: I:/temp/prusadeps/usr/local/include/boost-1_70
-- Boost libraries: Boost::system;Boost::filesystem;Boost::thread;Boost::log;Boost::locale;Boost::regex;Boost::chrono;Boost::atomic;Boost::date_time
-- WXWIN environment set to:
-- Found wxWidgets: debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_html.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_html.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_adv.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_adv.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_gl.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_gl.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_core.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_core.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxbase31ud.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxbase31u.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxtiffd.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxtiff.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxjpegd.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxjpeg.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxregexud.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxregexu.lib;opengl32;glu32;winmm;comctl32;uuid;oleacc;uxtheme;rpcrt4;shlwapi;version;wsock32 (found suitable version "3.1.3", minimum required is "3.1") found components: html adv gl core base tiff jpeg regex missing components: png zlib expat
-- wx libs: debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_html.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_html.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_adv.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_adv.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_gl.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_gl.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_core.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_core.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxbase31ud.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxbase31u.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxtiffd.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxtiff.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxjpegd.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxjpeg.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxregexud.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxregexu.lib;opengl32;glu32;winmm;comctl32;uuid;oleacc;uxtheme;rpcrt4;shlwapi;version;wsock32;optimized;I:/temp/prusadeps/usr/local/lib/libpng16_static.lib;debug;I:/temp/prusadeps/usr/local/lib/libpng16_staticd.lib;I:/temp/prusadeps/usr/local/lib/zlib.lib;I:/temp/prusadeps/usr/local/lib/expat.lib
-- Configuring done
-- Generating done
-- Build files have been written to: I:/PrusaSlicer-version_2.3.0-alpha0/build

I changed save root directory from D: to I:

well also ignore the first part of log, I just found that I put the deps directory wrong so I stop it and clean the build directory for building again.

That is the result you want. Move on to the next step.

It turns out problems with srcslic3r folder. 5981 errors comes out...

where can I found the msbuild log, so I can send it to you.

I do not know. I never really look too deep into the log I just see any errors at the end of the output.

   PrinterPresetCollection”: 非法的成员初始化:“PresetCollection”不是基或成员 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3
   r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(506,20): error C2065: “m_type”: 未声明的标识符 (编译源文件 I
   :\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\buil
   d\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(507,36): error C2065: “m_presets”: 未声明的标识符 (编译源文
   件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\b
   uild\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(507,56): error C2065: “m_num_default_presets”: 未
   声明的标识符 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.
   3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(507,79): error C2065: “m_presets”: 未声明的标识符 (编译源文
   件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\b
   uild\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(507,24): error C2672: “std::lower_bound”: 未找 到匹配的
   重载函数 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.
   0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(507,1): error C2780: “_FwdIt std::lower_bound(_F
   wdIt,_FwdIt,const _Ty &)”: 应输入 3 个参数,却提供了 2 个 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\Preset
   Updater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(507,1): error C2780: “_FwdIt std::lower_bound(_F
   wdIt,const _FwdIt,const _Ty &,_Pr)”: 应输入 4 个参数,却提供了 2 个 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Ut
   ils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(508,1): error C3536: “it”: 初始化之前无法使用 (编译源文件 I:\P
   rusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\build\s
   rc\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(508,19): error C2065: “m_presets”: 未声明的标识符 (编译源文
   件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\b
   uild\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(510,36): error C2065: “m_num_default_presets”: 未
   声明的标识符 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.
   3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(511,21): error C2065: “m_presets”: 未声明的标识符 (编译源文
   件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\b
   uild\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(512,26): error C2065: “m_presets”: 未声明的标识符 (编译源文
   件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\b
   uild\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(516,1): error C2440: “return”: 无法从“int”转 换为“std::
   _Deque_iterator<std::_Deque_val<std::_Deque_simple_types<_Ty>>>” [I:\PrusaSlicer-version_2.3.0-alpha0\build\src\
   slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(519,1): error C2355: “this”: 只能在非静态成员函数或非静态数据成员初
   始值设定项的内部引用 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-versio
   n_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(521,24): error C2065: “m_map_system_profile_rena
   med”: 未声明的标识符 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-ver
   sion_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(522,1): error C3536: “it_renamed”: 初始化之前无法使用 (编译
   源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0
   \build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(522,31): error C2065: “m_map_system_profile_rena
   med”: 未声明的标识符 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-ver
   sion_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(522,69): error C2065: “m_presets”: 未声明的标识符 (编译源文
   件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\b
   uild\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(522,1): error C2355: “this”: 只能在非静态成员函数或非静态数据成员初
   始值设定项的内部引用 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-versio
   n_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(524,1): error C3536: “it”: 初始化之前无法使用 (编译源文件 I:\P
   rusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alpha0\build\s
   rc\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(524,1): error C2440: “return”: 无法从“int”转 换为“std::
   _Deque_iterator<std::_Deque_val<std::_Deque_simple_types<_Ty>>>” [I:\PrusaSlicer-version_2.3.0-alpha0\build\src\
   slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\GUI\Preset.hpp(527,1): error C2355: “this”: 只能在非静态成员函数或非静态数据成员初
   始值设定项的内部引用 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-versio
   n_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r/GUI/PresetBundle.hpp(47,41): error C3646: “printers”: 未知重写说明符 (
   编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alph
   a0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r/GUI/PresetBundle.hpp(47,41): error C4430: 缺少类型说明符 - 假定 为 int。注意:
    C++ 不支持默认 int (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-ve
   rsion_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r/GUI/PresetBundle.hpp(114,91): error C2039: "PresetComboBox": 不 是
    "Slic3r::Slic3r::GUI" 的成员 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\Pr
   usaSlicer-version_2.3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r/GUI/PresetBundle.hpp(114,106): error C2061: 语法错误: 标识符“PresetCom
   boBox” (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.
   3.0-alpha0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r/GUI/PresetBundle.hpp(71,81): error C2065: “printers”: 未声明的标识符 (
   编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-alph
   a0\build\src\slic3r\libslic3r_gui.vcxproj]
     I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r/GUI/PresetBundle.hpp(71,9): fatal error C1003: 错误计数超过 100 ;正在停止编
   译 (编译源文件 I:\PrusaSlicer-version_2.3.0-alpha0\src\slic3r\Utils\PresetUpdater.cpp) [I:\PrusaSlicer-version_2.3.0-a
   lpha0\build\src\slic3r\libslic3r_gui.vcxproj]

566 个警告
5981 个错误

I am sure it was said that there are unrecognized grammar and illegal initialization for srcslic3r folder. sorry for the confusion of Chinese.

I'm very puzzled. The only thing I could think of is some tool or something missing in Visual Studio. When I installed it, I followed the instruction to "select every option for C++ desktop development workload" and so I selected every option for that workload. See if that helps you. Google about selecting workload options after installing Visual Studio.

OK, let me try.

I think those errors indicate something has been changed in the source. I don't know if you're using the right repository. Are you sure it's the master branch of the Prusa3D PrusaSlicer repo?

I first used the master branch through clone, it shows these errors, then I tried 2.30 alpha release on May 5th, which showed the same result.

Just ensure you are using the most up-to date master branch, and clear everything out and follow the instructions exactly (using the deps I provided) and there is no way it shouldn't work! Check those SuperSlicer build instructions I linked to earlier, they are the source of my knowledge on this topic.

OK, I would try again!

I tried twice with msbuild and one time with nmake, they all shows the same error when "Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/AboutDialog.cpp.obj"
It seems like there are some libraries is missing, it can't recognize a lot of definition. And I am sure I used the latest version from master.

Here is the version with better format
[ 1%] Built target admesh
[ 2%] Built target nowide
[ 3%] Built target encoding-check
[ 3%] Checking source files encodings for target avrdude
[ 3%] Built target encoding-check-avrdude
[ 3%] Checking source files encodings for target avrdude-slic3r
[ 3%] Built target encoding-check-avrdude-slic3r
[ 3%] Checking source files encodings for target semver
[ 3%] Built target encoding-check-semver
[ 3%] Checking source files encodings for target libslic3r
[ 3%] Built target encoding-check-libslic3r
[ 4%] Checking source files encodings for target libslic3r_gui
[ 4%] Built target encoding-check-libslic3r_gui
[ 4%] Built target global-encoding-check
[ 4%] Built target avrdude-conf-gen
[ 4%] Built target gen_conf_h
[ 14%] Built target avrdude
[ 15%] Built target clipper
[ 24%] Built target qhullstatic
[ 24%] Built target polypartition
[ 26%] Built target poly2tri
[ 26%] Built target miniz_static
[ 29%] Built target glu-libtess
[ 30%] Built target semver
[ 31%] Built target imgui
[ 32%] Built target hidapi
[ 33%] Built target libnest2d
[ 33%] Built target libslic3r_cgal
[ 60%] Built target libslic3r
[ 60%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/AboutDialog.cpp.obj
AboutDialog.cpp
I:PrusaSlicersrcslic3rGUIAboutDialog.cpp(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
I:PrusaSlicersrcslic3rGUIGUI.hpp(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
I:PrusaSlicersrcslic3rGUIGUI_App.hpp(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
I:PrusaSlicersrcslic3rGUIPreset.hpp(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存 为 Unicode 格式以防止数据丢失
I:PrusaSlicersrcslic3rGUIPreset.hpp(477): error C2001: 常量中有换行符
I:PrusaSlicersrcslic3rGUIPreset.hpp(574): error C2504: “Slic3r::PresetCollection”: 未定义基类
I:PrusaSlicersrcslic3rGUIPreset.hpp(578): error C3668: “Slic3r::PresetCollection::PrinterPresetCollection::default_preset_for”: 包含重写说明符“override”的方法没有重写任何基类方法
I:PrusaSlicersrcslic3rGUIPreset.hpp(583): error C2059: 语法错误:“namespace”
I:PrusaSlicersrcslic3rGUIPreset.hpp(583): error C2334: “{”的前面有意外标记;跳过明显的函数体
I:PrusaSlicersrcimguiimconfig.h(101): error C2059: 语法错误:“namespace”
I:PrusaSlicersrcimguiimconfig.h(102): error C2143: 语法错误: 缺少“;”(在“{”的前面)
I:PrusaSlicersrcslic3rGUIPreset.hpp(274): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(274): error C2065: “m_num_default_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(275): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(275): error C2065: “m_num_default_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(276): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(276): error C2065: “m_num_default_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(277): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(278): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(279): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(283): error C2065: “m_type”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(288): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(332): error C2065: “m_bitmap_compatible”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(333): error C2065: “m_bitmap_incompatible”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(334): error C2065: “m_bitmap_lock”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(335): error C2065: “m_bitmap_lock_open”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(339): error C2065: “m_default_suppressed”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(344): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(344): error C2065: “m_idx_selected”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(345): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(345): error C2065: “m_idx_selected”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(346): error C2065: “m_idx_selected”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(348): error C2065: “m_idx_selected”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(358): error C2065: “m_edited_preset”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(359): error C2065: “m_edited_preset”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(369): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(370): error C2065: “m_idx_selected”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(374): error C2065: “m_num_default_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(374): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(375): error C2065: “m_num_default_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(375): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(378): error C2065: “m_idx_selected”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(378): error C2065: “m_edited_preset”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(378): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(380): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(380): error C2065: “m_idx_selected”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(380): error C2065: “m_edited_preset”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(380): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(380): error C2065: “m_idx_selected”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(421): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(422): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(422): error C2065: “m_num_default_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(435): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(435): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(435): error C2672: “std::count_if”: 未找到匹配的重载函数
I:PrusaSlicersrcslic3rGUIPreset.hpp(435): error C2780: “iterator_traits<_FwdIt>::difference_type std::count_if(_ExPo &&,const _FwdIt,const _FwdIt,_Pr) noexcept”: 应输入 4 个参数,却提供了 2 个
D:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.26.28801includealgorithm(589): note: 参见“std::count_if”的声明
I:PrusaSlicersrcslic3rGUIPreset.hpp(435): error C2780: “iterator_traits<_Iter>::difference_type std::count_if(_InIt,_InIt,_Pr)”: 应输入 3 个参数,却提供了 2 个
D:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.26.28801includealgorithm(572): note: 参见“std::count_if”的声明
I:PrusaSlicersrcslic3rGUIPreset.hpp(441): error C3861: “dirty_options”: 找不到标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(444): error C3861: “dirty_options”: 找不到标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(479): error C2144: 语法错误:“wxString”的前面应有“;”
I:PrusaSlicersrcslic3rGUIPreset.hpp(479): error C2267: “separator”: 具有块范围的静态函数非法
I:PrusaSlicersrcslic3rGUIPreset.hpp(481): error C2059: 语法错误:“protected”
I:PrusaSlicersrcslic3rGUIPreset.hpp(495): error C2059: 语法错误:“private”
I:PrusaSlicersrcslic3rGUIPreset.hpp(497): error C2143: 语法错误: 缺少“)”(在“const”的前面)
I:PrusaSlicersrcslic3rGUIPreset.hpp(497): error C2512: “Slic3r::PresetCollection”: 没有合适的默认构造函数可用
I:PrusaSlicersrcslic3rGUIPreset.hpp(497): note: 无构造函数可以接受源类型,或构造函数重载决策不明确
I:PrusaSlicersrcslic3rGUIPreset.hpp(497): error C2100: 非法的间接寻址
I:PrusaSlicersrcslic3rGUIPreset.hpp(497): error C2143: 语法错误: 缺少“;”(在“const”的前面)
I:PrusaSlicersrcslic3rGUIPreset.hpp(497): error C2059: 语法错误:“)”
I:PrusaSlicersrcslic3rGUIPreset.hpp(497): error C2530: “other”: 必须初始化引用
I:PrusaSlicersrcslic3rGUIPreset.hpp(498): error C2801: “operator =”必须是非静态成员
I:PrusaSlicersrcslic3rGUIPreset.hpp(505): error C2601: “find_preset_internal”: 本地函数定义是非法的
I:PrusaSlicersrcslic3rGUIPreset.hpp(22): note: 此行有一个“{”没有匹配项
I:PrusaSlicersrcslic3rGUIPreset.hpp(519): error C2270: “find_preset_internal”: 非成员函数上不允许修饰符
I:PrusaSlicersrcslic3rGUIPreset.hpp(519): error C2556: “std::_Deque_const_iterator>> find_preset_internal(const std::string &)”: 重载函数与“std::_Deque_iterator>> find_preset_internal(const std::string &)”只是在返回类型上不同
with
[
_Ty=Slic3r::Preset
]
I:PrusaSlicersrcslic3rGUIPreset.hpp(504): note: 参见“find_preset_internal”的声明
I:PrusaSlicersrcslic3rGUIPreset.hpp(519): error C2601: “find_preset_internal”: 本地函数定义是非法的
I:PrusaSlicersrcslic3rGUIPreset.hpp(22): note: 此行有一个“{”没有匹配项
I:PrusaSlicersrcslic3rGUIPreset.hpp(520): error C2601: “find_preset_renamed”: 本地函数定义是非法的
I:PrusaSlicersrcslic3rGUIPreset.hpp(22): note: 此行有一个“{”没有匹配项
I:PrusaSlicersrcslic3rGUIPreset.hpp(527): error C2270: “find_preset_renamed”: 非成员函数上不允许修饰符
I:PrusaSlicersrcslic3rGUIPreset.hpp(527): error C2556: “std::_Deque_const_iterator>> find_preset_renamed(const std::string &)”: 重载函数与“std::_Deque_iterator>> find_preset_renamed(const std::string &)”只是在返回类型上不同
with
[
_Ty=Slic3r::Preset
]
I:PrusaSlicersrcslic3rGUIPreset.hpp(520): note: 参见“find_preset_renamed”的声明
I:PrusaSlicersrcslic3rGUIPreset.hpp(527): error C2601: “find_preset_renamed”: 本地函数定义是非法的
I:PrusaSlicersrcslic3rGUIPreset.hpp(22): note: 此行有一个“{”没有匹配项
I:PrusaSlicersrcslic3rGUIPreset.hpp(531): error C2267: “dirty_options”: 具有块范围的静态函数非法
I:PrusaSlicersrcslic3rGUIPreset.hpp(544): error C2512: “Slic3r::Preset”: 没有合适的默认构造函数可用
I:PrusaSlicersrcslic3rGUIPreset.hpp(117): note: 参见“Slic3r::Preset”的声明
I:PrusaSlicersrcslic3rGUIPreset.hpp(568): error C2255: “friend”: 不允许位于类定义之外
I:PrusaSlicersrcslic3rGUIPreset.hpp(577): error C2614: “Slic3r::PresetCollection::PrinterPresetCollection”: 非法 的成员初始化:“PresetCollection”不是基或成员
I:PrusaSlicersrcslic3rGUIPreset.hpp(506): error C2065: “m_type”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(507): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(507): error C2065: “m_num_default_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(507): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(507): error C2672: “std::lower_bound”: 未找到匹配的重载函数
I:PrusaSlicersrcslic3rGUIPreset.hpp(507): error C2780: “_FwdIt std::lower_bound(_FwdIt,_FwdIt,const _Ty &)”: 应输入 3 个参数,却提供了 2 个
D:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.26.28801includexutility(5435): note: 参见“std::lower_bound”的声明
I:PrusaSlicersrcslic3rGUIPreset.hpp(507): error C2780: “_FwdIt std::lower_bound(_FwdIt,const _FwdIt,const _Ty &,_Pr)”: 应输入 4 个参数,却提供了 2 个
D:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.26.28801includexutility(5413): note: 参见“std::lower_bound”的声明
I:PrusaSlicersrcslic3rGUIPreset.hpp(508): error C3536: “it”: 初始化之前无法使用
I:PrusaSlicersrcslic3rGUIPreset.hpp(508): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(510): error C2065: “m_num_default_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(511): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(512): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(516): error C2440: “return”: 无法从“int”转换为“std::_Deque_iterator>>”
with
[
_Ty=Slic3r::Preset
]
I:PrusaSlicersrcslic3rGUIPreset.hpp(516): note: 无构造函数可以接受源类型,或构造函数重载决策不明确
I:PrusaSlicersrcslic3rGUIPreset.hpp(519): error C2355: “this”: 只能在非静态成员函数或非静态数据成员初始值设定项的内部引用
I:PrusaSlicersrcslic3rGUIPreset.hpp(521): error C2065: “m_map_system_profile_renamed”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(522): error C3536: “it_renamed”: 初始化之前无法使用
I:PrusaSlicersrcslic3rGUIPreset.hpp(522): error C2065: “m_map_system_profile_renamed”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(522): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(522): error C2355: “this”: 只能在非静态成员函数或非静态数据成员初始值设定项的内部引用
I:PrusaSlicersrcslic3rGUIPreset.hpp(523): error C2065: “m_map_system_profile_renamed”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(523): error C3536: “it”: 初始化之前无法使用
I:PrusaSlicersrcslic3rGUIPreset.hpp(523): error C2065: “m_presets”: 未声明的标识符
I:PrusaSlicersrcslic3rGUIPreset.hpp(524): error C2440: “return”: 无法从“int”转换为“std::_Deque_iterator>>”
with
[
_Ty=Slic3r::Preset
]
I:PrusaSlicersrcslic3rGUIPreset.hpp(524): fatal error C1003: 错误计数超过 100;正在停止编译
NMAKE : fatal error U1077: “"D:PROGRA~1Microsoft Visual Studio2019CommunityVCToolsMSVC14.26.28801binHostx64x64cl.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"D:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.26.28801binHostX64x64nmake.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"D:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.26.28801binHostX64x64nmake.exe"”: 返回代码“0x2”
Stop.

Well let's look at this tomorrow. rest is also important.

@Seekerzero I have not read the whole thread (sorry), but the git message that you posted in https://github.com/prusa3d/PrusaSlicer/issues/4558#issuecomment-662149893 indicates that there are local modification to expat. They may be in the way when the build script tries to update, I suggest getting rid of them. Note that your git might be configured to do some kind of changes automatically (such as CR/CRLF line endings or something), so maybe it did the changes behind your back.

@lukasmatena So could you please give me any instruction to do that. I am not very familiar with git. Thanks!

I would start by moving into that directory and trying git diff to see what the difference is.

I mean disable the automatically change from git. I am pretty sure that the edit was made during the process of building dependency. So it probably won't allow me to use git diff before the start of building.

You could have used git status, you can use git diff as well (I think).
But note that I do not have time to focus on this fully. This does not seem like a problem with PrusaSlicer.

Is it possible that you are accidentally (still) using a zip file of the source with the tag version_2.3.0-alpha0? I think that code is much older than what is in the current master. This is obviously a git issue/issue with your configuration.

Do you perhaps not have the right version of Cmake? I know less about cmake than I do about git so I'm stabbing in the dark here. However, maybe this issue should be closed so that it doesn't occupy (as much) time of the devs. It seems unrelated to PrusaSlicer directly.

My Cmake version is 3.18 and I am pretty sure that I clone the latest master for compiling.
Anyway, let's close this. If I have any problem, let me ask later.

@n8bot Hi sir, I might found the reason why I failed to build PrusaSlicer, the PkgConfig is not found in your environment. Do you know what is this? The related log is bold below.

I:PrusaSlicerbuild>cmake .. -G "Visual Studio 16 2019" -A "x64" -DCMAKE_PREFIX_PATH="I:tempprusadepsusrlocal"
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.26.28806.0
-- The CXX compiler identification is MSVC 19.26.28806.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- SLIC3R_ASAN: OFF
-- SLIC3R_BUILD_SANDBOXES: OFF
-- SLIC3R_BUILD_TESTS: ON
-- SLIC3R_FHS: OFF
-- SLIC3R_GTK: 2
-- SLIC3R_GUI: ON
-- SLIC3R_MSVC_COMPILE_PARALLEL: ON
-- SLIC3R_MSVC_PDB: ON
-- SLIC3R_PCH: ON
-- SLIC3R_PERL_XS: OFF
-- SLIC3R_PROFILE: OFF
-- SLIC3R_STATIC: ON
-- SLIC3R_WX_STABLE: OFF
-- SLIC3R_STATIC: ON
-- CMAKE_PREFIX_PATH: I:tempprusadepsusrlocal (from cache or command line)
Building without Win10 Netfabb STL fixing service support
-- Found Boost 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET REQUIRED COMPONENTS system;filesystem;thread;log;locale;regex;chrono;atomic;date_time
-- Found boost_headers 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_headers-1.70.0
-- Found boost_system 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_system-1.70.0
-- libboost_system-vc142-mt-gd-x64-1_70.lib
-- libboost_system-vc142-mt-x64-1_70.lib
-- Adding boost_system dependencies: headers
-- Found boost_filesystem 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_filesystem-1.70.0
-- libboost_filesystem-vc142-mt-gd-x64-1_70.lib
-- libboost_filesystem-vc142-mt-x64-1_70.lib
-- Adding boost_filesystem dependencies: headers
-- Found boost_thread 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_thread-1.70.0
-- libboost_thread-vc142-mt-gd-x64-1_70.lib
-- libboost_thread-vc142-mt-x64-1_70.lib
-- Adding boost_thread dependencies: chrono;headers
-- Found boost_chrono 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_chrono-1.70.0
-- libboost_chrono-vc142-mt-gd-x64-1_70.lib
-- libboost_chrono-vc142-mt-x64-1_70.lib
-- Adding boost_chrono dependencies: headers
-- Found boost_log 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_log-1.70.0
-- libboost_log-vc142-mt-gd-x64-1_70.lib
-- libboost_log-vc142-mt-x64-1_70.lib
-- Adding boost_log dependencies: atomic;chrono;date_time;filesystem;regex;thread;headers
-- Found boost_atomic 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_atomic-1.70.0
-- libboost_atomic-vc142-mt-gd-x64-1_70.lib
-- libboost_atomic-vc142-mt-x64-1_70.lib
-- Adding boost_atomic dependencies: headers
-- Found boost_date_time 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_date_time-1.70.0
-- libboost_date_time-vc142-mt-gd-x64-1_70.lib
-- libboost_date_time-vc142-mt-x64-1_70.lib
-- Adding boost_date_time dependencies: headers
-- Found boost_regex 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_regex-1.70.0
-- libboost_regex-vc142-mt-gd-x64-1_70.lib
-- libboost_regex-vc142-mt-x64-1_70.lib
-- Adding boost_regex dependencies: headers
-- Found boost_locale 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_locale-1.70.0
-- libboost_locale-vc142-mt-gd-x64-1_70.lib
-- libboost_locale-vc142-mt-x64-1_70.lib
-- Adding boost_locale dependencies: system;headers
-- Found Boost: I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found version "1.70.0") found components: system filesystem thread log locale regex chrono atomic date_time
-- Boost::boost exists
-- Found TBB: I:/temp/prusadeps/usr/local/include (found version "2017.0")
-- TBB_FOUND = TRUE
-- TBB_INCLUDE_DIRS = I:/temp/prusadeps/usr/local/include
-- TBB_DEFINITIONS = __TBB_NO_IMPLICIT_LINKAGE
-- TBB_LIBRARIES = I:/temp/prusadeps/usr/local/lib/tbb_static.lib
-- TBB_DEFINITIONS_DEBUG = TBB_USE_DEBUG=1
-- TBB_LIBRARIES_DEBUG = I:/temp/prusadeps/usr/local/lib/tbb_static_debug.lib
-- TBB_DEFINITIONS_RELEASE =
-- TBB_LIBRARIES_RELEASE = I:/temp/prusadeps/usr/local/lib/tbb_static.lib
-- Found CURL: optimized;I:/temp/prusadeps/usr/local/lib/libcurl_a.lib;debug;I:/temp/prusadeps/usr/local/lib/libcurl_a_debug.lib (found version "7.58.0")
-- Found EXPAT: I:/temp/prusadeps/usr/local/lib/expat.lib (found version "2.2.0")
-- Found ZLIB: I:/temp/prusadeps/usr/local/lib/zlib.lib (found version "1.2.11")
-- Found PNG: optimized;I:/temp/prusadeps/usr/local/lib/libpng16_static.lib;debug;I:/temp/prusadeps/usr/local/lib/libpng16_staticd.lib (found version "1.6.35")
-- Found OpenGL: opengl32
-- FindGLEW: did not find GLEW CMake config file. Searching for libraries.
-- FindGLEW: GLEW_USE_STATIC_LIBS: ON.
-- FindGLEW: GLEW_INCLUDE_DIR: I:/temp/prusadeps/usr/local/include
-- FindGLEW: GLEW_INCLUDE_DIRS: I:/temp/prusadeps/usr/local/include
-- FindGLEW: CMAKE_FIND_LIBRARY_SUFFIXES for SHARED: .lib
-- FindGLEW: CMAKE_FIND_LIBRARY_SUFFIXES for STATIC: .lib
-- FindGLEW: GLEW_SHARED_LIBRARY_RELEASE: I:/temp/prusadeps/usr/local/lib/glew.lib
-- FindGLEW: GLEW_STATIC_LIBRARY_RELEASE: I:/temp/prusadeps/usr/local/lib/glew.lib
-- FindGLEW: GLEW_SHARED_LIBRARY_DEBUG: I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_STATIC_LIBRARY_DEBUG: I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_SHARED_LIBRARY: optimized;I:/temp/prusadeps/usr/local/lib/glew.lib;debug;I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_STATIC_LIBRARY: optimized;I:/temp/prusadeps/usr/local/lib/glew.lib;debug;I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_LIBRARIES: optimized;I:/temp/prusadeps/usr/local/lib/glew.lib;debug;I:/temp/prusadeps/usr/local/lib/glewd.lib
-- FindGLEW: GLEW_VERSION_MAJOR: 1
-- FindGLEW: GLEW_VERSION_MINOR: 13
-- FindGLEW: GLEW_VERSION_MICRO: 0
-- FindGLEW: GLEW_VERSION: 1.13.0
-- Found GLEW: I:/temp/prusadeps/usr/local/include (found version "1.13.0")
-- FindGLEW: Creating GLEW::glew_s imported target.
-- FindGLEW: Creating GLEW::GLEW imported target.
-- Found NLopt in 'I:/temp/prusadeps/usr/local/lib'.
-- Using NLopt include directory 'I:/temp/prusadeps/usr/local/include'.
-- Using NLopt library 'I:/temp/prusadeps/usr/local/lib/nlopt.lib'.
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found OpenVDB: I:/temp/prusadeps/usr/local/include (found suitable version "6.2.1", minimum required is "5.0") found components: openvdb
-- OpenVDB ABI Version: 6
-- Found Boost 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET REQUIRED COMPONENTS iostreams;system
-- Found boost_iostreams 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/boost_iostreams-1.70.0
-- libboost_iostreams-vc142-mt-gd-x64-1_70.lib
-- libboost_iostreams-vc142-mt-x64-1_70.lib
-- Adding boost_iostreams dependencies: headers
-- Found Boost: I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found version "1.70.0") found components: iostreams system
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- OpenVDB libraries: I:/temp/prusadeps/usr/local/lib/libopenvdb.lib;I:/temp/prusadeps/usr/local/lib/libopenvdbd.lib
-- Miniz NOT found in system, using bundled version...
-- qhull Version: 7.2.0 (static linking)
-- IGL NOT found, using bundled version...
-- Visual Leak Detector (VLD) is not found.
-- Using header-only CGAL
-- Targetting Visual Studio 16 2019
-- Target build enviroment supports auto-linking
-- Using VC toolset 142.
-- Generator uses intermediate configuration directory: $(Configuration)
-- Found GMP: I:/temp/prusadeps/usr/local/lib/libgmp-10.lib
-- Found MPFR: I:/temp/prusadeps/usr/local/lib/libmpfr-4.lib
-- Found Boost 1.70.0 at I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0
-- Requested configuration: QUIET REQUIRED
-- Found Boost: I:/temp/prusadeps/usr/local/lib/cmake/Boost-1.70.0/BoostConfig.cmake (found suitable version "1.70.0", minimum required is "1.48")
-- Boost include dirs: I:/temp/prusadeps/usr/local/include/boost-1_70
-- Boost libraries: Boost::system;Boost::filesystem;Boost::thread;Boost::log;Boost::locale;Boost::regex;Boost::chrono;Boost::atomic;Boost::date_time
-- Adding precompiled header pchheader.hpp to target libslic3r.
-- WXWIN environment set to:
-- Found wxWidgets: debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_html.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_html.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_adv.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_adv.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_gl.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_gl.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_core.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_core.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxbase31ud.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxbase31u.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxtiffd.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxtiff.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxjpegd.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxjpeg.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxregexud.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxregexu.lib;opengl32;glu32;winmm;comctl32;uuid;oleacc;uxtheme;rpcrt4;shlwapi;version;wsock32 (found suitable version "3.1.3", minimum required is "3.1") found components: html adv gl core base tiff jpeg regex missing components: png zlib expat
-- wx libs: debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_html.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_html.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_adv.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_adv.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_gl.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_gl.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31ud_core.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxmsw31u_core.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxbase31ud.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxbase31u.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxtiffd.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxtiff.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxjpegd.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxjpeg.lib;debug;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxregexud.lib;optimized;I:/temp/prusadeps/usr/local/lib/vc_x64_lib/wxregexu.lib;opengl32;glu32;winmm;comctl32;uuid;oleacc;uxtheme;rpcrt4;shlwapi;version;wsock32;optimized;I:/temp/prusadeps/usr/local/lib/libpng16_static.lib;debug;I:/temp/prusadeps/usr/local/lib/libpng16_staticd.lib;I:/temp/prusadeps/usr/local/lib/zlib.lib;I:/temp/prusadeps/usr/local/lib/expat.lib
-- Adding precompiled header pchheader.hpp to target libslic3r_gui.
-- Configuring done
-- Generating done
-- Build files have been written to: I:/PrusaSlicer/build

I do not know what that package is. I’m just a user of prusaslicer, and I’m new to compiling software too.

But regardless, the cmake generation from the log you posted was successful. There is no problem.

OK thanks!

@n8bot Hi I finally successfully build it with turn off SLIC3R_GUI and SLIC3R_BUILD_TESTS, and once I start running the .sln, which one should I start to open the app version of prusaslicer?

I start the PrusaSlicer_app_gui and the exe file exit immediately.

What I do is generate the cmake project and build from the command line. After building prusaslicer, I then look in the prusaslicer/build/src/Release folder, which is where all the app files get built to. Run from there.

I do not build or run from within visual studio (if all I want to do is build, not
Modify anything).

OK, let me see.

@n8bot I finally know why I failed to build wxwidgets: since Git 1.70 Submodules are now regarded as dirty if they have any modified files or untracked files
https://stackoverflow.com/questions/4873980/git-diff-says-subproject-is-dirty
I went to the submodule which is src/expat in my case and type
git checkout . to solve this problem

I'm glad you found a solution. Were you able to build and run PrusaSlicer?

@n8bot Well even though I succeed with building deps, but the problem of building slic3r_gui still exits.

There are two files: preset.hpp and utils.hpp in libslic3r_gui library with having tons of problems: undeclared identifiers, grammars and lack of ";" I believe that it might be a format problem, or a editor problem for visual studio 2019. @n8bot @lukasmatena

Yesterday I tried to build PrusaSlicer for the first time (on Win 10) and I was trying to follow these instructions https://github.com/prusa3d/PrusaSlicer/blob/master/doc/How%20to%20build%20-%20Windows.md#noob-guide-step-by-step (except I did it from a git clone, not zip).

I also ran into the issue with wxWidgets failing the build, but thanks to this thread I was able to fix it just by going into PrusaSlicer/deps/build2/dep_wxWidgets-prefix/src/dep_wxWidgets with Git Bash and running git checkout . and after this retrying to run msbuild /m ALL_BUILD.vcxproj (in "x64 Native Tools Command Line"). This time it finished successfully and I had no more issues with rest of the steps though I continued with @n8bot's instructions above to build it all in command line without starting Visual Studio IDE. I was able to fully build and run PrusaSlicer.

Glad to hear you got things sorted. FYI, for anyone else interested, I re-wrote the build instructions from the SuperSlicer instructions for my own reference. See: PrusaSlicer Simplified Windows Build Instructions

Was this page helpful?
0 / 5 - 0 ratings