After enabling the log i am getting following error message:
target thumb C++: libpvlogger <= external/opencore//oscl/pvlogger/src/
pvlogger.cpp
In file included from bionic/libc/include/stdint.h:31,
from bionic/libc/include/dirent.h:31,
from external/opencore/oscl/oscl/config/linux_nj/
osclconfig.h:35,
from out/target/product/generic/obj/include/libpv/
oscl_base.h:38,
from external/opencore//oscl/pvlogger/src/pvlogger.h:
30,
from external/opencore//oscl/pvlogger/src/
pvlogger.cpp:18:
/root/bin/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../lib/gcc/
arm-eabi/4.2.1/include/stddef.h:152: error: expected constructor,
destructor, or type conversion before 'typedef'
In file included from external/opencore/oscl/oscl/config/linux_nj/
osclconfig_unix_nj.h:45,
from external/opencore/oscl/oscl/config/linux_nj/
osclconfig.h:53,
from out/target/product/generic/obj/include/libpv/
oscl_base.h:38,
from external/opencore//oscl/pvlogger/src/pvlogger.h:
30,
from external/opencore//oscl/pvlogger/src/
pvlogger.cpp:18:
bionic/libc/include/unistd.h:161: warning: 'sbrk' initialized and
declared 'extern'
bionic/libc/include/unistd.h:161: error: 'ptrdiff_t' was not declared
in this scope
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/
libpvlogger_intermediates/src/pvlogger.o] Error 1
I missed something?
Please help me.
Thanks in advance,
Yogi
On Dec 8, 7:04 am, freepine <
freep...@gmail.com> wrote:
> You can turn on the code in /opencore/android/thread_init.cpp (about line
> 94~103) to enable android log appender. And updating the marco of
> PVLOGGER_INST_LEVEL to 5 in external/opencore/oscl/pvlogger/src/pvlogger.h.
>
> Then you will see PV logs in DDMS.
>
> If you intends to use gdb, you will need to attach to the independent media
> server process -- a different process than your app.
>