0

iOS 用の SDL を試してみましたが、sdl_ttf をミックスに追加するまでは順調に進んでいました。私が得る唯一の出力は

apinames 0.1: extract FreeType API names from header files

this program is used to extract the list of public FreeType API
functions. It receives the list of header files as argument and
generates a sorted list of unique identifiers

usage: apinames header1 [options] [header2 ...]

options:   -      : parse the content of stdin, ignore arguments
           -v     : verbose mode, output sent to standard error
           -oFILE : write output to FILE instead of standard output
           -dNAME : indicate DLL file name, 'freetype.dll' by default
           -w     : output .DEF file for Visual C++ and Mingw
           -wB    : output .DEF file for Borland C++
           -wW    : output Watcom Linker Response File

グーグルで検索すると、私と同じ問題を抱えている人からこのSOの質問が見つかりました: SDL2_ttfはiosで実行されません

別のメイン (sdl_ttf 内のメイン) が実行され、出力が生成されているようです。

  1. 私が言及した投稿へのコメント投稿者は、「ツール ディレクトリからプロジェクトに apinames.c を含めたと思いますが、そのメインが実行されていると思います」と述べました。ツール ディレクトリとは何ですか? どうすれば修正できますか?

  2. Xcode プロジェクトのエントリ ポイントを main.cpp に変更するにはどうすればよいですか?

アドバイスをありがとう。

4

2 に答える 2

0

xcode ビルド ターゲットの [ビルド フェーズ] の下にある [ライブラリとバイナリをリンク] 内でフレームワークをドラッグして並べ替えます。SDL2.framework (または使用しているもの) が SDL2_image.framework の上にあることを確認します。

于 2015-06-24T12:21:54.443 に答える