我一直在尝试适用于 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 won't run on ios
似乎正在运行一个不同的 main(一个在 sdl_ttf 内)并产生输出。
我提到的帖子的评论者说:“我猜你在工具目录中的项目中包含了 apinames.c,而 main 就是正在运行的东西”。什么是工具目录?我将如何解决这个问题?
如何将 Xcode 项目的入口点更改为我的 main.cpp?
感谢您的任何建议。