5

これは、関連する場合、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

関連する質問: libjpeg から jpegtran.c コードをコンパイルするのに助けが必要

4

2 に答える 2

3

あなたはおそらく実行しようとするべきです

./configure --help

利用可能なすべての構成フラグを確認します。おそらく、いくつかのスペルが間違っているか--enable-dynamic、何かが必要か、または別のものです。

構成出力についてconfig.logは、ファイルのすぐ隣にあるプロジェクトの (この場合は libjpeg の) ディレクトリにある を参照することもできconfigureます。

于 2016-03-03T09:06:00.717 に答える