Code Monkey home page Code Monkey logo

zhangaz1 / curl-for-windows Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jcmais/curl-for-windows

0.0 1.0 0.0 12.13 MB

An unofficial mirror of the curl library with support for static linking on Windows.

C 49.84% Python 0.22% Makefile 2.42% Assembly 33.53% Shell 0.45% C++ 2.19% Batchfile 0.14% Perl 9.96% DIGITAL Command Language 0.96% XS 0.01% M4 0.15% eC 0.02% Emacs Lisp 0.02% Protocol Buffer 0.01% Scheme 0.01% Roff 0.01% Prolog 0.09%

curl-for-windows's Introduction

Curl for windows

Curl is a command line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software.

About

This repository is a collection of submodules (dependencies) that curl need to build successfully. Each submodule tracks the latest known git release tag. In order to make this easy to maintain i converted the buildsystem to GYP. Please note that this is not a FORK and no patches has been applied or sent upstream.

By following the tutorial below, you should be able build a working, statically linked version of the latest libcurl.

Both x86 and x64 builds are supported.

Happy linking ;)

Download prebuilt version of curl

Download available for your convenience over at SourceForge which also includes the static libraries.

Obtaining a free copy of visual studio

If you do not have a visual studio license you can download Visual Studio 2013 Express edition for free.

Curl dependencies

Prerequisites

Obtaining prerequisites

$ git clone https://github.com/peters/curl-for-windows.git
$ git submodule update --init --recursive

Configuration options

$ python configure.py --help
Usage: configure.py [options]

Options:
  -h, --help            show this help message and exit
  --toolchain=TOOLCHAIN
                        msvs toolchain to build for. [default: auto]
  --target-arch=TARGET_ARCH
                        CPU architecture to build for. [default: x86]

Generate project files

$ python configure.py 

Open respective curl.sln found in out folder ;)

Simple curl example

If you are new to curl you can checkout the example project found in curl.sln or you can view additional the examples in the official curl repository.

Linking with libcurl (without gyp)

  • Add preprocessor flag

    • CURL_STATICLIB
  • Add include directory

    • path/to/curl/include
  • Add additional library search directory

    • path/to/out/Debug|Release/obj
  • Link with the following libraries

    • libcurl.lib
    • openssl.lib
    • libssh2.lib
    • zlib.lib
    • wsock32.lib
    • wldap32.lib
    • ws2_32.lib

By now you should have sweet, statically linked, CURL! ;)

curl-for-windows's People

Contributors

jcmais avatar peters avatar

Watchers

 avatar

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.