Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure #1

Open
kewp opened this issue Aug 21, 2018 · 5 comments
Open

Build failure #1

kewp opened this issue Aug 21, 2018 · 5 comments
Assignees

Comments

@kewp
Copy link

kewp commented Aug 21, 2018

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

build.txt

@sfalexrog sfalexrog self-assigned this Aug 21, 2018
@sfalexrog
Copy link
Owner

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.

@kewp
Copy link
Author

kewp commented Aug 21, 2018

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
Copy link
Author

kewp commented Aug 21, 2018

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
Copy link
Author

kewp commented Aug 21, 2018

Working fine on Windows now.

@sfalexrog
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants