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

does not compile a draco library for Android #241

Closed
kaizer1 opened this issue Oct 16, 2017 · 7 comments
Closed

does not compile a draco library for Android #241

kaizer1 opened this issue Oct 16, 2017 · 7 comments

Comments

@kaizer1
Copy link

kaizer1 commented Oct 16, 2017

Here's how to attach a library to my cmake:
add_subdirectory(draco-master ${CMAKE_BINARY_DIR}/draco_build)
include_directories("${CMAKE_BINARY_DIR}"/)

Here are the errors I get when compiling:

screen shot 2017-10-17 at 01 57 37

Android Studio, project API > 18
In what I was mistaken. I will be grateful for the help

@fanzhanggoogle
Copy link
Contributor

Hi, @kaizer1 what os are you using?

@kaizer1
Copy link
Author

kaizer1 commented Oct 16, 2017

Hi @fanzhanggoogle os - macOS High Sierra 10.13

@fanzhanggoogle
Copy link
Contributor

Thanks for the report. We are aware of this issue and have fixes coming. For temporary fix:

  1. Add #include "draco/compression/point_cloud/point_cloud_decoder.h" to decode.h
  2. Change "std::log2" to just "log2"
    These should make it compile. The fix will go to master soon.

Let me know if it works for you.

@kaizer1
Copy link
Author

kaizer1 commented Oct 16, 2017

I did this and did not help. And you do not have an assembled sample library for android?

@fanzhanggoogle
Copy link
Contributor

Currently we don't. If you could report your error, I might be able to help further.

@kaizer1
Copy link
Author

kaizer1 commented Oct 17, 2017

Sorry, very long compile library. It seems all works well, thank you. I made changes to what you said and now everything is ok. And such a question, if possible, I read that it is now possible to download not only the obj format file, but also the format of gltf, but nowhere can I find more information, you do not know where you can read about it more. Or download a library with this option. Thank you

@fanzhanggoogle
Copy link
Contributor

Good to know. Sorry I forgot one more thing you need to enable mesh decoding:
Add #define DRACO_MESH_COMPRESSION_SUPPORTED to decode.h.

Regarding the GLTF draco extension, it's WIP. We are working with the community to have support for various loader and exporter. You could start from the Spec here:
KhronosGroup/glTF#874

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

3 participants