Comments (16)
Yeah unfortunately building this crate for the x86_64-pc-windows-gnu target requires building it in a MSYS environment (as do almost all other C projects). If you build for x86_64-pc-windows-msvc, however, it should in theory work so long as VS is installed.
I'd be more than ok updating the docs, here, though! I know this tends to be a pain point with Windows unfortunately :(
from curl-rust.
I installed msys via MinGW but cargo build
seems to be hung. I'm going to let it run overnight just to be sure.
from curl-rust.
Yes, it turns out that cargo build
hung with MSYS environment installed. No response after over 12 hours.
from curl-rust.
Weird! I vaguely remember running into that but I don't remember figuring out why. Can you take a look and see which processes are hung?
from curl-rust.
The best that I could tell it was hung on make but not sure what within make was hung up.. I will try again when I get back to the machine tomorrow
from curl-rust.
I ran again this morning and got checking size of void*... 0 configure: error: cannot find out size of void*.
So I did some googling around and found out that maybe it wants vcvars
so I ran that. It does seem to be running gcc
now which is a good sign. Not sure how long I can expect this to take.
It has been running for about an hour now, make is pinning a core, not sure if it is stuck in a loop or actually doing something.
from curl-rust.
Hm vcvars should only be necessary for MSVC targets which don't use gcc, so that's odd! I've found the configure script to take forever on Windows, but an hour is certainly a bit excessive... Can you get a dump of the process running to see where it's at?
from curl-rust.
make
is still pinning a core. Not sure what you mean about "get a dump of the process running" how would I go about doing that? Some tool?
from curl-rust.
It seems (I didn't notice any error messages) that I was able to successfully run sh configure
then make
from the curl-sys\curl
directory. I saw that you had some extra flags in your build.rs
file but I did not go through the logic and figure out exactly which flags to use.
from curl-rust.
yeah sometimes calling shell scripts from Rust is subtly different than calling them from the shell itself, and I've never really quite figured out what the problem is...
from curl-rust.
I think one thing that should be documented is that it only builds with VS2015 or later.
from curl-rust.
@mitsuhiko oh dear that's not good! It's certainly intended to build with more than that, do you have a copy of the error on previous versions?
from curl-rust.
@alexcrichton i'm travelling without windows machine right now and probably won't be at my desktop for a month. I think it complained about undefined symbols from libc. I tried with I believe 2013 before that.
from curl-rust.
@mitsuhiko I've now merged #119 which I think uses VS 2013, but it seems to work?
from curl-rust.
Hi,
On a fresh install of msys2 (windows with -gnu toolchain), building this package has abysmally poor debug info - e.g. https://gist.github.com/anonymous/eb7c2e4904687b374154f19e14d6eda5
I found out that you need to be able to build libcurl from source for this package to build. By building libcurl from source (which has better debug info) I managed to make a list of necessary packages:
autoconf
git
libcurl-devel
libcurl
man
curl
vim
binutils
gcc
make
automake
libtool
pkg-config
Hopefully nothing is missing.
from curl-rust.
I'm going to close this since I don't think this is as relevant now as it used to be.
from curl-rust.
Related Issues (20)
- Versioning up of this crate
- How to make OpenSSL as the TLS backend on Windows and macOS? HOT 2
- HTTP response version HOT 5
- Missing debug_function in curl::easy::Easy2
- v0.4.69 release cannot be compiled because it's missing its copy of curl HOT 2
- Adopt openssl@3 HOT 1
- more easily get access to headers in Easy2 client HOT 2
- 0.4.45: Compilation issue HOT 2
- EOF error parsing large JSON response HOT 2
- How to set custom CA file
- abort_read test fails on Debian sid, probablly due to curl
- How upload file, just like curl -T <file> HOT 3
- Unsound usages of unsafe implementation leading to potential use-after-free bug HOT 2
- CURLOPT_REQUEST_TARGET
- Returning error on second request on using authentication 'auto'
- `os_errno()` not always reporting error 110 for connection timeouts
- several years since last release, status of this project ? HOT 3
- Unable to connect to an IPv6 link local address HOT 1
- Building expects `openssl/engine.h` despite engine API being deprecated?
- Please update to curl 8.10.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl-rust.