Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Fix Android plugin for release/0.10.0 #5

Closed
SolarFramework/SolARFramework
#49
@jim-bcom

Description

@jim-bcom

Unity plugin does not work on Android for release/0.10.0.

By debugging the native pipeline library in Android Studio, I fell upon an error located here:
https://github.com/SolarFramework/Sample-FiducialMarker/blob/release/0.10.0/SolARPipeline_FiducialMarker/src/PipelineFiducialMarker.cpp#L74

This returns null:

xpcf::utils::dynamic_pointer_cast<FiducialMarker>(trackable);

In this context, xpcf::utils::dynamic_pointer_cast is actually an alias for boost::dynamic_pointer_cast.

The issue android/ndk#519 mentions a problem with dynamic_pointer_cast.
It does not seem related to boost, but the errors might be fixed by updating libc++_shared.so found in the NDK.
Maybe there is a lead here (replacing boost by std in xpcf for Android and use up to date libc++_shared.so)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions