Skip to content

Android Studio Build Error #1054

@lorenbrichter

Description

@lorenbrichter

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions