【问题标题】:configure: error: Missing required libcurl配置:错误:缺少所需的 libcurl
【发布时间】:2014-03-26 03:59:04
【问题描述】:

我正在尝试在 windows xp 32 位上编译需要 curllib 的项目

我已经下载“curl-7.35.0.tar.gz”并编译它,复制“libcurl.m4”和“curl-config

当我在 MSYS Shell 中运行此命令时:

LIBCURL="-lcurldll" ./configure CFLAGS="-O3"

它给了我这个错误:

configure: error: Missing required libcurl >= 7.15.2

我知道我没有在我的系统中正确安装 curl 库,这就是出现此错误的原因

有人能告诉我在 windows 中安装 libcurl 的正确方法吗? (注意:我是 C/C++ 和编译和所有相关内容的新手)

提前致谢!

配置脚本结果:

checking build system type... i686-pc-mingw32
checking host system type... i686-w64-mingw32
checking target system type... i686-w64-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for i686-w64-mingw32-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for i686-w64-mingw32-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc -std=gnu99 needs -traditional... no
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking dependency style of gcc -std=gnu99... gcc3
checking for i686-w64-mingw32-ranlib... no
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
checking for sys/sysctl.h... no
checking whether be32dec is declared... no
checking whether le32dec is declared... no
checking whether be32enc is declared... no
checking whether le32enc is declared... no
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking for getopt_long... yes
checking whether we can compile AVX code... yes
checking whether we can compile XOP code... yes
checking whether we can compile AVX2 code... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... no
checking for pthread_create in -lpthreadGC2... no
checking for pthread_create in -lpthreadGC1... no
checking for pthread_create in -lpthreadGC... no
checking for gawk... (cached) gawk
checking for curl-config... /mingw/bin/curl-config
checking for the version of libcurl... 7.35.0
checking for libcurl >= version 7.15.2... yes
checking whether libcurl is usable... no
configure: error: Missing required libcurl >= 7.15.2

【问题讨论】:

    标签: c++ curl compilation mingw msys


    【解决方案1】:

    您需要将下载/编译的 libcurl 放在链接器路径中。这意味着您需要获取 libcurl.dll 文件(而不是 m4)并将其放在链接器将搜索的目录中。通常是项目目录或 Windows 默认定义的系统库之一。

    【讨论】:

      猜你喜欢
      • 2017-08-01
      • 1970-01-01
      • 2016-05-17
      • 2011-09-26
      • 2020-03-24
      • 1970-01-01
      • 1970-01-01
      • 2015-03-14
      • 2020-08-17
      相关资源
      最近更新 更多