728x90


LogFilter.exe



JAVA version은 지원하는데 MFC버전은 더이상 지원하지 않는다고 한다.

완전히 사라지기 전에 일단 백업!


atd-bundle-windows/sdk/platform-toos/

adb.exe와 같은 경로에 넣어주고 실행하면

sdk/tools/ddms.bat 를 실행했을 때 나오는 log를 함께 볼 수 있다.


이 툴은 보고 싶은 메시지와 지우고 싶은 메시지를 선택하여 볼 수 있어서 편리함.

728x90

'Programming > android' 카테고리의 다른 글

android-x86 build 도중 만난 errors  (0) 2014.07.13
android Kitkat 을 VMware에 설치해보자  (0) 2014.07.13
format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]  (0) 2013.12.19
linker.cpp error  (0) 2013.12.19
Android Version & Source tree  (0) 2013.09.13
build error  (0) 2013.07.02
bluez scan  (3) 2013.04.03
blueZ install at ubuntu 12.04  (5) 2013.04.02
linux blueZ install  (9) 2013.03.28
android 환경구축  (1) 2013.03.28
728x90

external/mesa3d/src/glsl/linker.cpp: In function ‘void assign_varying_locations(gl_shader_program*, gl_shader*, gl_shader*)’:

external/mesa3d/src/glsl/linker.cpp:1395:8: error: expected primary-expression before ‘,’ token

external/mesa3d/src/glsl/linker.cpp:1395:9: error: ‘varyings’ was not declared in this scope

external/mesa3d/src/glsl/linker.cpp:1395:17: error: ‘offsetof’ was not declared in this scope

external/mesa3d/src/glsl/linker.cpp:1398:48: error: expected primary-expression before ‘,’ token

external/mesa3d/src/glsl/linker.cpp:1415:47: error: expected primary-expression before ‘,’ token

external/mesa3d/src/glsl/linker.cpp:1415:48: error: ‘position’ was not declared in this scope

external/mesa3d/src/glsl/linker.cpp:1417:47: error: expected primary-expression before ‘,’ token

external/mesa3d/src/glsl/linker.cpp:1417:48: error: ‘pointSize’ was not declared in this scope

external/mesa3d/src/glsl/linker.cpp:1427:47: error: expected primary-expression before ‘,’ token

external/mesa3d/src/glsl/linker.cpp:1427:48: error: ‘position’ was not declared in this scope

external/mesa3d/src/glsl/linker.cpp:1431:47: error: expected primary-expression before ‘,’ token

external/mesa3d/src/glsl/linker.cpp:1431:48: error: ‘frontFacingPointCoord’ was not declared in this scope

external/mesa3d/src/glsl/linker.cpp:1434:47: error: expected primary-expression before ‘,’ token

external/mesa3d/src/glsl/linker.cpp:1434:48: error: ‘frontFacingPointCoord’ was not declared in this scope

external/mesa3d/src/glsl/linker.cpp: In function ‘void link_shaders(const gl_context*, gl_shader_program*)’:

external/mesa3d/src/glsl/linker.cpp:1737:49: error: expected primary-expression before ‘,’ token

external/mesa3d/src/glsl/linker.cpp:1737:50: error: ‘fragColor’ was not declared in this scope

external/mesa3d/src/glsl/linker.cpp:1737:59: error: ‘offsetof’ was not declared in this scope

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libMesa_intermediates/src/glsl/linker.o] Error 1


./external/mesa3d/src/glsl/linker.cpp

linker.cpp 파일에 "#include <stddef.h>" 을 추가하는 것으로 해결할 수 있다.



out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)':

/work/john/android-x86/external/llvm/lib/Support/Threading.cpp:96: undefined reference to `pthread_create'

/work/john/android-x86/external/llvm/lib/Support/Threading.cpp:91: undefined reference to `pthread_attr_setstacksize'

/work/john/android-x86/external/llvm/lib/Support/Threading.cpp:100: undefined reference to `pthread_join'

out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Mutex.o): In function `MutexImpl':

/work/john/android-x86/external/llvm/lib/Support/Mutex.cpp:69: undefined reference to `pthread_mutexattr_init'

/work/john/android-x86/external/llvm/lib/Support/Mutex.cpp:75: undefined reference to `pthread_mutexattr_settype'

/work/john/android-x86/external/llvm/lib/Support/Mutex.cpp:80: undefined reference to `pthread_mutexattr_setpshared'

/work/john/android-x86/external/llvm/lib/Support/Mutex.cpp:89: undefined reference to `pthread_mutexattr_destroy'

out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::tryacquire()':

/work/john/android-x86/external/llvm/lib/Support/Mutex.cpp:143: undefined reference to `pthread_mutex_trylock'


vi external/llvm/lib/Support/Android.mk -> add "LOCAL_C_INCLUDES += system/core/include/cutils" "LOCAL_SHARED_LIBRARIES := libcutil" at 2 positions; 

and add "#include <threads.h>" in "external/llvm/lib/Support/Mutex.cpp,Threading.cpp"




host Executable: test-librsloader (out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader)

out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Signals.o): In function `PrintStackTrace':

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Unix/Signals.inc:219: undefined reference to `dladdr'

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Unix/Signals.inc:231: undefined reference to `dladdr'

out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)':

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Threading.cpp:96: undefined reference to `pthread_create'

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Threading.cpp:91: undefined reference to `pthread_attr_setstacksize'

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Threading.cpp:100: undefined reference to `pthread_join'

out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Mutex.o): In function `MutexImpl':

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Mutex.cpp:69: undefined reference to `pthread_mutexattr_init'

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Mutex.cpp:75: undefined reference to `pthread_mutexattr_settype'

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Mutex.cpp:80: undefined reference to `pthread_mutexattr_setpshared'

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Mutex.cpp:89: undefined reference to `pthread_mutexattr_destroy'

out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::tryacquire()':

/home/yarang/a10_works/gihub/android4.0.1/external/llvm/lib/Support/Mutex.cpp:143: undefined reference to `pthread_mutex_trylock'

collect2: ld returned 1 exit status

make: *** [out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader] 오류 1


에러에 대한 처리는 -lpthread 옵션을 추가하여 pthread를 참조할 수 있도록 한다.


수정해야할 파일은 /home/yarang/a10_works/gihub/android4.0.1/external/llvm/llvm-host-build.mk 이며, 다음의 내용을 추가한다.


LOCAL_LDLIBS := -lpthread -ldl 





external/gtest/src/../include/gtest/internal/gtest-param-util.h:122:11: error: ‘ptrdiff_t’ does not name a type


external/gtest/include/gtest/internal/gtest-param-util.h

 #include <vector> 

+#include <cstddef> 

 #include <gtest/internal/gtest-port.h> 

728x90
728x90

소스코드 참고

http://people.csail.mit.edu/albert/bluez-intro/c404.html#simplescan.c



$apt-get install libbluetooth-dev

simplescan.c



$gcc -o scantest simplescan.c -lbluetooth


$bccmd -t BCSP -d /dev/ttyUSB0 psload -r ./test/csr_4841.psr


Loading PSKEY_LM_TEST_SEND_ACCEPTED_TWICE ... done

Loading PSKEY_PMALLOC_SIZES ... done

...


$hciattach -s 921600 /dev/ttyUSB0 bcsp 921600 noflow


Device setup complete


$hciconfig hci0 reset


$ ./scantest

==> 실행은 되는데 결과가 나오지 않는다.

hcidump로 확인해봐도 hci command는 정상적으로 result를 받는데 inquriy result가 없다.


blueZ를 이용한 hfp 예제를 다운받아 test해보기로 함.

nohands

http://nohands.svn.sourceforge.net/viewvc/nohands/?view=tar


$ apt-get install ed

$ sudo apt-get install autotools-dev

$ sudo apt-get install automake

$ apt-get install libspeexdsp-dev


1: In libhfp/Makefile.am:

Add "-fpermissive" to the AM_CXXFLAGX line.

Next, rerun autogen.sh


2: In include/libhfp/events.h:

Replace all references to Invoke() with this->Invoke() and RegisterDirect() with this->RegisterDirect().



$ ./configure

$ make


$ data/hfconsole

를 실행시켜 놓고 해봐도 동일한 결과

hcitool scan을 해봐도 동일


help.....



sloved : 

//PSKEY_ANA_FREQ

&01fe = 6590


이걸 psr에 추가해줘야 해결되는 문제였다.

USB로 되고 BC05로도 되는데 rom type의 chip으로 해결되지 않는 문제


728x90
728x90

$ apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 


libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev libglapi-mesa:i386
mesa관련 설치하니까 재부팅이 안된다.ㅡㅡ;

이거 지우니 됨

$ ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so


http://www.jusuchyne.com/codingforme/2012/05/installing-oracle-java-jdk-6-or-7-on-ubuntu/

$ apt-get install git

wget http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
$ ./configure; make; make install

wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tar.bz2
$ ./configure; make; make install

## download blueZ
$wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.2.tar.xz
$ tar xf bluez-5.2.tar.xz
$ cd bluez-5.2
$ ./configure

### ERROR: configure: error: GLib >= 2.28 is required
$ apt-get install libglib2.0-dev

### ERROR: configure: error: D-Bus >= 1.4 is required
$ apt-get install dbus-*dev

### ERROR: configure: error: USB library support is required
$ apt-get install libusb-dev

### ERROR: configure: error: libudev >= 143 is required
$ apt-get install libudev-dev

### ERROR: configure: error: libical is required
$ apt-get libical-dev

$./configure --disable-systemd
$ make

### ERROR: /usr/bin/ld: cannot find -lreadline
$apt-get install libreadline-dev

$ make
$ make install


728x90

+ Recent posts