C makefile直接在iphone上编译OpenGL项目

时间:2021-04-13 18:15:39

Please direct me if this question has already been asked; I did a search on the topic unable to find yet.

如果已经提出这个问题,请指导我;我搜索了无法找到的主题。

I am having trouble putting together a makefile that will take one or more .c OpenGL project files, uses apple-arm-darwin9 and OpenGL framework to compile into object directly on the iphone (using bash). For some reason whatever combination of framework or LIBPATH I use I am constantly seeing exceptions thrown - if anyone can point me to the right direction I'd be well on my way. Thanks

我无法整理一个makefile,它将采用一个或多个.c OpenGL项目文件,使用apple-arm-darwin9和OpenGL框架直接在iphone上编译成对象(使用bash)。出于某种原因,我使用的框架或LIBPATH的任何组合我不断地看到抛出的异常 - 如果有人能指出我正确的方向我会顺利进行。谢谢

1 个解决方案

#1


Too generic, and two different issues.

太通用了,还有两个不同的问题。

One, the problem of finding a command (or series of commands) that does correctly compile your code.

一,找到正确编译代码的命令(或一系列命令)的问题。

Two, writing a Makefile to do the job.

二,编写Makefile来完成这项工作。

I'd help you with the latter, but you have to figure out the former first (which has nothing to do with Makefiles at all)...

我会用后者来帮助你,但是你必须首先找出前者(这与Makefile完全无关)......

#1


Too generic, and two different issues.

太通用了,还有两个不同的问题。

One, the problem of finding a command (or series of commands) that does correctly compile your code.

一,找到正确编译代码的命令(或一系列命令)的问题。

Two, writing a Makefile to do the job.

二,编写Makefile来完成这项工作。

I'd help you with the latter, but you have to figure out the former first (which has nothing to do with Makefiles at all)...

我会用后者来帮助你,但是你必须首先找出前者(这与Makefile完全无关)......