Compiling irrlicht ogl-es branch for iphone (progress)
Posted: Sat Jun 20, 2009 2:09 am
Hello everyone im trying to get the ogl-es branch compiling for iphone i have gotten pretty far and ill explain each step taken to get were im at but im stuck on two errors ill explain up to the errors.
1. Create a new basic iphone project in xcode. (Window-Based application)
2. Add the irrlicht source and include folder to your project
3. Open the irrCompileConfig.h in the include folder and go to line 75.
copyand anywere out of that #if statement
4. When you get a error stating irrType.h not found go to that file and change <irrType.h> to "irrType.h". (i dont remember what file)
5. Go to CIrrDeviceIPhone.cpp and go to line267 and delete namespace base{ and find the corrisponding }. do not delete the code inside it just the encapsulation.
6.Click Project->ActiveTarget and add the opengl and opengles frameworks.
7. Download libpng, libjpeg, and libzlib. Compile them and copy libjpeg.a, libz.a,libpng.dylib to your project.
8. Your at the errors im at now.
I do not know how to solve the errors im at hopefully someone who has gotten it to compile knows the solution.
Ive gotten this far any suggestions?
1. Create a new basic iphone project in xcode. (Window-Based application)
2. Add the irrlicht source and include folder to your project
3. Open the irrCompileConfig.h in the include folder and go to line 75.
copy
Code: Select all
#define _IRR_IPHONE_PLATFORM_
Code: Select all
#define _IRR_USE_IPHONE_DEVICE
4. When you get a error stating irrType.h not found go to that file and change <irrType.h> to "irrType.h". (i dont remember what file)
5. Go to CIrrDeviceIPhone.cpp and go to line267 and delete namespace base{ and find the corrisponding }. do not delete the code inside it just the encapsulation.
6.Click Project->ActiveTarget and add the opengl and opengles frameworks.
7. Download libpng, libjpeg, and libzlib. Compile them and copy libjpeg.a, libz.a,libpng.dylib to your project.
8. Your at the errors im at now.
I do not know how to solve the errors im at hopefully someone who has gotten it to compile knows the solution.
Code: Select all
".objc_class_name_CAEAGLLayer", refrenced from: literal-pointer@__OBJC@__cls_refs@CAEAGLLayer in CIrrDeviceIPhone-DC9863AF.o
"_createDeviceEx", refrenced from: _createDevice in Irrlicht.o symobls not found collect2:ld returned 1 exit status