missing required architecture i386 in file

问题描述:今天研究QCAR的iPhone版本,下载Demo后编译报错,如下:

ld: warning: ignoring file ../../build/lib/arm/libQCAR.a, missing required architecture i386 in file

Undefined symbols for architecture i386:

"QCAR::deinit()", referenced from:

-[EAGLView onDestroy] in EAGLView.o

"QCAR::onResume()", referenced from:

-[EAGLView onResume] in EAGLView.o

-[EAGLView updateApplicationStatus:] in EAGLView.o

"QCAR::onPause()", referenced from:

-[EAGLView onPause] in EAGLView.o

"QCAR::setHint(unsigned int, int)", referenced from:

-[EAGLView updateApplicationStatus:] in EAGLView.o

"QCAR::onSurfaceCreated()", referenced from:

-[EAGLView initApplication] in EAGLView.o

"QCAR::onSurfaceChanged(int, int)", referenced from:

-[EAGLView initApplication] in EAGLView.o

"QCAR::setInitParameters(int)", referenced from:

-[EAGLView initQCAR] in EAGLView.o

"QCAR::init()", referenced from:

-[EAGLView initQCAR] in EAGLView.o

"QCAR::Tracker::getInstance()", referenced from:

-[EAGLView loadTracker] in EAGLView.o

-[EAGLView startCamera] in EAGLView.o

-[EAGLView stopCamera] in EAGLView.o

"QCAR::CameraDevice::getInstance()", referenced from:

-[EAGLView startCamera] in EAGLView.o

-[EAGLView stopCamera] in EAGLView.o

-[EAGLView configureVideoBackground] in EAGLView.o

-[OverlayView actionSheet:clickedButtonAtIndex:] in OverlayView.o

"QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)", referenced from:

-[EAGLView startCamera] in EAGLView.o

"QCAR::Renderer::getInstance()", referenced from:

-[EAGLView configureVideoBackground] in EAGLView.o

-[EAGLView renderFrameQCAR] in EAGLView.o

"QCAR::requiresAlpha()", referenced from:

-[EAGLView initRendering] in EAGLView.o

"QCAR::State::~State()", referenced from:

-[EAGLView renderFrameQCAR] in EAGLView.o

"QCAR::State::getNumActiveTrackables() const", referenced from:

-[EAGLView renderFrameQCAR] in EAGLView.o

"QCAR::State::getActiveTrackable(int) const", referenced from:

-[EAGLView renderFrameQCAR] in EAGLView.o

"QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)", referenced from:

-[EAGLView renderFrameQCAR] in EAGLView.o

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

问题分析:开始以为是没有找到库,重新引用库,无效。后查Google,要删除掉Targets-Build Settings-Library Search Paths,照做,无效。最后找到以下这段:

It seems the library is built for phone deployment (ARM) but you are trying to link it to a simulator executable (x86). This won't work. Rebuild the library for the simulator.

问题解决:切换成Device编译,搞定。

《画壁》

  好吧,童鞋们,导演想告诉你滴是,画中滴世界不是别处,就是我们生活的大陆当下。你看看是不是那么惊人的雷同。金碧辉煌、和谐盛世啊。曾志伟不是说嘛:你连自己到底是在天堂还是地狱都弄不清楚。这就是在反问无数麻木滴国人,你们生活的是什么环境你知道吗?
  无处不在的女兵就是我们的维稳力量啊(连第二次穿越到一个卵石滩也能被这些女兵给挖出来,像不像我们的跨省和城管啊?)。至于姑姑代表神马我就不用说了。在这片神奇的土地上,姑姑禁锢了所有人对爱的向往,也就是民主自由,谈都不许多谈。但是允许你们追去物质和实际现实的事物(利用男人生孩子)。外面来的男人正是国外的诸多先进事物(技术、文化),谈爱的男人是不欢迎的,被消灭的石妖证明了这点,但是带来技术的男人是欢迎的,后面的三个人是代表(小孩就是我们的伟大山寨,高铁神马的都是这个)。姑姑要靠利用外面的男人来和自己的女人结合产生下一代维系社会发展。虽然喝水可以生孩子,但是只可以生女孩,所以姑姑需要外面的力量,就跟我们需要一些外面的技术和文化来补充自己本身的不足(她同时说:这几个男人facebook 。就表明了天朝对知识产权的态度)。姑姑不断的告诉大家,男人不是好东西,爱情不是好东西,就是在给大家洗脑。但是即便是这种状况下,独裁专政依然是禁锢不住女人们对男人和真正爱情的向往的。于是对姑姑领导不满的女人们分了很多派别来革命…大致也可以分革命派、改良派两种,有兴趣的童鞋可以继续细分…从这个角度来解析每个角色,再加上那些雷人台词和剧情其实可以起到很好的黑色幽默效果,因为每个荒诞和你想吐槽的都可以在这个现实世界得到诠释。

升级Lion惊险记

想试试iCloud,就在App Store上花了29美元从Snow Leopard升级到Lion。艰辛坎坷惊险刺激。。。在这里不得不吐槽下Apple。

1.App Store操作下载超级慢,且一旦关机就不能断点续传。Lion下载了我2周。
2.所有的PowerPC的应用程序(包括烤面包等)都不能使用。在以前是能用的。
3.App Store点击安装Xcode无效。删除就版本xcode,也不能下载安装。官方又屏蔽了链接下载方式,最后只能把for snow leopard的链接改为for lion才能以链接方式下载。
4.装完Lion,切换到Win7,发现逻辑分区通通丢失。原因是新增了一个Recovery HD分区,导致Win7的扩展分区被挤掉了(Win7的mbf只支持4个主分区),只能使用Easy Recovery找回丢失文件合并到C盘。

Monster Media

Monster Media

As a full service multi media company, Monster Media offers clients a one-stop source for interactive advertising. Our unique products provide oversized interactive platforms that take on many forms and can be set up either permanently or event based throughout a national and international network.

http://www.monstermedia.net/

升级后iOS后上传审核Architectures问题

问题描述:今天Geely的iPhone版本要上架,用Application Loader上传报错,如下:

iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6

问题分析:显然问题出在升级iOS5后的配置问题上。

问题解决:在Target的Build Settings里,找到Architectures,点击"Standard(armv7)",再点"Other...",把原来的内容删掉,在分两行输入"armv6"和"armv7",搞定。