U-C-S / zola-npm

NPM Packages for Zola, A Static Site Generator
https://npmjs.com/zola-bin
MIT License
8 stars 1 forks source link

Zola Binary Handling Alternative options #1

Open U-C-S opened 2 years ago

U-C-S commented 2 years ago
U-C-S commented 2 years ago

for napi-rs use ref: https://github.com/swc-project/swc/issues/852

U-C-S commented 2 years ago

building zola in windows gives out

   Compiling sass-sys v0.4.22
   Compiling time v0.1.43
   Compiling png v0.16.8
   Compiling crossbeam-channel v0.5.2
   Compiling futures-channel v0.3.19
   Compiling futures-util v0.3.19
   Compiling unic-segment v0.9.0
   Compiling http-body v0.4.4
   Compiling same-file v1.0.6
   Compiling termcolor v1.1.2
   Compiling generic-array v0.14.5
   Compiling generic-array v0.12.4
   Compiling num-format v0.4.0
   Compiling parking_lot v0.11.2
   Compiling idna v0.2.3
   Compiling nom v5.1.2
   Compiling clap v2.34.0
   Compiling minify-html v0.6.10
   Compiling crossbeam-epoch v0.9.6
   Compiling pulldown-cmark v0.8.0
   Compiling onig_sys v69.7.1
error: failed to run custom build command for `sass-sys v0.4.22`

Caused by:
  process didn't exit successfully: `D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-92e8449d9d9ac1db\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=LIBSASS_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LIBSASS_STATIC
  cargo:rerun-if-env-changed=LIBSASS_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'Build error:
  STDERR:
  STDOUT:Microsoft (R) Build Engine version 4.8.4161.0
  [Microsoft .NET Framework, version 4.0.30319.42000]
  Copyright (C) Microsoft Corporation. All rights reserved.

  Build started 04-Mar-22 10:43:49 AM.
       1>Project "D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-f41f470489ddaf20\out\build\win\libsass.sln" on node 1 (default targets).
       1>ValidateSolutionConfiguration:
           Building solution configuration "Release|Win64".
       1>Project "D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-f41f470489ddaf20\out\build\win\libsass.sln" (1) is building "D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-f41f470489ddaf20\out\build\win\libsass.vcxproj" (2) on node 1 (default targets).
       2>D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-f41f470489ddaf20\out\build\win\libsass.vcxproj(46,3): error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
       2>Done Building Project "D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-f41f470489ddaf20\out\build\win\libsass.vcxproj" (default targets) -- FAILED.
       1>Done Building Project "D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-f41f470489ddaf20\out\build\win\libsass.sln" (default targets) -- FAILED.

  Build FAILED.

         "D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-f41f470489ddaf20\out\build\win\libsass.sln" (default target) (1) ->
         "D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-f41f470489ddaf20\out\build\win\libsass.vcxproj" (default target) (2) ->
           D:\Code\Web_dev\zola-bin\zola\target\debug\build\sass-sys-f41f470489ddaf20\out\build\win\libsass.vcxproj(46,3): error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

      0 Warning(s)
      1 Error(s)

  Time Elapsed 00:00:00.65
  ', D:\Code\_bin\Cargo\registry\src\github.com-1ecc6299db9ec823\sass-sys-0.4.22\build.rs:191:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed