En construisant le Vsomeip pour android ci-dessous erreur vu? Aidez-moi à résoudre l'erreur

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

J'utilise la chaîne d'outils android NDK pour construire le 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) 

Inclure les chemins dans 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) 

Erreur vue:

/home/someip/vsomeip/implementation/utility/src/utility.cpp: In static member function 'static bool vsomeip::utility::auto_configuration_init(const std::shared_ptr&)':
/home/someip/vsomeip/implementation/utility/src/utility.cpp:224:64: error: 'shm_open' was not declared in this scope
             static_cast(_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&)':
/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 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&, 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_)) {
                                                                            ^ 

Pouvez-vous me guider pour résoudre ces errors ?

Merci d'avance

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 Ariana Grande

​Thank U, Next flac

Ariana Grande. 2018. Writer: Crazy Mike;Scootie;Victoria Monét;Tayla Parx;TBHits;Ariana Grande.
3 Imagine Dragons

Bad Liar flac

Imagine Dragons. 2018. Writer: Jorgen Odegard;Daniel Platzman;Ben McKee;Wayne Sermon;Aja Volkman;Dan Reynolds.
4 Clean Bandit

Baby flac

Clean Bandit. 2018. Writer: Jack Patterson;Kamille;Jason Evigan;Matthew Knott;Marina;Luis Fonsi.
5 Backstreet Boys

Chances flac

Backstreet Boys. 2018.
6 BTS

Waste It On Me flac

BTS. 2018. Writer: Steve Aoki;Jeff Halavacs;Ryan Ogren;Michael Gazzo;Nate Cyphert;Sean Foreman;RM.
7 Fitz And The Tantrums

HandClap flac

Fitz And The Tantrums. 2017. Writer: Fitz And The Tantrums;Eric Frederic;Sam Hollander.
8 BlackPink

Kiss And Make Up flac

BlackPink. 2018. Writer: Soke;Kny Factory;Billboard;Chelcee Grimes;Teddy Park;Marc Vincent;Dua Lipa.
9 Lady Gaga

I'll Never Love Again flac

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

Close To Me flac

Diplo. 2018. Writer: Ellie Goulding;Savan Kotecha;Peter Svensson;Ilya;Swae Lee;Diplo.
11 Halsey

Without Me flac

Halsey. 2018. Writer: Halsey;Delacey;Louis Bell;Amy Allen;Justin Timberlake;Timbaland;Scott Storch.
12 Imagine Dragons

Machine flac

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

The Cure flac

Little Mix. 2018. Writer: Pete Kelleher;Camille Purcell;Tom Barnes;Ben Kohn.
14 Bradley Cooper

Always Remember Us This Way flac

Bradley Cooper. 2018. Writer: Lady Gaga;Dave Cobb.
15 Calum Scott

No Matter What flac

Calum Scott. 2018. Writer: Toby Gad;Calum Scott.
16 Frida Sundemo

Apologize flac

Frida Sundemo. 2018.
17 Little Mix

Woman Like Me flac

Little Mix. 2018. Writer: Nicki Minaj;Steve Mac;Ed Sheeran;Jess Glynne.
18 Kelly Clarkson

Never Enough flac

Kelly Clarkson. 2018. Writer: Benj Pasek;Justin Paul.
19 Ashley Tisdale

Voices In My Head flac

Ashley Tisdale. 2018. Writer: John Feldmann;Ashley Tisdale.
20 Haley Reinhart

Something Strange flac

Haley Reinhart. 2018.

Related questions

Hot questions

Language

Popular Tags