Mens du bygger Vsomeip for android nedenfor fejl set? Hjælp mig med at løse fejlen

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

Jeg bruger android NDK toolchain til at opbygge 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) 

Inkluder stier i 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) 

Fejl set:

/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_)) {
                                                                            ^ 

Kan du venligst lede mig til at løse disse errors ?

Tak på forhånd

No Answers Yet


HighResolutionMusic.com - Download Hi-Res Songs

1 The Chainsmokers

Beach House flac

The Chainsmokers. 2018. Writer: Andrew Taggart.
2 (G)I-DLE

POP/STARS flac

(G)I-DLE. 2018. Writer: Riot Music Team;Harloe.
3 Anne-Marie

Rewrite The Stars flac

Anne-Marie. 2018. Writer: Benj Pasek;Justin Paul.
4 Ariana Grande

​Thank U, Next flac

Ariana Grande. 2018. Writer: Crazy Mike;Scootie;Victoria Monét;Tayla Parx;TBHits;Ariana Grande.
5 Clean Bandit

Baby flac

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

Waste It On Me flac

BTS. 2018. Writer: Steve Aoki;Jeff Halavacs;Ryan Ogren;Michael Gazzo;Nate Cyphert;Sean Foreman;RM.
7 Imagine Dragons

Bad Liar flac

Imagine Dragons. 2018. Writer: Jorgen Odegard;Daniel Platzman;Ben McKee;Wayne Sermon;Aja Volkman;Dan Reynolds.
8 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.
9 Brooks

Limbo flac

Brooks. 2018.
10 BlackPink

Kiss And Make Up flac

BlackPink. 2018. Writer: Soke;Kny Factory;Billboard;Chelcee Grimes;Teddy Park;Marc Vincent;Dua Lipa.
11 Diplo

Close To Me flac

Diplo. 2018. Writer: Ellie Goulding;Savan Kotecha;Peter Svensson;Ilya;Swae Lee;Diplo.
12 Rita Ora

Velvet Rope flac

Rita Ora. 2018.
13 Fitz And The Tantrums

HandClap flac

Fitz And The Tantrums. 2017. Writer: Fitz And The Tantrums;Eric Frederic;Sam Hollander.
14 Little Mix

Woman Like Me flac

Little Mix. 2018. Writer: Nicki Minaj;Steve Mac;Ed Sheeran;Jess Glynne.
15 Billie Eilish

When The Party's Over flac

Billie Eilish. 2018. Writer: Billie Eilish;FINNEAS.
16 K-391

Mystery flac

K-391. 2018.
17 Cher Lloyd

None Of My Business flac

Cher Lloyd. 2018. Writer: ​iamBADDLUCK;Alexsej Vlasenko;Kate Morgan;Henrik Meinke;Jonas Kalisch;Jeremy Chacon.
18 Backstreet Boys

Chances flac

Backstreet Boys. 2018.
19 Lil Pump

Arms Around You flac

Lil Pump. 2018. Writer: Rio Santana;Lil Pump;Edgar Barrera;Mally Mall;Jon Fx;Skrillex;Maluma;Swae Lee;XXXTENTACION.
20 Kelly Clarkson

Never Enough flac

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

Related questions

Hot questions

Language

Popular Tags