Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2422 Discussions

how to refer in the cmakelists for android

Fengwei__Liu
Beginner
290 Views

 i have complie the tbb for android platform arm64,

and in the build folder there are some .o .d and .so files.

then i want refer the tbb in jni,but i do not kown how to refer the files in cmakelist.

i try to only refer the libtbb.so as below:

add_library(tbb
            SHARED
            IMPORTED)
set_target_properties(tbb
                      PROPERTIES IMPORTED_LOCATION
                      C:/Users/msewi/Desktop/3rd/tbb-2018_U5/build/windows_arm64_clang_android_NDKr10e_version_android-21_release/libtbb.so)

the errors occur when i build :

C:/Users/msewi/Desktop/3rd/tbb-2018_U5/include\tbb/internal/_flow_graph_impl.h:266: error: undefined reference to 'tbb::task_group_context::is_group_execution_cancelled() const'

........

i guess only refer the libtbb.so is wrong.

0 Kudos
1 Solution
Nikita_P_Intel
Employee
290 Views

Hi Liu,

First of all, maybe it would be easier to use android binary package and then use the official CMake tutorial. Secondly, I think you missed target_link_libraries(...) command.

View solution in original post

2 Replies
Nikita_P_Intel
Employee
291 Views

Hi Liu,

First of all, maybe it would be easier to use android binary package and then use the official CMake tutorial. Secondly, I think you missed target_link_libraries(...) command.

Fengwei__Liu
Beginner
290 Views

Hi,Nikita,

thanks for your reply.

it seems that i have made a simple mistake  -_-!

 

Reply