# xcode build error

**URL:** <https://forums.imgtec.com/t/xcode-build-error/687>\
**Category:** PowerVR Insider\
**Created:** [May 3, 2010, 10:34am UTC](https://forums.imgtec.com/t/xcode-build-error/687 "2010-05-03T10:34:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![astray2006](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@astray2006](https://forums.imgtec.com/u/astray2006)\
**Post date:** [May 3, 2010, 10:34am UTC](https://forums.imgtec.com/t/xcode-build-error/687/1 "2010-05-03T10:34:29Z")

</div>

hi  
  
  
i’m new,i have some problems in building my own iphone gameApp  
  
  
i can build and run the sample and demo in SDK very good,but if copy the PowerVRTools files in my own app,it has many error,like"  
  
  
 Compile PVRTTextureAPI.cpp…  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ‘myglTexParameter’ was not declared in the scope  
  
  
" ![]() ![]()  
  
  
i kown it’s something wrong with xcode configuration,and how to config it to avoid error  
  
  
  
  
  
thanks very much ,

---

<div class="post-metadata">

**Author:** ![GordonMaclachlan](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@GordonMaclachlan](https://forums.imgtec.com/u/GordonMaclachlan)\
**Post date:** [May 6, 2010, 2:44pm UTC](https://forums.imgtec.com/t/xcode-build-error/687/2 "2010-05-06T14:44:07Z")

</div>

There is a preprocessor define in the POWERVR projects that may be causing this if you don’t have it. Try adding BUILD\_OGLES (or BUILD\_OGLES2) to your project and this may fix it.

---

<div class="post-metadata">

**Author:** ![astray2006](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@astray2006](https://forums.imgtec.com/u/astray2006)\
**Post date:** [May 7, 2010, 10:41am UTC](https://forums.imgtec.com/t/xcode-build-error/687/3 "2010-05-07T10:41:04Z")

</div>

thanks!! i will try it
