While building the Vsomeip for android below error seen ? Help me to resolve the error

Kumarasamy Palanisamy 07/26/2017. 0 answers, 36 views
android android android-ndk android-ndk arm cross-compiling embedded-linux

I am using the android NDK toolchain for building the 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' was not declared in this scope
             static_cast<mode_t>(_config->get_permissions_shm()));
                                                                ^
/home/someip/vsomeip/implementation/utility/src/utility.cpp:249:66: error: 'PTHREAD_MUTEX_ROBUST' was not declared in this scope
                         ret = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);
                                                                  ^
/home/someip/vsomeip/implementation/utility/src/utility.cpp:249:86: error: 'pthread_mutexattr_setrobust' was not declared in this scope
                         ret = pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);
                                                                                      ^
/home/someip/vsomeip/implementation/utility/src/utility.cpp:332:96: error: 'pthread_mutex_consistent' was not declared in this 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' was not declared in this 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' was not declared in this 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' was not declared in this 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' was not declared in this 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' was not declared in this 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' was not declared in this scope
         if (0 != pthread_mutex_consistent(&the_configuration_data__->mutex_)) {
                                                                            ^

Can please guide me to resolve this errors ?

Thanks in Advance

No Answers Yet


HighResolutionMusic.com - Download Hi-Res Songs

1 (G)I-DLE

POP/STARS flac

(G)I-DLE. 2018. Writer: Riot Music Team;Harloe.
2 The Chainsmokers

Beach House flac

The Chainsmokers. 2018. Writer: Andrew Taggart.
3 Ariana Grande

​Thank U, Next flac

Ariana Grande. 2018. Writer: Crazy Mike;Scootie;Victoria Monét;Tayla Parx;TBHits;Ariana Grande.
4 Nicki Minaj

No Candle No Light flac

Nicki Minaj. 2018. Writer: Denisia “Blu June” Andrews;Kathryn Ostenberg;Brittany "Chi" Coney;Brian Lee;TJ Routon;Tushar Apte;ZAYN;Nicki Minaj.
5 Clean Bandit

Baby flac

Clean Bandit. 2018. Writer: Jack Patterson;Kamille;Jason Evigan;Matthew Knott;Marina;Luis Fonsi.
6 Imagine Dragons

Bad Liar flac

Imagine Dragons. 2018. Writer: Jorgen Odegard;Daniel Platzman;Ben McKee;Wayne Sermon;Aja Volkman;Dan Reynolds.
7 Halsey

Without Me flac

Halsey. 2018. Writer: Halsey;Delacey;Louis Bell;Amy Allen;Justin Timberlake;Timbaland;Scott Storch.
8 BTS

Waste It On Me flac

BTS. 2018. Writer: Steve Aoki;Jeff Halavacs;Ryan Ogren;Michael Gazzo;Nate Cyphert;Sean Foreman;RM.
9 BlackPink

Kiss And Make Up flac

BlackPink. 2018. Writer: Soke;Kny Factory;Billboard;Chelcee Grimes;Teddy Park;Marc Vincent;Dua Lipa.
10 Fitz And The Tantrums

HandClap flac

Fitz And The Tantrums. 2017. Writer: Fitz And The Tantrums;Eric Frederic;Sam Hollander.
11 Backstreet Boys

Chances flac

Backstreet Boys. 2018.
12 Kelly Clarkson

Never Enough flac

Kelly Clarkson. 2018. Writer: Benj Pasek;Justin Paul.
13 Diplo

Close To Me flac

Diplo. 2018. Writer: Ellie Goulding;Savan Kotecha;Peter Svensson;Ilya;Swae Lee;Diplo.
14 Anne-Marie

Rewrite The Stars flac

Anne-Marie. 2018. Writer: Benj Pasek;Justin Paul.
15 Little Mix

Woman Like Me flac

Little Mix. 2018. Writer: Nicki Minaj;Steve Mac;Ed Sheeran;Jess Glynne.
16 Imagine Dragons

Machine flac

Imagine Dragons. 2018. Writer: Wayne Sermon;Daniel Platzman;Dan Reynolds;Ben McKee;Alex Da Kid.
17 Little Mix

The Cure flac

Little Mix. 2018.
18 Bradley Cooper

Always Remember Us This Way flac

Bradley Cooper. 2018. Writer: Lady Gaga;Dave Cobb.
19 Rita Ora

Velvet Rope flac

Rita Ora. 2018.
20 Lady Gaga

I'll Never Love Again flac

Lady Gaga. 2018. Writer: Benjamin Rice;Lady Gaga.

Related questions

Hot questions

Language

Popular Tags