Hi All
I was trying to compile something for the iphone with an addon - openCv - and had the following two errors -
glRasterPos2f - not declared in this scope
glDrawPixels - not declared in this scope
They are in ofxCvImage.cpp
is this something I could fix somehow or maybe I am asking the impossible of the SDK!
There’s a chance I may have done something peculiar in the way I added the addon - still getting the hang of that, but I think it’s right
Any suggestions gratefully received
sevenspiral
It’s a OpenGL ES issue. If you get the latest OpenCV from the svn things should work fine. We recently added a #TARGET_OPENGLES where you are getting the error.
Thanks Stefan, that sounds promising.
I have a problem though. My SVN client has worked fine with googlecode links (eg http://ofxiphone.googlecode.com/svn/trunk/) but when I am having trouble getting the right link for the openCV trunk. What should I be putting into the client? When I copy and paste the URL from the link in your reply, that doesn’t work. Can you advise? Thanks
sevenspiral
I checked that “addons/ofxOpenCv/libs/opencv/lib/arm” is in the search path, but I’m not sure what else to do. I know it’s something silly, but I can’t put my finger on it…
I had the library but only had the arm files. I just added the osx folder and it runs! I’m not too sure why that is though, shouldn’t we only need the arm files on an iPhone? Could it be because the app also needs to run in the simulator?
yeah, it probably requires them for the simulator and maybe in the default build settings it asks for both. I bet theres a way to finetune it, but, i dunno. That’s pretty weird, but at least it works and we know why!
ah how lucky screenshots can be
definitely let me know if you make anything with it! im always psyched to see iphone art projects