Log in or register to post comments

Compiler error when i change models

September 24, 2013 - 6:10pm #1

HI everyone,

 

I'm having trouble changing models, I went through the steps provided by when I loaded my pigie.h there was no indices so i used glDrawArray and I think I've changed all the right things but when i compile it i get this error:

 

Compile++ arm    : ImageTargets <= ImageTargets.cpp
In file included from jni/ImageTargets.cpp:33:0:
jni/pigie.h:21:0: error: unterminated #ifndef
jni/pigie.h:129271:1: error: too many initializers for 'float [16246]'
jni/pigie.h:129283:3: error: expected primary-expression before ',' token
jni/pigie.h:129283:5: error: expected primary-expression before ',' token

"                                                                                                               "

jni/pigie.h:165649:5: error: expected primary-expression before ',' token
jni/ImageTargets.cpp: In function 'void Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame(JNIEnv*, jobject)':
jni/ImageTargets.cpp:389:47: error: 'glArray' was not declared in this scope
make: *** [obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o] Error 1

 

if anyone has any suggestion of even where to start looking it would be brill

Compiler error when i change models

September 26, 2013 - 9:32am #7

HI AlessandroB

thanks for your help, turns out the when i was exproting the 3d model it wasn't exporting with normals so that was part/most of the error, the models is now appear. I just have one more question, even thoug hthe model is pretty big in the blender program when it appears on the target its is tiny,  abit bigger than a dot is this more problems with the .h file or is there something i could change in the vuforia sample

 

thanks again for all your help

Compiler error when i change models

September 25, 2013 - 8:24am #6

If your .h file has no texcoords and no normals, it may mean one of these:

- your original 3D model does not contain texture coordinates and normals (in this case, you may want to consider using another model)

- your export settings (when creating the OBJ) do not include texture coordinates and normals

 

Compiler error when i change models

September 25, 2013 - 8:13am #5

I was unable to get the pigie.obj working, i think it was to large or something but I went back and got a less complex obj but this monkey.h has no texCoords or Normals in its file, I'm really very confused by the .h files when i convert the .obj files

Compiler error when i change models

September 25, 2013 - 4:20am #4

The error 

error: expected primary-expression before ',' token

usually indicates that there is some syntax error in your C++ code (or perhaps in the pigie.h header), nothing special about that.

 

Compiler error when i change models

September 25, 2013 - 4:13am #3

Thanks AlessandroB the  "glDrawArrays' is working now but i was just wondering the massive list of

In file included from jni/ImageTargets.cpp:33:0:
jni/pigie.h:129283:3: error: expected primary-expression before ',' token

is this due to a miss use of the glDrawArrays function or is it a different problem

Compiler error when i change models

September 25, 2013 - 1:08am #2

The right function to use is glDrawArrays(), and not 'glDrawArray()'  (please note the 's' at the end of the function name);

also, make sure to check your syntax and usage of that function in the OpenGL reference guide:

http://www.khronos.org/opengles/sdk/docs/man3/xhtml/glDrawArrays.xml

 

Log in or register to post comments