kpcyrd / sn0int

Semi-automatic OSINT framework and package manager
https://sn0int.readthedocs.io/
GNU General Public License v3.0
2k stars 178 forks source link

Build fails on Windows 10 #192

Closed Dalot closed 3 years ago

Dalot commented 3 years ago

Build fails when running cargo build

error: failed to run custom build command for `libsodium-sys v0.2.6`

Caused by:
  process didn't exit successfully: `...\sn0int\target\release\build\libsodium-sys-21cd6ef957ef1835\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=SODIUM_LIB_DIR
  cargo:rerun-if-env-changed=SODIUM_SHARED
  cargo:rerun-if-env-changed=SODIUM_USE_PKG_CONFIG

  --- stderr
  thread 'main' panicked at 'SODIUM_USE_PKG_CONFIG is not supported on msvc', ...\.cargo\registry\src\github.com-1ecc6299db9ec823\libsodium-sys-0.2.6\build.rs:90:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

Versions

Environment

kpcyrd commented 3 years ago

Windows isn't properly tested, but you might be able to build it by opening sn0int-std/Cargo.toml and changing:

sodiumoxide = { version="0.2.5", features=["use-pkg-config"] }

to

sodiumoxide = { version="0.2.5" }

Building in wsl is probably easier, but not officially supported either.

Dalot commented 3 years ago

It worked!