制作ARToolKitPlus dylib后ARToolkitPlus头文件出现问题!
我正在为 iPhone 编写这个增强现实应用程序,我决定使用 ARToolKitPlus 。使用 QMake,我创建了 xcode 项目文件,随后创建了 libArToolKitPlus.dylib
我尝试编译并运行示例文件“simple”和“multi”,效果很好。现在,由于找不到头文件,我尝试创建另一个项目并使用该库的所有其他尝试都失败了。如果我将“include”文件夹拖到 xcode 项目中,我会收到 8 个错误,而不仅仅是一个;一个是未找到的主要包含已解决,但它包含无法找到的其他 8 个标头(尽管它们位于同一文件夹中)
#include "ARToolKitPlus/TrackerSingleMarkerImpl.h"
我收到错误: ARToolKitPlus/TrackerSingleMarkerImpl.h:没有这样的文件或目录
如果我拖动包含文件夹,然后得到一些内容:
- 错误:ARToolKitPlus/TrackerSingleMarker.h:没有这样的文件或目录
- 错误:../src/TrackerSingleMarkerImpl.cpp:没有这样的文件或目录
错误:之前预期的类名',' 标记
类 TrackerSingleMarkerImpl :公共 TrackerSingleMarker,受保护的 TrackerImpl<__PATTERN_SIZE_X,__PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS>
据我所知,拥有 dylib 并没有什么区别。你认为我应该做什么?创建一个框架会有帮助吗?
I'm writing this Augmented Reality app for the iPhone and I'd decided to use ARToolKitPlus for it. Using QMake, I created the xcode project file and subsequently the libArToolKitPlus.dylib
I tried to compile and run the sample files "simple" and "multi" which worked well. Now all other attempts that I tried to create another project and use the library have failed due to header files not being found. If I drag the "include" folder to the xcode project I get 8 errors instead of just one; The one is for the main include not being found is solved but then it includes 8 other headers that cannot be found (although they are in the same folder)
#include "ARToolKitPlus/TrackerSingleMarkerImpl.h"
I get a error: ARToolKitPlus/TrackerSingleMarkerImpl.h: No such file or directory
If I drag the include folder then some of what I get:
- error: ARToolKitPlus/TrackerSingleMarker.h: No such file or directory
- error: ../src/TrackerSingleMarkerImpl.cpp: No such file or directory
error: expected class-name before ',' token
class TrackerSingleMarkerImpl : public TrackerSingleMarker, protected TrackerImpl<__PATTERN_SIZE_X,__PATTERN_SIZE_Y, __PATTERN_SAMPLE_NUM, __MAX_LOAD_PATTERNS, __MAX_IMAGE_PATTERNS>
Having the dylib doesnt make a difference as far as I can tell. What do you think I should do?? Would creating a framework help??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想通了...这是一个 xcode 问题,它没有在标头搜索路径中包含“include”文件夹。手动操作一下,问题就解决了!
I figured this out... It was an xcode problem, it was not including the "include" folder in the header search path. Did that manually and the problem was solved!
我不确定这样做是否可以“从版权角度考虑”。但这里是如何做到这一点。
I'm not sure its ok "copyright wise" to do so. But here's how to do it.