Imgui_Android icon indicating copy to clipboard operation
Imgui_Android copied to clipboard

Build failure

Open kewp opened this issue 7 years ago • 5 comments

I'm getting a build failure. See the log below. I installed SDL2 on Ubuntu.

build.txt

kewp avatar Aug 21 '18 13:08 kewp

Hey @kewp, thanks for the report!

The errors you are getting seem pretty strange - those PFNGL* types should be described in your NDK's GLES3/gl3.h header. Then again, seeing as this errors out for mips64, maybe NDK is broken for that ABI? Seems like there's no support for MIPS targets in recent NDKs.

What is your NDK version? Could you try re-running the build with r15 or r16? Then again, I should probably update the repository.

Oh, and you shouldn't need SDL2 to build this project for Android - it is built from source and is included in the repository as a submodule.

sfalexrog avatar Aug 21 '18 17:08 sfalexrog

Hey @sfalexrog . No worries. Thanks for putting the code up.

I'm not at my work machine right now. Busy running it on my home computer (Windows). Will let you know.

kewp avatar Aug 21 '18 18:08 kewp

Getting CMAKE errors... Not sure how to debug them. Once I'm back at work I'll try re-running the build with r15/r16

kewp avatar Aug 21 '18 19:08 kewp

Working fine on Windows now.

kewp avatar Aug 21 '18 19:08 kewp

@kewp, cmake errors could be caused by an older gradle plugin requesting unsupported ABIs (armeabi, mips and mips64 were removed from NDK starting from r17). You could try building only for a specific set of ABIs by modifying externalNativeBuild section of ImguiDemoSdl/build.gradle (lines 13-19) to read

        externalNativeBuild {
             cmake {
                 cppFlags "-std=c++11"
                 targets "demo"
+                abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a', 'x86_64'
             }
         }

I'll try to update the repo to match current versions of the libraries soon.

sfalexrog avatar Aug 21 '18 20:08 sfalexrog