- ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:MinGWでfreetypeのmake時に)
MinGWでfreetypeのmake時にSDL_ttfを使うためにfreetype2.4.8をmakeしたところエラーが発生
このQ&Aのポイント
- MinGW環境でfreetypeのmake時にSDL_ttfを使うためにfreetype2.4.8をmakeしたところ、エラーメッセージが表示されて失敗しました。
- config.mk:25: builds/unix/unix-def.mk: No such file or directory config.mk:26: builds/unix/unix-cc.mk: No such file or directory builds/freetype.mk:216: src/cff/rules.mk: No such file or directory builds/freetype.mk:216: src/cid/rules.mk: No such file or directory builds/freetype.mk:216: src/pfr/rules.mk: No such file or directory builds/freetype.mk:216: src/type42/rules.mk: No such file or directory builds/freetype.mk:216: src/winfonts/rules.mk: No such file or directory builds/freetype.mk:216: src/bdf/rules.mk: No such file or directory builds/freetype.mk:216: src/autofit/rules.mk: No such file or directory builds/freetype.mk:216: src/pshinter/rules.mk: No such file or directory builds/freetype.mk:216: src/smooth/rules.mk: No such file or directory builds/freetype.mk:216: src/cache/rules.mk: No such file or directory builds/freetype.mk:216: src/gzip/rules.mk: No such file or directory builds/freetype.mk:216: src/bzip2/rules.mk: No such file or directory builds/freetype.mk:216: src/psaux/rules.mk: No such file or directory make: *** No rule to make target `src/psaux/rules.mk'. Stop.
- 質問者はMinGWでfreetypeのmakeをしている際にエラーが発生しました。具体的には、SDL_ttfを使うためにfreetype2.4.8をmakeしたところconfig.mkやbuilds/freetype.mkのファイルが見つからないというエラーメッセージが表示されました。設定を見直して問題を解決する方法を知りたいです。
- みんなの回答 (1)
- 専門家の回答
質問者が選んだベストアンサー
そこに至るまでにあなたのした操作を全部書いてもらえませんか?
お礼
SDL_ttfのサイトから取得したものをコンパイルしていましたが,Freetype公式のサイトからダウンロードしたものを使用したらうまくいきました. ありがとうございました.
補足
展開したディレクトリに移動し'configure --prefix=/mingw'を実行しました。以下はその出力です。 FreeType build system -- automatic system detection The following settings are used: platform unix compiler cc configuration directory ./builds/unix configuration rules ./builds/unix/unix.mk If this does not correspond to your system or settings please remove the file `config.mk' from this directory then read the INSTALL file for help. Otherwise, simply type `make' again to build the library, or `make refdoc' to build the API reference (the latter needs python). cd builds/unix; ./configure '--prefix=/mingw' checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 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 how to run the C preprocessor... gcc -E checking for rm... rm -f checking for rmdir... rmdir checking for a BSD-compatible install... /bin/install -c checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E 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 fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking size of int... 4 checking size of long... 4 checking cpp computation of bit length in ftconfig.in works... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... no checking for memcpy... yes checking for memmove... yes checking for gzsetparams in -lz... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for BZ2_bzDecompress in -lbz2... no checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... c:/mingw/mingw32/bin/ld.exe checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm checking the name lister (/mingw/bin/nm) interface... BSD nm checking whether ln -s works... no, using cp -p checking the maximum length of command line arguments... 8192 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format... func_convert_file_msys_to_w32 checking how to convert i686-pc-mingw32 file names to toolchain format... func_convert_file_msys_to_w32 checking for c:/mingw/mingw32/bin/ld.exe option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL checking for dlltool... dlltool checking how to associate runtime and link libraries... func_cygming_dll_for_implib checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... gawk checking command to parse /mingw/bin/nm output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... no checking for as... as checking for dlltool... (cached) dlltool checking for objdump... (cached) objdump (続く)