Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
24 Views

how to refer in the cmakelists for android

Jump to solution

 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

Accepted Solutions
Highlighted
Employee
24 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

0 Kudos
2 Replies
Highlighted
Employee
25 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

0 Kudos
Highlighted
Beginner
24 Views

Hi,Nikita,

thanks for your reply.

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

 

0 Kudos