zoukankan      html  css  js  c++  java
  • 一个开源库:720全景显示

    google代码首页:
    http://code.google.com/p/panoramagl/

    库使用详细介绍:
    http://www.codeproject.com/KB/iPhone/panoramagl.aspx

    功能介绍:
    1、支持720全景展示
    2、支持重力加速度感应控制

    遇到主要问题及解决方法:
    1、No architectures to compile for (ARCHS=armv6 armv7, VALID_ARCHS=i386 ppc ppc64 ppc7400 ppc970 x86_64).
    ==>需要添加armv6和armv7,如下图:
      [attachment=28204] 
    2、glu.h链接文件出错,需要include "glues.h"
    #ifndef __glu_h__
    #define __glu_h__
    #include "glues.h"
    #endif

    3、Undefined symbols:
      "_OBJC_CLASS_$_PLTexture", referenced from:
          objc-class-ref-to-PLTexture in HelloPanoramaViewController.o
    ld: symbol(s) not found
    一般这个问题由于添加PanoramaGL.xcodeproj到HelloPanorama项目中时,忘了勾选库的右上角的圆框,如下图:
    [attachment=28205] 
    也就是stackoverflow上这句话的意思,但是因为没图,其他人看了很不理解,包括我 :(
    I had the same problem, and noticed that although I included PanoramaGL xcode project, its lib (libPanoramaGL.a) was not selected to build with the target (that little checkbox in the top right list of XCode).
    其实这句话意思是:这个.a静态库没有被选中,导致不能被编译到目标程序中。
    右键.a文件,get info -->Targets,多targets项目,可以指定一个静态库为那几个targets所有,同样的道理使用于程序源文件和资源文件,看了下面这幅图就更加理解了
    [attachment=28207] 

  • 相关阅读:
    组件映射
    联合主键关联
    一对一单向双向主键关联
    7函数
    forEach与map
    3运算符与表达式
    作用域声明提升
    php程序设计 1,2章节
    angularJs(3)过滤器
    angularJs(1)指令篇
  • 原文地址:https://www.cnblogs.com/weiboyuan/p/3601883.html
Copyright © 2011-2022 走看看