-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
能否考虑sslocal支持下windows #89
Comments
AppVeyor上可以编译。 |
我使用的win10,1.22.1,stable,gnu,在cygwin下编译的,错误信息
|
目前我还在测试。你可以这样试一下: 修改 [dependencies]
libsodium-ffi = { git = "https://github.com/zonyitoo/libsodium-ffi", optional = true } 再执行
若能编过,我发布一下 |
当然,如果你用的加密方式不涉及
|
另外,如果用 |
谢谢大神,我都尝试一下 |
gnu版本libsodium还是编译不过,msvc版本遇到新的问题,openssl,需要手动安装,能否用rust-crypto代替openssl呢? |
|
openssl安装参考 https://github.com/shadowsocks/shadowsocks-rust/blob/master/appveyor.yml ,没有什么难度 |
编译都通过了,但是最后链接的时候,出现错误 |
其实就是GBK编码的
没见过这种问题……我也不知道怎么解决……AppVeyor上link没有报任何错误啊…… 要不直接加 |
能不能用 |
[dependencies]
libsodium-ffi = { git = "https://github.com/zonyitoo/libsodium-ffi", optional = true } 不能直接使用 |
https://ci.appveyor.com/project/zonyitoo/libsodium-ffi AppVeyor上编译都没问题 |
只是需要 |
看了一下这个库相对比较小一些。看取舍了,我还是更倾向于使用更多人用的 |
Windows 8.1, Rust 1.23.0 (x86_64-pc-windows-gnu),编译没问题。 环境变量: 用 MSYS2 安装 cmd 运行 |
似乎rust不支持在cygwin下编译吧,官方应该只支持mingw |
我刚提交了PR,使用VCPKG安装libsodium, RUSTC使用msvc的target,就直接可以编译了 |
NEWS: 目前 # Check compile target, 32bits or 64bits
# This requires `rustc` in `$PATH`
$TargetTriple = (rustc -Vv | Select-String -Pattern "host: (.*)" | foreach {$_.Matches.Value}).split()[-1]
if ($TargetTriple.StartsWith("x86_64-")) {
$OpenSSLBits = "64"
} else {
$OpenSSLBits = "32"
}
$OpenSSLVersion = "1_1_1d"
$OpenSSLFileName = "Win${OpenSSLBits}OpenSSL-${OpenSSLVersion}.exe"
# Download OpenSSL release package to the current directory
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest -Uri "http://slproweb.com/download/${OpenSSLFileName}" -OutFile "${OpenSSLFileName}"
# Install it to C:\OpenSSL
Start-Process "${OpenSSLFileName}" -ArgumentList "/SILENT /VERYSILENT /SP- /SUPPRESSMSGBOXES /DIR=C:\OpenSSL" -Wait
# Build shadowsocks-rust's release
cargo build --release --features "miscreant" |
Discussion merged to #102 . |
No description provided.
The text was updated successfully, but these errors were encountered: