简体   繁体   English

XCode编译器Apple LLVM 3.1与LLVM GCC 4.2

[英]XCode Compiler Apple LLVM 3.1 vs LLVM GCC 4.2

I downloaded this project to give it a try (http://www.hatzlaha.co.il/150842/Lucas-Kanade-Detection-for-the-iPhone). 我下载了该项目以进行尝试(http://www.hatzlaha.co.il/150842/Lucas-Kanade-Detection-for-the-iPhone)。 It also has a released version on AppStore. 它还在AppStore上有发行版本。

When I downloaded the source and compiled, it gave compilation errors. 当我下载源代码并进行编译时,它给出了编译错误。 I changed the compiler to LLVM GCC and it instantly compiled without any errors or warnings. 我将编译器更改为LLVM GCC,它立即编译,没有任何错误或警告。

Further here is what I did: 更进一步,这是我所做的:

  • Downloaded the app Lucas Kanade on personal iPhone. 在个人iPhone上下载了应用程序Lucas Kanade。 Runs as expected (ie. shows tracked points and video output). 按预期运行(即显示跟踪点和视频输出)。
  • Deployed the above compiled app on company iPad. 在公司iPad上部署了以上已编译的应用程序。 Here is shows the tracked points (which means the application is getting the video frames) but not able to display the video output. 这里显示了跟踪的点(这意味着应用程序正在获取视频帧),但无法显示视频输出。

General app flow: 常规应用流程:

  • Grab a frame from the camera. 从相机中拿取相框。
  • Process the frame (track points). 处理框架(跟踪点)。
  • Output the frame, so the screen looks like its showing the camera feed, as expected. 输出帧,使屏幕看起来像预期的那样显示摄像机的源。

Device details: 设备详细信息:

  • iPhone: OS 5.1.1 (9B206); iPhone:操作系统5.1.1(9B206); iPhone 4; iPhone 4;
  • iPad: OS 5.1 (9B176); iPad:OS 5.1(9B176); iPad 2; iPad 2;

Questions 问题

  • Is the video output problem occurring because of the different in OS versions or because of the GCC compiler being used? 是由于OS版本不同还是由于使用了GCC编译器而导致出现视频输出问题?
  • If it is the compiler problem, would be be appropriate to put the compile errors here for resolution or do I need to start a separate Question? 如果是编译器问题,将编译错误放在此处以进行解决是适当的方法,还是我需要启动一个单独的Question?

I know this info might not be enough since there are a lot of unknowns, but trust me, getting into the details of the app would be a really exhaustive problem description. 我知道此信息可能还不够,因为有很多未知数,但是请相信我,深入了解该应用程序的详细信息将是一个非常详尽的问题描述。 Let me know what more info is needed to guess the solution. 让我知道猜测解决方案还需要更多信息。 I'll update it here. 我会在这里更新。

Like you already said the info is not enough. 就像您已经说过的,信息还不够。 I can just guess. 我可以猜测。 The projects for tracking points uses generally their own driver for camera access. 跟踪点的项目通常使用其自己的驱动程序来访问摄像机。 The reason, why it does not work with llvm compiler, might be that. 之所以不能与llvm编译器一起工作,可能是因为。

Just look in the project if you find any file specific to iPhone. 如果您找到任何特定于iPhone的文件,只需在项目中查看。 They are mostly dat files. 它们主要是dat文件。 And maybe you find some preprocessor macros in the project like #ifdef target_iphone something like that. 也许您在项目中找到了一些预处理器宏,例如#ifdef target_iphone之类的东西。 In that case you can contact the producer and request the driver for iPad. 在这种情况下,您可以联系生产商并要求iPad驱动程序。

I did not download and tried the project, but it is just a guess. 我没有下载并尝试过该项目,但这只是一个猜测。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM