Indri Lemur:make 文件的问题
我想编译我的 indri lemur 应用程序,因此我使用 myapp.cpp 创建了一个文件夹,并将 Makefile.app.in 从 indri 根目录复制到 myApp/Makefile.app,如下所述: 编写您自己的应用程序
但是,当我运行 make 时,我出现以下错误。这是特定于工具包的错误还是与编译器有关的错误?
P-MacBook-Pro:myapp aneuryzma$ make -f Makefile.app
g++ @DEFS@ @CPPFLAGS@ @CXXFLAGS@ -I@includedir@ myapp.cpp -o myapp -L@libdir@ @LDFLAGS@ -lindri @LIBS@
i686-apple-darwin10-g++-4.2.1: @DEFS@: No such file or directory
i686-apple-darwin10-g++-4.2.1: @CPPFLAGS@: No such file or directory
i686-apple-darwin10-g++-4.2.1: @CXXFLAGS@: No such file or directory
i686-apple-darwin10-g++-4.2.1: myapp.cpp: No such file or directory
i686-apple-darwin10-g++-4.2.1: @LDFLAGS@: No such file or directory
i686-apple-darwin10-g++-4.2.1: @LIBS@: No such file or directory
make: *** [all] Error 1
谢谢
I want to compile my indri lemur application, so i've created a folder with myapp.cpp and copied Makefile.app.in from the indri root directory to myApp/Makefile.app as explained here: Write your own app
However when I run make, I get the following errors. Is this an error specific to the toolkit or is about the compiler ?
P-MacBook-Pro:myapp aneuryzma$ make -f Makefile.app
g++ @DEFS@ @CPPFLAGS@ @CXXFLAGS@ -I@includedir@ myapp.cpp -o myapp -L@libdir@ @LDFLAGS@ -lindri @LIBS@
i686-apple-darwin10-g++-4.2.1: @DEFS@: No such file or directory
i686-apple-darwin10-g++-4.2.1: @CPPFLAGS@: No such file or directory
i686-apple-darwin10-g++-4.2.1: @CXXFLAGS@: No such file or directory
i686-apple-darwin10-g++-4.2.1: myapp.cpp: No such file or directory
i686-apple-darwin10-g++-4.2.1: @LDFLAGS@: No such file or directory
i686-apple-darwin10-g++-4.2.1: @LIBS@: No such file or directory
make: *** [all] Error 1
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该链接指出您应该复制 Makefile.app,而不是 Makefile.app.in。
您(通常)需要一个配置脚本来从 .in 文件构建普通 Makefile。
The link states that you should copy Makefile.app, not Makefile.app.in.
You need (usually) a configure-script to build ordinary Makefiles from .in files.