New issue
Advanced search Search tips
Starred by 3 users
Status: WontFix
Owner: ----
Closed: Jan 2012
NextAction: ----
OS: ----
Pri: ----
Type: Bug



Sign in to add a comment
error: 'cpu_set_t' was not declared in this scope
Reported by paulmdem...@gmail.com, Jan 13 2012 Back to list
When trying to build the AndroidTest.

Here is my console log:

$ C:/Android/android-ndk/ndk-build
Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
Gdbserver      : [x86-4.4.3] libs/x86/gdbserver
Gdbsetup       : libs/x86/gdb.setup
Compile++ arm    : webrtc_system_wrappers <= map.cc
Compile++ arm    : webrtc_system_wrappers <= rw_lock_generic.cc
Compile++ arm    : webrtc_system_wrappers <= sort.cc
Compile++ arm    : webrtc_system_wrappers <= aligned_malloc.cc
Compile++ arm    : webrtc_system_wrappers <= atomic32.cc
Compile++ arm    : webrtc_system_wrappers <= condition_variable.cc
Compile++ arm    : webrtc_system_wrappers <= cpu_no_op.cc
Compile++ arm    : webrtc_system_wrappers <= cpu_features.cc
Compile arm    : webrtc_system_wrappers <= cpu_features_arm.c
Compile++ arm    : webrtc_system_wrappers <= cpu_info.cc
Compile++ arm    : webrtc_system_wrappers <= critical_section.cc
Compile++ arm    : webrtc_system_wrappers <= event.cc
Compile++ arm    : webrtc_system_wrappers <= file_impl.cc
Compile++ arm    : webrtc_system_wrappers <= list_no_stl.cc
Compile++ arm    : webrtc_system_wrappers <= rw_lock.cc
Compile++ arm    : webrtc_system_wrappers <= thread.cc
Compile++ arm    : webrtc_system_wrappers <= trace_impl.cc
Compile++ arm    : webrtc_system_wrappers <= condition_variable_posix.cc
Compile++ arm    : webrtc_system_wrappers <= cpu_linux.cc
Compile++ arm    : webrtc_system_wrappers <= critical_section_posix.cc
Compile++ arm    : webrtc_system_wrappers <= event_posix.cc
Compile++ arm    : webrtc_system_wrappers <= thread_posix.cc
C:/Users/Paul/Desktop/workspace/SampleNdk1/jni/src/voice_engine/main/test/android/android_test/jni/../../../../../../../sr
c/system_wrappers/source/thread_posix.cc: In member function 'virtual bool webrtc::ThreadPosix::SetAffinity(const int*, un
signed int)':
C:/Users/Paul/Desktop/workspace/SampleNdk1/jni/src/voice_engine/main/test/android/android_test/jni/../../../../../../../sr
c/system_wrappers/source/thread_posix.cc:202: error: 'cpu_set_t' was not declared in this scope
C:/Users/Paul/Desktop/workspace/SampleNdk1/jni/src/voice_engine/main/test/android/android_test/jni/../../../../../../../sr
c/system_wrappers/source/thread_posix.cc:202: error: expected ';' before 'mask'
C:/Users/Paul/Desktop/workspace/SampleNdk1/jni/src/voice_engine/main/test/android/android_test/jni/../../../../../../../sr
c/system_wrappers/source/thread_posix.cc:203: error: 'mask' was not declared in this scope
C:/Users/Paul/Desktop/workspace/SampleNdk1/jni/src/voice_engine/main/test/android/android_test/jni/../../../../../../../sr
c/system_wrappers/source/thread_posix.cc:203: error: 'CPU_ZERO' was not declared in this scope
C:/Users/Paul/Desktop/workspace/SampleNdk1/jni/src/voice_engine/main/test/android/android_test/jni/../../../../../../../sr
c/system_wrappers/source/thread_posix.cc:208: error: 'CPU_SET' was not declared in this scope
/cygdrive/c/Android/android-ndk/build/core/build-binary.mk:220: recipe for target `/cygdrive/c/Users/Paul/Desktop/workspac
e/SampleNdk1/jni/src/voice_engine/main/test/android/android_test/obj/local/armeabi/objs-debug/webrtc_system_wrappers/threa
d_posix.o' failed
make: *** [/cygdrive/c/Users/Paul/Desktop/workspace/SampleNdk1/jni/src/voice_engine/main/test/android/android_test/obj/loc
al/armeabi/objs-debug/webrtc_system_wrappers/thread_posix.o] Error 1

 
Comment 1 Deleted
cpu_set_t is not defined in the "sched.h" of the android-ndk. Edited the compiler's ifdef in thread_posix.cc to avoid the variable, and set mark to int 0.
Project Member Comment 3 by niklas.enbom@webrtc.org, Jan 13 2012
Status: WontFix
Android build not supported, closing.
Project Member Comment 4 by kjellander@webrtc.org, Oct 6 2016
Labels: Type-Bug
Sign in to add a comment