google / google/draco

Android Studio Build Error

Open
#1,054 1 comment 0 reactions 0 assignees View on GitHub
bug cmake
Dominant language
C++
Stars
7.5k
Forks
1.1k
Avg merge
47m
Merged PRs (30d)
1

Description

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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.