bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
2.17k stars 289 forks source link

Unable to build BambuStudio Dependencies #2586

Closed Devinwhite closed 4 months ago

Devinwhite commented 1 year ago

Bambu Studio Version

1.7.6

Where is the application from?

Bambu Lab github releases

OS version

Microsoft Windows 11 Pro 64-bit Ver.2009(OS build 22621.2283)

Additional system information

OS: Microsoft Windows 11 Pro 64-bit Ver.2009(OS build 22621.2283) Windows Product Key: WFG6P HDI Build: ZS7-17Q1KM4-SF6 / 15.TC0.L11.11.0.10 BIOS Version: E17Q1IWS.113 BIOS Release Date: 2023/07/04 EC Version: 17Q1IWS1.10C0613202314:39:48 CPU: 12th Gen Intel(R) Core(TM) i7-12800HX Memory: 32 GB @ 2000 MHz

Printer

Bambu Labs X1C

How to reproduce

  1. follow the instructions in https://github.com/bambulab/BambuStudio/blob/master/doc/How%20to%20build%20-%20Windows.md
  2. run commands as specified cmake ../ -G "Visual Studio 16 2019" -DDESTDIR="D:/work/Projects/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release
  3. msbuild /m ALL_BUILD.vcxproj

Actual results

"D:\work\Projects\BambuStudio\deps\build\ALL_BUILD.vcxproj" (default target) (1) ->
   "D:\work\Projects\BambuStudio\deps\build\deps.vcxproj" (default target) (3) ->
   "D:\work\Projects\BambuStudio\deps\build\dep_OpenVDB.vcxproj" (default target) (15) ->
   "D:\work\Projects\BambuStudio\deps\build\dep_OpenEXR.vcxproj" (default target) (23) ->
   (CustomBuild target) ->
     CUSTOMBUILD : error : corrupt patch at line 5 [D:\work\Projects\BambuStudio\deps\build\dep_OpenEXR.vcxproj]
     C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(249,5): error MSB8066: Custom build for 'D:\work\Projects\BambuStudio\deps\build\
   CMakeFiles\3bc1d761a2014b163123587da1b2e230\dep_OpenEXR-mkdir.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\3bc1d761a2014b163123587da1b2e230\dep_OpenEXR-download.rule;D:\work\Projects
   \BambuStudio\deps\build\CMakeFiles\3bc1d761a2014b163123587da1b2e230\dep_OpenEXR-update.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\3bc1d761a2014b163123587da1b2e230\dep_OpenEXR-patch
   .rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\3bc1d761a2014b163123587da1b2e230\dep_OpenEXR-configure.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\3bc1d761a2014b163123587da
   1b2e230\dep_OpenEXR-build.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\3bc1d761a2014b163123587da1b2e230\dep_OpenEXR-build_debug.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFile
   s\3bc1d761a2014b163123587da1b2e230\dep_OpenEXR-install.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\68c521bc805cc530064eef33e47b39d2\dep_OpenEXR-complete.rule;D:\work\Projects\BambuS
   tudio\deps\build\CMakeFiles\258fc9b4ab6c35b7f3020ecde013b882\dep_OpenEXR.rule;D:\work\Projects\BambuStudio\deps\CMakeLists.txt' exited with code 128. [D:\work\Projects\BambuStudio\deps\build\de
   p_OpenEXR.vcxproj]

   "D:\work\Projects\BambuStudio\deps\build\ALL_BUILD.vcxproj" (default target) (1) ->
   "D:\work\Projects\BambuStudio\deps\build\deps.vcxproj" (default target) (3) ->
   "D:\work\Projects\BambuStudio\deps\build\dep_wxWidgets.vcxproj" (default target) (17) ->
     C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(249,5): error MSB8066: Custom build for 'D:\work\Projects\BambuStudio\deps\build\
   CMakeFiles\a00868e1beae3310baf14ddff3dd8d72\dep_wxWidgets-mkdir.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\a00868e1beae3310baf14ddff3dd8d72\dep_wxWidgets-download.rule;D:\work\Proj
   ects\BambuStudio\deps\build\CMakeFiles\a00868e1beae3310baf14ddff3dd8d72\dep_wxWidgets-update.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\a00868e1beae3310baf14ddff3dd8d72\dep_wxWidge
   ts-patch.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\a00868e1beae3310baf14ddff3dd8d72\dep_wxWidgets-configure.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\a00868e1beae331
   0baf14ddff3dd8d72\dep_wxWidgets-build.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\a00868e1beae3310baf14ddff3dd8d72\dep_wxWidgets-build_debug.rule;D:\work\Projects\BambuStudio\deps\b
   uild\CMakeFiles\a00868e1beae3310baf14ddff3dd8d72\dep_wxWidgets-install.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\68c521bc805cc530064eef33e47b39d2\dep_wxWidgets-complete.rule;D:\wo
   rk\Projects\BambuStudio\deps\build\CMakeFiles\258fc9b4ab6c35b7f3020ecde013b882\dep_wxWidgets.rule;D:\work\Projects\BambuStudio\deps\CMakeLists.txt' exited with code 1. [D:\work\Projects\BambuSt
   udio\deps\build\dep_wxWidgets.vcxproj]

1452 Warning(s)
3 Error(s)

Expected results

The expected result is the dependencies would build, and I would be able to proceed with the building of the application.

Project file & Debug log uploads

No project file

Checklist of files to include

Devinwhite commented 1 year ago

7>CUSTOMBUILD : error : patch failed: src/osx/cocoa/settings.mm:224 7>CUSTOMBUILD : error : src/osx/cocoa/settings.mm: patch does not apply 7>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'D:\work\Projects\BambuStudio\deps\build\CMakeFiles\e18a78d70448d9e18ed7da1648b635eb\dep_wxWidgets-mkdir.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\e18a78d70448d9e18ed7da1648b635eb\dep_wxWidgets-download.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\e18a78d70448d9e18ed7da1648b635eb\dep_wxWidgets-update.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\e18a78d70448d9e18ed7da1648b635eb\dep_wxWidgets-patch.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\e18a78d70448d9e18ed7da1648b635eb\dep_wxWidgets-configure.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\e18a78d70448d9e18ed7da1648b635eb\dep_wxWidgets-build.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\e18a78d70448d9e18ed7da1648b635eb\dep_wxWidgets-build_debug.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\e18a78d70448d9e18ed7da1648b635eb\dep_wxWidgets-install.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\823960a7111b9f21ba44d232e6412e75\dep_wxWidgets-complete.rule;D:\work\Projects\BambuStudio\deps\build\CMakeFiles\258fc9b4ab6c35b7f3020ecde013b882\dep_wxWidgets.rule' exited with code 1. 7>Done building project "dep_wxWidgets.vcxproj" -- FAILED.

lanewei120 commented 1 year ago

@Devinwhite hello, sorry for the late replay do you still meet this issue, if yes, could you show the full log of the building?

and is there any error when the first cmake command executed

sometimes the building will fail due to the network downloading, we need to cleanup the patches of dep_wxWidgets before you build again you can try following commands: cd BambuStudio/deps/build/dep_wxWidgets-prefix/src/dep_wxWidgets git reset --hard

tsmith35 commented 10 months ago

sometimes the building will fail due to the network downloading, we need to cleanup the patches of dep_wxWidgets before you build again you can try following commands: cd BambuStudio/deps/build/dep_wxWidgets-prefix/src/dep_wxWidgets git reset --hard

@lanewei120, just wanted to say that this helped me with the same issue. Thank you!

lanewei120 commented 10 months ago

sometimes the building will fail due to the network downloading, we need to cleanup the patches of dep_wxWidgets before you build again you can try following commands: cd BambuStudio/deps/build/dep_wxWidgets-prefix/src/dep_wxWidgets git reset --hard

@lanewei120, just wanted to say that this helped me with the same issue. Thank you!

@tsmith35

Glad to hear that

thanks for the feedback~

lanewei120 commented 4 months ago

should be fixed, please try the newest codes