You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-platform
Hi!
I just downloaded the code but the compilation seems to be failing
with pthread (see below). My system is Linux 2.6.27, gcc 4.3.2 and g++
4.1.2. Googling around a bit did not really provide for an answer
except that some people ocasionally have similar problems with pthread
but they seem to fix them with either changing their code a bit or an
order of compilation flags. However, I do not believe this is what's
happening here.
Thanks in advance,
Sergei
-----
host StaticLib: libpng (out/host/linux-x86/obj/STATIC_LIBRARIES/
libpng_intermediates/libpng.a)
ar crs out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/
libpng.a out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/
png.o out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/
pngerror.o out/host/linux-x86/obj/STATIC_LIBRARIES/
libpng_intermediates/pnggccrd.o out/host/linux-x86/obj/
STATIC_LIBRARIES/libpng_intermediates/pngget.o out/host/linux-x86/obj/
STATIC_LIBRARIES/libpng_intermediates/pngmem.o out/host/linux-x86/obj/
STATIC_LIBRARIES/libpng_intermediates/pngpread.o out/host/linux-x86/
obj/STATIC_LIBRARIES/libpng_intermediates/pngread.o out/host/linux-x86/
obj/STATIC_LIBRARIES/libpng_intermediates/pngrio.o out/host/linux-x86/
obj/STATIC_LIBRARIES/libpng_intermediates/pngrtran.o out/host/linux-
x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngrutil.o out/host/
linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngset.o out/host/
linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngtrans.o out/
host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngvcrd.o out/
host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngwio.o out/
host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngwrite.o
out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/
pngwtran.o out/host/linux-x86/obj/STATIC_LIBRARIES/
libpng_intermediates/pngwutil.o
host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/
aapt_intermediates/aapt)
out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/
libutils.a(Threads.o): In function `androidCreateRawThreadEtc':
/data/Android/frameworks/base/libs/utils/Threads.cpp:144: undefined
reference to `pthread_create'
/data/Android/frameworks/base/libs/utils/Threads.cpp:138: undefined
reference to `pthread_attr_setstacksize'
out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/
libcutils.a(threads.o): In function `thread_store_set':
/data/Android/system/core/libcutils/threads.c:36: undefined reference
to `pthread_key_create'
/data/Android/system/core/libcutils/threads.c:44: undefined reference
to `pthread_setspecific'
out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/
libcutils.a(threads.o): In function `thread_store_get':
/data/Android/system/core/libcutils/threads.c:27: undefined reference
to `pthread_getspecific'
getandroid
unread,
Nov 12, 2008, 9:24:07 AM11/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-platform
hi, it seems that u don't have pthread library in /usr/lib. Check for
libpthread.so*, if not present install it in /usr/lib. This should
solve ur problem.
douchuan
unread,
Nov 12, 2008, 8:45:23 PM11/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-...@googlegroups.com
gcc 4.3.2 is strict, I advice you to include correct header files.