While building the Vsomeip for android below error seen ? Help me to resolve the error -
i using android ndk toolchain building vsomeip:
arm-toolchain.cmake
set(cmake_system_name linux) set(cmake_system_version 1) set(cmake_system_processor arm) set(cmake_c_compiler arm-linux-androideabi-gcc) set(cmake_cxx_compiler arm-linux-androideabi-g++) set (cmake_c_flags "${cmake_c_flags} --sysroot=/home/arr7kor/someip/android-ndk-r10e/platforms/android-19/arch-arm" cache string "" force) set (cmake_cxx_flags "${cmake_cxx_flags} --sysroot=/home/arr7kor/someip/android-ndk-r10e/platforms/android-19/arch-arm" cache string "" force) set(cmake_find_root_path_mode_program never) set(cmake_find_root_path_mode_library only) set(cmake_find_root_path_mode_include only) include paths in cmakelists.txt:
include_directories(/home/someip/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.6/include) include_directories(/home/someip/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/include) include_directories(/home/someip/android-ndk-r10e/platforms/android-19/arch-arm/usr/include) error seen:
/home/someip/vsomeip/implementation/utility/src/utility.cpp: in static member function 'static bool vsomeip::utility::auto_configuration_init(const std::shared_ptr<vsomeip::configuration>&)': /home/someip/vsomeip/implementation/utility/src/utility.cpp:224:64: error: 'shm_open' not declared in scope static_cast<mode_t>(_config->get_permissions_shm())); ^ /home/someip/vsomeip/implementation/utility/src/utility.cpp:249:66: error: 'pthread_mutex_robust' not declared in scope ret = pthread_mutexattr_setrobust(&attr, pthread_mutex_robust); ^ /home/someip/vsomeip/implementation/utility/src/utility.cpp:249:86: error: 'pthread_mutexattr_setrobust' not declared in scope ret = pthread_mutexattr_setrobust(&attr, pthread_mutex_robust); ^ /home/someip/vsomeip/implementation/utility/src/utility.cpp:332:96: error: 'pthread_mutex_consistent' not declared in scope if (0 != pthread_mutex_consistent(&the_configuration_data__->mutex_)) { ^ /home/someip/vsomeip/implementation/utility/src/utility.cpp: in static member function 'static void vsomeip::utility::auto_configuration_exit(vsomeip::client_t, const std::shared_ptr<vsomeip::configuration>&)': /home/someip/vsomeip/implementation/utility/src/utility.cpp:396:70: error: 'shm_unlink' not declared in scope shm_unlink(utility::get_shm_name(_config).c_str()); ^ /home/someip/vsomeip/implementation/utility/src/utility.cpp: in static member function 'static std::set<short unsigned int> vsomeip::utility::get_used_client_ids()': /home/someip/vsomeip/implementation/utility/src/utility.cpp:443:80: error: 'pthread_mutex_consistent' not declared in scope if (0 != pthread_mutex_consistent(&the_configuration_data__->mutex_)) { ^ /home/someip/vsomeip/implementation/utility/src/utility.cpp: in static member function 'static vsomeip::client_t vsomeip::utility::request_client_id(const std::shared_ptr<vsomeip::configuration>&, const string&, vsomeip::client_t)': /home/someip/vsomeip/implementation/utility/src/utility.cpp:479:80: error: 'pthread_mutex_consistent' not declared in scope if (0 != pthread_mutex_consistent(&the_configuration_data__->mutex_)) { ^ /home/someip/vsomeip/implementation/utility/src/utility.cpp: in static member function 'static void vsomeip::utility::release_client_id(vsomeip::client_t)': /home/someip/vsomeip/implementation/utility/src/utility.cpp:622:80: error: 'pthread_mutex_consistent' not declared in scope if (0 != pthread_mutex_consistent(&the_configuration_data__->mutex_)) { ^ /home/someip/vsomeip/implementation/utility/src/utility.cpp: in static member function 'static bool vsomeip::utility::is_routing_manager_host(vsomeip::client_t)': /home/someip/vsomeip/implementation/utility/src/utility.cpp:661:76: error: 'pthread_mutex_consistent' not declared in scope if (0 != pthread_mutex_consistent(&the_configuration_data__->mutex_)) { ^ /home/someip/vsomeip/implementation/utility/src/utility.cpp: in static member function 'static void vsomeip::utility::set_routing_manager_host(vsomeip::client_t)': /home/someip/vsomeip/implementation/utility/src/utility.cpp:690:76: error: 'pthread_mutex_consistent' not declared in scope if (0 != pthread_mutex_consistent(&the_configuration_data__->mutex_)) { ^ can please guide me resolve errors ?
thanks in advance
Comments
Post a Comment