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

Android Studio Build Error #1054

Open
lorenbrichter opened this issue Mar 11, 2024 · 0 comments
Open

Android Studio Build Error #1054

lorenbrichter opened this issue Mar 11, 2024 · 0 comments

Comments

@lorenbrichter
Copy link

When following the instructions in BUILDING under Android Studio Project Integration (https://github.com/google/draco/blob/main/BUILDING.md#android-studio-project-integration)

...I noticed two issues.

  1. The include_directories line should read include_directories("${CMAKE_BINARY_DIR}" /path/to/draco/src) (with /src at the end) otherwise the include paths seem to be wrong.

  2. More critically, adding draco to target_link_libraries seems to result in an error ld: error: unable to find library -ldraco

It looks like this:

target_link_libraries( ${CMAKE_PROJECT_NAME} android draco log GLESv2 )

ld: error: unable to find library -ldraco

Any ideas how to get this to build from within Android Studio? (Mixed Kotlin/C++ project)

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

1 participant