Android 未定义引用 ANativeWindow_setBuffersTransform API
Android undefined reference to ANativeWindow_setBuffersTransform API
我在尝试使用 ANativeWindow_setBuffersTransform API 时收到以下 linking 错误。已编译的 SDK 版本为 28
undefined reference to `ANativeWindow_setBuffersTransform'
在我的 CMAKE 文件中,我 link 我的目标库 android 库
target_link_libraries( # Specifies the target library.
native-lib
android
GLESv2
EGL
realsense2
libpcl_recognition
libpcl_tracking
libpcl_registration
libpcl_stereo
libpcl_segmentation
libpcl_ml
libpcl_keypoints
libpcl_features
libpcl_2d
libpcl_surface
libpcl_io_ply
libpcl_io
libpcl_filters
libpcl_sample_consensus
libpcl_search
libpcl_octree
libpcl_kdtree
libpcl_common
libboost_date_time
libboost_filesystem
libboost_iostreams
libboost_program_options
libboost_regex
libboost_signals
libboost_system
# Links the target library to the log library
# included in the NDK.
${log-lib})
在我的源代码文件中,我包含了 header
#include <android/native_window.h>
我还可以使用其他 NativeWindow 函数,例如
ANativeWindow_lock
ANativeWindow_setBuffersGeometry
ANativeWindow_unlockAndPost
只有 ANativeWindow_setBuffersTransform 是编译器抱怨的。
有人知道吗?有没有人能够成功调用此功能并可以分享一些信息?提前致谢。
ANativeWindow_setBuffersTransform 存在于 nativewindow.so
在 CMAKE 中只需要将 nativewindow 添加到 linked 库列表,它应该编译并且 link
我在尝试使用 ANativeWindow_setBuffersTransform API 时收到以下 linking 错误。已编译的 SDK 版本为 28
undefined reference to `ANativeWindow_setBuffersTransform'
在我的 CMAKE 文件中,我 link 我的目标库 android 库
target_link_libraries( # Specifies the target library.
native-lib
android
GLESv2
EGL
realsense2
libpcl_recognition
libpcl_tracking
libpcl_registration
libpcl_stereo
libpcl_segmentation
libpcl_ml
libpcl_keypoints
libpcl_features
libpcl_2d
libpcl_surface
libpcl_io_ply
libpcl_io
libpcl_filters
libpcl_sample_consensus
libpcl_search
libpcl_octree
libpcl_kdtree
libpcl_common
libboost_date_time
libboost_filesystem
libboost_iostreams
libboost_program_options
libboost_regex
libboost_signals
libboost_system
# Links the target library to the log library
# included in the NDK.
${log-lib})
在我的源代码文件中,我包含了 header
#include <android/native_window.h>
我还可以使用其他 NativeWindow 函数,例如
ANativeWindow_lock
ANativeWindow_setBuffersGeometry
ANativeWindow_unlockAndPost
只有 ANativeWindow_setBuffersTransform 是编译器抱怨的。
有人知道吗?有没有人能够成功调用此功能并可以分享一些信息?提前致谢。
ANativeWindow_setBuffersTransform 存在于 nativewindow.so 在 CMAKE 中只需要将 nativewindow 添加到 linked 库列表,它应该编译并且 link