gpt4 book ai didi

dll - 配置脚本不启用 make 生成共享库

转载 作者:行者123 更新时间:2023-12-04 18:45:51 26 4
gpt4 key购买 nike

这是关于编译 libjpeg v6b(如果相关的话)。

我运行 ./configure --prefix=/c/tmp/jpeg-6b-build --enable-shared --enable-static 就像安装文档说的那样,但 libtool 没有它。

checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes

我想我需要这个共享库才能编译一些函数。 libjpeg 本身编译得很好,它生成的 .exe 可以工作,但我需要将源代码用于其他用途。由于某些原因,v6b 不会生成 .DLL,而 v9 会。

./configure 命令的完整输出:
ild
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E
checking for function prototypes... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for working const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... yes
checking to see if right shift is signed... yes
checking to see if fopen accepts b spec... yes
checking for a BSD compatible install... /bin/install -c
checking for ranlib... ranlib
checking host system type... i386-pc-mingw32
checking for ranlib... ranlib
checking for gcc... gcc
checking whether we are using GNU C... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... no
checking if gcc static flag -static works... -static
checking whether ln -s works... no
checking for ld used by GCC... ./c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../
../mingw32/bin/ld.exe
checking if the linker (./c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../ming
w32/bin/ld.exe) is GNU ld... yes
checking whether the linker (./c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../..
/mingw32/bin/ld.exe) supports shared libraries... yes
checking for BSD-compatible nm... /mingw/bin/nm
checking command to parse /mingw/bin/nm output... no
checking how to hardcode library paths into programs... immediate
checking for ./c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.
exe option to reload object files... -r
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking libjpeg version number... 62
creating ./config.status
creating Makefile
creating jconfig.h
jconfig.h is unchanged

相关问题: Need help compiling jpegtran.c code from libjpeg

最佳答案

你应该尝试运行

./configure --help

并查看所有可用的配置标志,也许你拼错了一些或者你需要 --enable-dynamic或不同的东西。

对于配置输出,您也可以引用 config.log ,即在项目的(在您的情况下 - libjpeg 的)目录中,就在 configure 旁边文件。

关于dll - 配置脚本不启用 make 生成共享库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14635871/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com