我正在尝试从the ARToolKit5 examples page编译simpleLite.c示例。如果我运行.app
文件,它可以正常工作。我想看看我是否可以修改文件中的任何内容,所以我尝试重新制作文件,但是我收到了错误:
./Makefile.in: line 49: ../../include: is a directory
./Makefile.in: line 50: ../../lib: is a directory
./Makefile.in: line 51: ../../bin: is a directory
./Makefile.in: line 54: LIB_DIR: command not found
./Makefile.in: line 54: LIB_DIR: command not found
./Makefile.in: line 54: -L/@SYSTEM@: No such file or directory
./Makefile.in: line 55: -lARgsub_lite: command not found
./Makefile.in: line 56: INC_DIR: command not found
./Makefile.in: line 56: @CFLAG@: command not found
./Makefile.in: line 58: OBJS: command not found
./Makefile.in: line 59: HEADERS: command not found
./Makefile.in: line 61: BIN_DIR: command not found
./Makefile.in: line 61: all:: command not found
./Makefile.in: line 63: BIN_DIR: command not found
./Makefile.in: line 63: OBJS: command not found
./Makefile.in: line 63: /simpleLite:: No such file or directory
./Makefile.in: line 64: BIN_DIR: command not found
./Makefile.in: line 64: OBJS: command not found
./Makefile.in: line 64: LDFLAG: command not found
./Makefile.in: line 64: LIBS: command not found
clang: error: no such file or directory: 'simpleLite.o'
clang: error: no input files
./Makefile.in: line 66: HEADERS: command not found
./Makefile.in: line 66: simpleLite.o:: command not found
./Makefile.in: line 67: CFLAG: command not found
simpleLite.c:68:10: fatal error: 'AR/config.h' file not found
#include <AR/config.h>
^~~~~~~~~~~~~
1 error generated.
./Makefile.in: line 69: clean:: command not found
./Makefile.in: line 71: BIN_DIR: command not found
./Makefile.in: line 73: allclean:: command not found
./Makefile.in: line 75: BIN_DIR: command not found
./Makefile.in: line 78: distclean:: command not found
该文件夹包含三个文件,makefile.in
,.plist
文件和.c
源代码。 AR/config.h
文件夹存在于ARToolKit5存档(ARToolKit5/include/AR
)的其他位置。
通常情况下,我假设我需要指定源文件夹中的路径,但还有include
语句,如# include <GLUT/glut.h>
,这些语句不会抛出错误。
对于C开发我是相当新的/生锈的,所以我不确定甚至可以解决这个问题。谁能指出我正确的方向?我是否需要指定标题路径,还是不太明显?