Error when compiling the ParticleSystem sample of PowerVR SDK_3.4 for windows

This topic contains 3 replies, has 2 voices, and was last updated by  PaulL 2 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31979

    iamjoy
    Member

    I used eclipse linked with NDK to compile ParticleSystem’s OGLES3 sample, which runs on android. To generate .so file for the project, I first created an NDK builder in eclipse, and then tried to add android native support to the project, but It crashed. I used the same method to run the HelloAPI sample and it worked correctly. How can I fix this problem?
    Thank you!

    #39491

    PaulL
    Admin

    Hi,

    Could you clarify, where was the crash, and could you provide more details of the crash?

    Thanks,
    Paul.

    #39492

    iamjoy
    Member

    Thank you for the reply!
    I configured the project again and it can be compiled this time. But when I built the project, there were errors:
    [armeabi-v7a] SharedLibrary : libOGLES3ParticleSystem.so
    jni/OGLES3ParticleSystem/../../../../../../../../Examples/Advanced/ParticleSystem/OGLES3/ParticleSystemGPU.cpp:144: error: undefined reference to ‘glMemoryBarrier’
    jni/OGLES3ParticleSystem/../../../../../../../../Examples/Advanced/ParticleSystem/OGLES3/ParticleSystemGPU.cpp:145: error: undefined reference to ‘glDispatchCompute’
    jni/OGLES3ParticleSystem/../../../../../../../../Examples/Advanced/ParticleSystem/OGLES3/ParticleSystemGPU.cpp:146: error: undefined reference to ‘glMemoryBarrier’

    How can I fix it?

    Hi,

    Could you clarify, where was the crash, and could you provide more details of the crash?

    Thanks,
    Paul.

    #39493

    PaulL
    Admin

    I’m guessing the shared library is missing the GLES3 static libraries either because: The GL libraries are loaded after your shared library; or because the linker is ignoring those symbols, because it is assuming they are unused, since they haven’t been referenced by a dynamic library that hasn’t been loaded yet.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.