libcurl - Minimal cURL cross compile for windows -
i want compile curl source use in windows dll project. this, installed virtual machine ubuntu, downloaded curl source http://curl.haxx.se/download/curl-7.37.0.tar.bz2, unpacked , configured this:
./configure --prefix=$home/devel/curl3 --disable-ftp --disable-file\ --disable-ldap --disable-dict --disable-telnet --disable-tftp\ --disable-rtsp --disable-pop3 --disable-imap --disable-smtp\ --disable-gopher --disable-ares --disable-debug --without-ssl\ --without-zlib --without-libidn --build=i586-pc-linux-gnu\ --host=i386-pc-mingw32 --disable-shared
so have output:
configure: configured build curl/libcurl: curl version: 7.37.0 host setup: i386-pc-mingw32 install prefix: /home/victor/devel/curl3 compiler: gcc ssl support: no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} ) ssh support: no (--with-libssh2) zlib support: no (--with-zlib) gss-api support: no (--with-gssapi) spnego support: no (--with-spnego) tls-srp support: no (--enable-tls-srp) resolver: default (--enable-ares / --enable-threaded-resolver) ipv6 support: no (--enable-ipv6) idn support: no (--with-{libidn,winidn}) build libcurl: shared=no, static=yes built-in manual: enabled --libcurl option: enabled (--disable-libcurl-option) verbose errors: enabled (--disable-verbose) sspi support: no (--enable-sspi) ca cert bundle: no ca cert path: no ldap support: no (--enable-ldap / --with-ldap-lib / --with-lber-lib) ldaps support: no (--enable-ldaps) rtsp support: no (--enable-rtsp) rtmp support: no (--with-librtmp) metalink support: no (--with-libmetalink) http2 support: disabled (--with-nghttp2) protocols: http
then make & make install create files (libcurl.a , include/curl/)*. runs fine problem is: when import generated files, 1 header missing: sys/socket.h. header not part of clean mingw32 install , this, configure command --host=i386-pc-mingw32 should not require it, windows uses winsock, right?
what missing here?
sorry long question , in advance.
i found out wrong;
i had download mingw32 package , set toolchain configure , make commands. --host config wrong. toolchain downloaded had pointed "i586-pc-mingw32msvc" , path set as:
path=(path/to/i586ming):$path ./configure <options described above> path=(path/to/i586ming):$path make path=(path/to/i586ming):$path make install
and output correct.
Comments
Post a Comment