Coder Social home page Coder Social logo

Comments (16)

alexcrichton avatar alexcrichton commented on September 22, 2024

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.

waynenilsen avatar waynenilsen commented on September 22, 2024

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.

waynenilsen avatar waynenilsen commented on September 22, 2024

Yes, it turns out that cargo build hung with MSYS environment installed. No response after over 12 hours.

from curl-rust.

alexcrichton avatar alexcrichton commented on September 22, 2024

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.

waynenilsen avatar waynenilsen commented on September 22, 2024

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.

waynenilsen avatar waynenilsen commented on September 22, 2024

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.

alexcrichton avatar alexcrichton commented on September 22, 2024

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.

waynenilsen avatar waynenilsen commented on September 22, 2024

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.

waynenilsen avatar waynenilsen commented on September 22, 2024

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.

alexcrichton avatar alexcrichton commented on September 22, 2024

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.

mitsuhiko avatar mitsuhiko commented on September 22, 2024

I think one thing that should be documented is that it only builds with VS2015 or later.

from curl-rust.

alexcrichton avatar alexcrichton commented on September 22, 2024

@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.

mitsuhiko avatar mitsuhiko commented on September 22, 2024

@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.

alexcrichton avatar alexcrichton commented on September 22, 2024

@mitsuhiko I've now merged #119 which I think uses VS 2013, but it seems to work?

from curl-rust.

blakehawkins avatar blakehawkins commented on September 22, 2024

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.

alexcrichton avatar alexcrichton commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.