Compilation problem on Win32


#1

In recent days, the time to setup the Android development environment (a hell), I finally managed to compile a simple project. This project is empty, just a MainComponent that does nothing. (export android by Introjucer link mode: Amalgamated)

It seems that the compilation completes successfully (jdk, sdk, ndk and all 'dk’s seem ok). But when generating links the compilation fails:

/cygdrive/c/android/android-ndk-r6b/ndk-build Compile++ thumb : juce_jni <= main.cpp Compile++ thumb : juce_jni <= MainComponent.cpp Compile++ thumb : juce_jni <= MainWindow.cpp Compile++ thumb : juce_jni <= JuceLibraryCode.cpp SharedLibrary : libjuce_jni.so C:/android/projets/builds/android/obj/local/armeabi/objs/juce_jni/../../../JuceLibraryCode/JuceLibraryCode..o:(.bss+0x754): multiple definition of '__dso_handle' C:/android/android-ndk-r6b/platforms/android-9/arch-arm/usr/lib/crtbegin_so.o:(.bss+0x0): first defined here collect2: ld return 1 exist status make: *** [/cygdrive/c/android/projets/builds/android/obj/local/armeabi/libjuce_jni.so] Erreur 1

Does anyone have encountered this problem? I hope that a solution exists given that the compilation by cygwin is a priori not at all recommended by jules?

A big thank you in advance.


#2

You should avoid the amalgamated builds when compiling for ARM - there lots of internal compiler errors because of the large file size. The modules branch is best for that, due to it using a greater number of smaller compile units.


#3

Ok jules and thank you. I will change that right now, but read that link please, it’s maybe similar from that problem ?

http://code.google.com/p/android/issues/detail?id=19908


#4

Yeah, that does look like the same problem! I’ve actually not yet updated to NDK6b yet so hadn’t noticed.


#5

In addition, the Juce Demo compilation report the same error here. I confess that it is beyond my poor skills :slight_smile:

Maybe, if I understand, I need to downgrade to NDK r6 ?


#6

Ok, there’s no more problem with the r6 ! :smiley:


#7

Jules,

I’m back with a little question about the supported versions of Android.

The JuceDemo run with no problem in emulator when release in 2.3.x (Level-9 “Gingerbread”) but crash on my droid (Optimus Black in 2.2 Level-8 “Froyo”). And when I change the target to 2.2 in eclipse the compilation stop to :

Compile++ thumb : juce_jni <= JuceLibraryCode4.cpp In file included from C:/android/juce/extras/JuceDemo/Builds/Android/jni/../../../JuceLibraryCode/../../../amalgamation/../src/native/android/juce_android_NativeCode.cpp:99, from C:/android/juce/extras/JuceDemo/Builds/Android/jni/../../../JuceLibraryCode/../../../amalgamation/juce_amalgamated_template.cpp:424, from C:/android/juce/extras/JuceDemo/Builds/Android/jni/../../../JuceLibraryCode/../../../amalgamation/juce_amalgamated4.cpp:32, from C:/android/juce/extras/JuceDemo/Builds/Android/jni/../../../JuceLibraryCode/JuceLibraryCode4.cpp:15: C:/android/juce/extras/JuceDemo/Builds/Android/jni/../../../JuceLibraryCode/../../../amalgamation/../src/native/android/juce_android_SystemStats.cpp: In static member function 'static int juce::SystemStats::getMemorySizeInMegabytes()': C:/android/juce/extras/JuceDemo/Builds/Android/jni/../../../JuceLibraryCode/../../../amalgamation/../src/native/android/juce_android_SystemStats.cpp:296: error: no matching function for call to 'sysinfo::sysinfo(sysinfo*)' C:/Android/android-ndk-r6/platforms/android-8/arch-arm/usr/include/linux/kernel.h:16: note: candidates are: sysinfo::sysinfo() C:/Android/android-ndk-r6/platforms/android-8/arch-arm/usr/include/linux/kernel.h:16: note: sysinfo::sysinfo(const sysinfo&) make: *** [/cygdrive/c/android/juce/extras/JuceDemo/Builds/Android/obj/local/armeabi/objs/juce_jni/../../../JuceLibraryCode/JuceLibraryCode4..o] Erreur 1

I’m sad because 2.2 stay always the major used platform : http://developer.android.com/resources/dashboard/platform-versions.html

Do you think there’s a solution to allow compilation with 2.2 target ?

Thank you very much !


#8

Yeah, I can’t remember exactly the reasons, but I think I had problems that meant I could only target 2.3 and above…


#9

Ok :cry: I’ve test to remove this error and there’s anothers problems after. So, for me the solution is to wait the update from LG (always reported) because the emulator is a piece of shit (extremely slow to start and run).


#10

(Ah, maybe I’m getting confused between 2.3 and 2.2 then…)

Is there a compile flag that would allow that code to be enabled only in a 2.3 build?

BTW how did this end up in a thread about win32 compiling!?


#11

[quote=“jules”](Ah, maybe I’m getting confused between 2.3 and 2.2 then…)

Is there a compile flag that would allow that code to be enabled only in a 2.3 build?[/quote]

I don’t know exactly what you want ? How to detect the eclipse “Projet Build Target” ? (aka the Android sdk) or something to specify the version in manifest ? ()

Do you want I open a new topic for this question ?


#12

I just wondered if there’s a macro defined that tells us which android version is active, like on other platforms. Obviously just commenting-out that block isn’t a workable solution, so it’d need to be conditionally compiled somehow, but I’ve never seen an android version macro.


#13

You’re right. In addition, i get a crash in audio demo maybe it’s interesting for you to see that :

The crash seem to be due to a record buffer overflow ?

10-12 18:06:55.076: DEBUG/dalvikvm(3296): Trying to load lib /data/data/com.juce/lib/libjuce_jni.so 0x465d8f18
10-12 18:06:55.092: DEBUG/dalvikvm(3296): Added shared lib /data/data/com.juce/lib/libjuce_jni.so 0x465d8f18
10-12 18:06:55.092: DEBUG/dalvikvm(3296): No JNI_OnLoad found in /data/data/com.juce/lib/libjuce_jni.so 0x465d8f18, skipping init
10-12 18:06:55.115: DEBUG/skia(3296): SHAPER: changerequest 1 -> 1
10-12 18:06:55.170: DEBUG/SurfaceFlinger(1718): createSurface for pid 3296 (1 x 1) name=com.juce/com.juce.JuceAppActivity
10-12 18:06:55.178: DEBUG/SurfaceFlinger(1718): removeLayer_l     name=Waiting For Debugger 
10-12 18:06:55.217: INFO/Juce(3296): Time and date: 12 Oct 2011 6:06:55pm
10-12 18:06:55.217: INFO/Juce(3296): User logon name: app_96
10-12 18:06:55.217: INFO/Juce(3296): Full user name: app_96
10-12 18:06:55.217: INFO/Juce(3296): Host name: localhost
10-12 18:06:55.217: INFO/Juce(3296): Operating system: Android 2.6.32.9
10-12 18:06:55.217: INFO/Juce(3296): Memory size: 0MB
10-12 18:06:55.217: INFO/Juce(3296): Number of CPUs: 1
10-12 18:06:55.217: INFO/Juce(3296): CPU vendor: armv7l
10-12 18:06:55.217: INFO/Juce(3296): CPU speed: 0MHz
10-12 18:06:55.217: INFO/Juce(3296): CPU has MMX: no
10-12 18:06:55.217: INFO/Juce(3296): CPU has SSE: no
10-12 18:06:55.217: INFO/Juce(3296): CPU has SSE2: no
10-12 18:06:55.217: INFO/Juce(3296): CPU has 3DNOW: no
10-12 18:06:55.217: INFO/Juce(3296): Found network card MAC addresses: 
10-12 18:06:55.217: INFO/Juce(3296): Current working directory: /
10-12 18:06:55.217: INFO/Juce(3296): Current executable file: /data/app/com.juce-1.apk
10-12 18:06:55.217: INFO/Juce(3296): Current application file: /data/app/com.juce-1.apk
10-12 18:06:55.217: INFO/Juce(3296): User home directory: /data/data/com.juce
10-12 18:06:55.217: INFO/Juce(3296): User documents directory: /data/data/com.juce
10-12 18:06:55.217: INFO/Juce(3296): User application data directory: /data/data/com.juce
10-12 18:06:55.217: INFO/Juce(3296): Common application data directory: /data/data/com.juce
10-12 18:06:55.217: INFO/Juce(3296): Temp directory: /data/data/com.juce/.temp
10-12 18:06:55.217: INFO/Juce(3296): 
10-12 18:06:55.280: DEBUG/dalvikvm(3296): GC_FOR_MALLOC freed 1019 objects / 68712 bytes in 28ms
10-12 18:06:55.287: INFO/dalvikvm-heap(3296): Grow heap (frag case) to 4.266MB for 1390096-byte allocation
10-12 18:06:55.326: DEBUG/dalvikvm(3296): GC_FOR_MALLOC freed 82 objects / 4320 bytes in 38ms
10-12 18:06:55.350: DEBUG/dalvikvm(3296): GC_EXTERNAL_ALLOC freed 51 objects / 2256 bytes in 24ms
10-12 18:06:55.405: INFO/ActivityManager(1718): Displayed activity com.juce/.JuceAppActivity: 2577 ms (total 2577 ms)
10-12 18:06:55.740: DEBUG/SurfaceFlinger(1718): removeLayer_l     name=Starting com.juce 
10-12 18:06:57.803: DEBUG/WifiHW(1718): wifi_send_command='DRIVER RSSI-APPROX'
10-12 18:06:57.803: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd RSSI-APPROX len = 4096
10-12 18:06:57.819: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd ssid rssi -48 len = 13, 13
10-12 18:06:57.819: DEBUG/WifiHW(1718): wifi_send_command='DRIVER LINKSPEED'
10-12 18:06:57.819: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd LINKSPEED len = 4096
10-12 18:06:57.819: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd LinkSpeed 54 len = 12, 12
10-12 18:06:58.819: DEBUG/StatusBarPolicy(1718): onSignalStrengthsChanged called. mSignalStrength : SignalStrength: 8 2 -1 -1 -1 -1 -1 gsm
10-12 18:06:58.819: DEBUG/StatusBarPolicy(1718): updateSignalStrength() Called. mPhoneData.icondID=17302303
10-12 18:06:59.155: ERROR/LockPatternKeyguardView(1718): showAlmostAtAccountLoginDialog()
10-12 18:06:59.155: DEBUG/KeyguardUpdateMonitor(1718): received broadcast android.intent.action.BATTERY_CHANGED
10-12 18:06:59.155: DEBUG/KeyguardUpdateMonitor(1718): handleBatteryUpdate
10-12 18:06:59.162: DEBUG/WifiService(1718): BroadcastReceiver : android.intent.action.BATTERY_CHANGED
10-12 18:06:59.170: DEBUG/WifiService(1718): ACTION_BATTERY_CHANGED pluggedType: 2
10-12 18:06:59.170: DEBUG/WifiService(1718): ### wifiShouldBeEnabled=true
10-12 18:06:59.170: DEBUG/WifiService(1718): ### mDeviceIdle=false
10-12 18:06:59.170: DEBUG/WifiService(1718): ### lockHeld=false
10-12 18:06:59.178: INFO/global(2317): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
10-12 18:06:59.358: INFO/global(2317): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
10-12 18:06:59.850: INFO/touchCheck(1718): MeNano's ACTION_DOWN - x : 49.00965, y : 116.983215
10-12 18:06:59.850: INFO/touchCheck(1718): WMS's ACTION_DOWN - x : 49.00965, y : 116.983215
10-12 18:06:59.858: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=0 x=49.00965 y=116.983215
10-12 18:06:59.998: ERROR/LockPatternKeyguardView(1718): showAlmostAtAccountLoginDialog()
10-12 18:06:59.998: DEBUG/KeyguardUpdateMonitor(1718): received broadcast android.intent.action.TIME_TICK
10-12 18:06:59.998: DEBUG/KeyguardUpdateMonitor(1718): handleTimeUpdate
10-12 18:07:00.006: DEBUG/StatusBarPolicy(1718): updateClock(), time = 18:07
10-12 18:07:00.014: INFO/touchCheck(1718): MeNano's ACTION_UP - x : 48.08494, y : 112.359375
10-12 18:07:00.014: INFO/touchCheck(1718): WMS's ACTION_UP - x : 48.08494, y : 112.359375
10-12 18:07:00.139: INFO/SH_Digital_0(2311): dateFormatOrder : 12/10/2011
10-12 18:07:00.233: DEBUG/dalvikvm(3296): GC_FOR_MALLOC freed 3722 objects / 171616 bytes in 29ms
10-12 18:07:00.428: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=1 x=48.08494 y=112.359375
10-12 18:07:00.584: INFO/touchCheck(1718): MeNano's ACTION_DOWN - x : 57.794403, y : 127.15568
10-12 18:07:00.584: INFO/touchCheck(1718): WMS's ACTION_DOWN - x : 57.794403, y : 127.15568
10-12 18:07:00.592: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=0 x=57.794403 y=127.15568
10-12 18:07:00.686: INFO/touchCheck(1718): MeNano's ACTION_UP - x : 55.482624, y : 126.69329
10-12 18:07:00.686: INFO/touchCheck(1718): WMS's ACTION_UP - x : 55.482624, y : 126.69329
10-12 18:07:00.717: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=1 x=55.482624 y=126.69329
10-12 18:07:00.819: DEBUG/WifiHW(1718): wifi_send_command='DRIVER RSSI-APPROX'
10-12 18:07:00.819: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd RSSI-APPROX len = 4096
10-12 18:07:00.834: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd ssid rssi -46 len = 13, 13
10-12 18:07:00.834: DEBUG/WifiHW(1718): wifi_send_command='DRIVER LINKSPEED'
10-12 18:07:00.834: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd LINKSPEED len = 4096
10-12 18:07:00.834: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd LinkSpeed 54 len = 12, 12
10-12 18:07:01.365: DEBUG/StatusBarPolicy(1718): onSignalStrengthsChanged called. mSignalStrength : SignalStrength: 6 3 -1 -1 -1 -1 -1 gsm
10-12 18:07:01.365: DEBUG/StatusBarPolicy(1718): updateSignalStrength() Called. mPhoneData.icondID=17302300
10-12 18:07:01.803: INFO/touchCheck(1718): MeNano's ACTION_DOWN - x : 75.826256, y : 295.9259
10-12 18:07:01.803: INFO/touchCheck(1718): WMS's ACTION_DOWN - x : 75.826256, y : 295.9259
10-12 18:07:01.811: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=0 x=75.826256 y=295.9259
10-12 18:07:01.912: INFO/touchCheck(1718): MeNano's ACTION_UP - x : 79.98745, y : 292.68924
10-12 18:07:01.920: INFO/touchCheck(1718): WMS's ACTION_UP - x : 79.98745, y : 292.68924
10-12 18:07:01.928: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=1 x=79.98745 y=292.68924
10-12 18:07:02.131: DEBUG/dalvikvm(3296): GC_FOR_MALLOC freed 6166 objects / 690808 bytes in 27ms
10-12 18:07:02.319: INFO/touchCheck(1718): MeNano's ACTION_DOWN - x : 67.50386, y : 271.41956
10-12 18:07:02.319: INFO/touchCheck(1718): WMS's ACTION_DOWN - x : 67.50386, y : 271.41956
10-12 18:07:02.326: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=0 x=67.50386 y=271.41956
10-12 18:07:02.436: INFO/touchCheck(1718): MeNano's ACTION_UP - x : 67.96622, y : 277.89294
10-12 18:07:02.436: INFO/touchCheck(1718): WMS's ACTION_UP - x : 67.96622, y : 277.89294
10-12 18:07:02.475: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=1 x=67.96622 y=277.89294
10-12 18:07:03.412: INFO/touchCheck(1718): MeNano's ACTION_DOWN - x : 52.708492, y : 105.885994
10-12 18:07:03.412: INFO/touchCheck(1718): WMS's ACTION_DOWN - x : 52.708492, y : 105.885994
10-12 18:07:03.428: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=0 x=52.708492 y=105.885994
10-12 18:07:03.553: DEBUG/dalvikvm(3296): GC_FOR_MALLOC freed 1506 objects / 103888 bytes in 28ms
10-12 18:07:03.678: INFO/touchCheck(1718): MeNano's ACTION_UP - x : 49.00965, y : 110.04745
10-12 18:07:03.678: INFO/touchCheck(1718): WMS's ACTION_UP - x : 49.00965, y : 110.04745
10-12 18:07:03.686: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=1 x=49.00965 y=110.04745
10-12 18:07:03.836: DEBUG/WifiHW(1718): wifi_send_command='DRIVER RSSI-APPROX'
10-12 18:07:03.836: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd RSSI-APPROX len = 4096
10-12 18:07:03.836: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd ssid rssi -46 len = 13, 13
10-12 18:07:03.836: DEBUG/WifiHW(1718): wifi_send_command='DRIVER LINKSPEED'
10-12 18:07:03.836: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd LINKSPEED len = 4096
10-12 18:07:03.836: DEBUG/wpa_supplicant(1798): wpa_driver_priv_driver_cmd LinkSpeed 54 len = 12, 12
10-12 18:07:03.944: DEBUG/StatusBarPolicy(1718): onSignalStrengthsChanged called. mSignalStrength : SignalStrength: 5 3 -1 -1 -1 -1 -1 gsm
10-12 18:07:03.944: DEBUG/StatusBarPolicy(1718): updateSignalStrength() Called. mPhoneData.icondID=17302300
10-12 18:07:04.506: INFO/touchCheck(1718): MeNano's ACTION_DOWN - x : 75.826256, y : 278.35535
10-12 18:07:04.506: INFO/touchCheck(1718): WMS's ACTION_DOWN - x : 75.826256, y : 278.35535
10-12 18:07:04.522: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=0 x=75.826256 y=278.35535
10-12 18:07:04.639: INFO/touchCheck(1718): MeNano's ACTION_UP - x : 75.826256, y : 281.592
10-12 18:07:04.647: INFO/touchCheck(1718): WMS's ACTION_UP - x : 75.826256, y : 281.592
10-12 18:07:04.647: INFO/touchCheck(3296): ViewRoot's Touch Event : MotionEvent{46764d70 action=1 x=75.826256 y=281.592
10-12 18:07:04.748: DEBUG/AudioPolicyManagerALSA(1626): getDeviceForStrategy() device2 0
10-12 18:07:04.748: DEBUG/AudioPolicyManagerALSA(1626): getDeviceForStrategy() device2 0
10-12 18:07:04.748: WARN/AudioHardwareALSA(1626): getInputBufferSize sampling rate: 44100, format : 1, channelCount : 2
10-12 18:07:04.756: DEBUG/AudioSystem(3296): [HARDLINE] setStreamtype in AudioSystem =3
10-12 18:07:04.756: DEBUG/AudioHardwareALSA(1626): [HARDLINE] streamType =3
10-12 18:07:04.756: DEBUG/Omap3ALSA(1626): [s_open] devName=default
10-12 18:07:04.756: DEBUG/ALSAControl(1626): [LUCKYJUN77] getVoIPCallState : 0
10-12 18:07:04.967: DEBUG/ALSAControl(1626): [LUCKYJUN77] getVoIPCallState : 0
10-12 18:07:04.967: DEBUG/Omap3ALSA(1626): [JIWON] >>>>>>>>>>>>>>    Default (TX gain)
10-12 18:07:04.967: INFO/Omap3ALSA(1626): [s_open] Initialized ALSA CAPTURE, device default, err = 0
10-12 18:07:04.967: DEBUG/AcousticsModule(1626): Acoustics set_params stub called with 0.
10-12 18:07:04.967: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:04.967: WARN/IAudioTrack(1626): popNoise_attenu....1 : 1
10-12 18:07:04.967: DEBUG/AudioPolicyManagerALSA(1626): getDeviceForStrategy() device2 0
10-12 18:07:04.967: DEBUG/AudioPolicyManagerALSA(1626): computeVolume()...volume = 0.446684 , stream(3)
10-12 18:07:04.967: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:04.967: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:04.975: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:04.975: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:04.975: DEBUG/AudioHardwareALSA(1626): setParameters() key_input = input_source, device = 1
10-12 18:07:04.975: DEBUG/Omap3ALSA(1626): s_setInput() : input_source = 1
10-12 18:07:04.975: DEBUG/Omap3ALSA(1626): [s_route] devices 00040000 in mode 0 handle=631192 handle->devices=80f70000 handle->curDev=00040000
10-12 18:07:04.975: DEBUG/Omap3ALSA(1626): [s_route] samplerate=8000, channel=1, buffersize=2054 mode=0
10-12 18:07:04.983: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:04.983: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:04.990: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:04.990: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.006: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.006: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.014: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.014: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.022: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.022: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.037: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.037: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.045: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.045: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.053: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.053: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.069: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.069: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.076: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.076: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.084: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.084: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.100: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.100: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.108: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.108: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.115: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.115: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.131: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.131: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.139: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.139: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.147: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.147: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.162: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.162: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.170: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.170: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.178: DEBUG/ALSAControl(1626): [LUCKYJUN77] getVoIPCallState : 0
10-12 18:07:05.178: DEBUG/Omap3ALSA(1626): [JIWON] >>>>>>>>>>>>>>   Voice Recording(TX gain) g_sample_rate = 8000
10-12 18:07:05.178: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.178: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.194: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.194: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.201: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.201: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.209: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.209: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.225: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.225: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.233: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.233: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.240: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.240: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.256: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.256: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.264: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.264: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.272: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.272: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.287: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.287: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.295: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.295: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.311: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.311: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.326: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.326: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.334: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.334: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.350: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.350: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.358: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.358: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.373: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.373: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.381: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.381: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.389: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.389: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.405: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.405: WARN/IAudioTrack(1626): popNoise_attenu....1 : 0
10-12 18:07:05.412: WARN/IAudioTrack(3296): [LUCKYJUN77]popNoise_attenu
10-12 18:07:05.412: INFO/DEBUG(1618): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-12 18:07:05.412: INFO/DEBUG(1618): Build fingerprint: 'lge/lge_bprj/lgp970/lgp970:2.2.2/FRG83G/LG-P970-V11c.41FDA649:user/release-keys'
10-12 18:07:05.412: INFO/DEBUG(1618): pid: 3296, tid: 3314  >>> com.juce <<<
10-12 18:07:05.412: INFO/DEBUG(1618): at : (2011-10-12 18:07:05.000418487 UTC) 0
10-12 18:07:05.412: INFO/DEBUG(1618): signal 11 (SIGSEGV), fault addr 0000000c
10-12 18:07:05.412: INFO/DEBUG(1618):  r0 00000000  r1 afd4374c  r2 00360290  r3 0000000b
10-12 18:07:05.412: INFO/DEBUG(1618):  r4 afd42328  r5 afd437c8  r6 00004b7c  r7 00000010
10-12 18:07:05.412: INFO/DEBUG(1618):  r8 00100000  r9 a811c4ed  10 49d0c000  fp 003a13c0
10-12 18:07:05.412: INFO/DEBUG(1618):  ip afd43770  sp 49e0bcc0  lr afd103ec  pc afd0c508  cpsr 00000030
10-12 18:07:05.412: INFO/DEBUG(1618):  d0  643a64696f72646e  d1  6472656767756265
10-12 18:07:05.412: INFO/DEBUG(1618):  d2  0000000000000374  d3  4866405400000074
10-12 18:07:05.412: INFO/DEBUG(1618):  d4  0064007500410049  d5  006c0046006f0069
10-12 18:07:05.412: INFO/DEBUG(1618):  d6  00650067006e0069  d7  000010003f800000
10-12 18:07:05.412: INFO/DEBUG(1618):  d8  0000000000000000  d9  43e0000000000000
10-12 18:07:05.412: INFO/DEBUG(1618):  d10 41dfffffffc00000  d11 c3e0000000000000
10-12 18:07:05.412: INFO/DEBUG(1618):  d12 0000000000000000  d13 0000000000000000
10-12 18:07:05.412: INFO/DEBUG(1618):  d14 0000000000000000  d15 0000000000000000
10-12 18:07:05.412: INFO/DEBUG(1618):  d16 000000c14674e5c8  d17 3ff0000000000000
10-12 18:07:05.412: INFO/DEBUG(1618):  d18 3e48c28772093484  d19 bf90c68c14bcc46f
10-12 18:07:05.412: INFO/DEBUG(1618):  d20 4000000000000000  d21 3f1152fe6142af77
10-12 18:07:05.412: INFO/DEBUG(1618):  d22 bebbb7c504f41aab  d23 3fc67dae64a5e000
10-12 18:07:05.412: INFO/DEBUG(1618):  d24 3e66376972bea4d0  d25 4037000000000000
10-12 18:07:05.412: INFO/DEBUG(1618):  d26 3ff4000000000000  d27 bf90c68c14bcc46f
10-12 18:07:05.412: INFO/DEBUG(1618):  d28 bffd455b11785215  d29 3fc67dae7d686772
10-12 18:07:05.412: INFO/DEBUG(1618):  d30 3c35a5290aa07607  d31 3e48c28772000000
10-12 18:07:05.412: INFO/DEBUG(1618):  scr 20000012
10-12 18:07:05.467: INFO/DEBUG(1618):          #00  pc 0000c508  /system/lib/libc.so
10-12 18:07:05.467: INFO/DEBUG(1618):          #01  pc 0000caa4  /system/lib/libc.so
10-12 18:07:05.467: INFO/DEBUG(1618):          #02  pc 0000cb04  /system/lib/libc.so
10-12 18:07:05.467: INFO/DEBUG(1618):          #03  pc 0000cddc  /system/lib/libc.so
10-12 18:07:05.467: INFO/DEBUG(1618):          #04  pc 0001aeb0  /system/lib/libbinder.so
10-12 18:07:05.467: INFO/DEBUG(1618):          #05  pc 0001afd8  /system/lib/libbinder.so
10-12 18:07:05.467: INFO/DEBUG(1618):          #06  pc 0001b138  /system/lib/libbinder.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #07  pc 0001b176  /system/lib/libbinder.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #08  pc 0001b1a0  /system/lib/libbinder.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #09  pc 0001b1aa  /system/lib/libbinder.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #10  pc 0002b600  /system/lib/libmedia.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #11  pc 00027f22  /system/lib/libmedia.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #12  pc 000280f0  /system/lib/libmedia.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #13  pc 0001c0be  /system/lib/libutils.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #14  pc 0003409a  /system/lib/libandroid_runtime.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #15  pc 0001c554  /system/lib/libutils.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #16  pc 00010f20  /system/lib/libc.so
10-12 18:07:05.475: INFO/DEBUG(1618):          #17  pc 00010a10  /system/lib/libc.so
10-12 18:07:05.475: INFO/DEBUG(1618): code around pc:
10-12 18:07:05.475: INFO/DEBUG(1618): afd0c4e8 f203fa36 0f03f012 f002d02c f1010001 
10-12 18:07:05.475: INFO/DEBUG(1618): afd0c4f8 f0800c24 18eb0501 05c3eb0c 689068aa 
10-12 18:07:05.475: INFO/DEBUG(1618): afd0c508 c00cf8d0 f0404594 42858094 2001d106 
10-12 18:07:05.475: INFO/DEBUG(1618): afd0c518 f203fa10 0602ea26 e005600e 42b0690e 
10-12 18:07:05.475: INFO/DEBUG(1618): afd0c528 8087f0c0 60c560a8 eb0c00d8 f0400300 
10-12 18:07:05.475: INFO/DEBUG(1618): code around lr:
10-12 18:07:05.475: INFO/DEBUG(1618): afd103cc e2166903 1a000018 e5940000 e1a02004 
10-12 18:07:05.483: INFO/DEBUG(1618): afd103dc e2006a02 e1a00006 e3861001 ebfff9e1 
10-12 18:07:05.483: INFO/DEBUG(1618): afd103ec e3500000 0a00000e e3560000 e3865002 
10-12 18:07:05.483: INFO/DEBUG(1618): afd103fc 03a07080 13a07000 ea000000 ebfff9fb 
10-12 18:07:05.483: INFO/DEBUG(1618): afd1040c e1a01004 e1a00005 ebfff9e2 e1a01007 
10-12 18:07:05.483: INFO/DEBUG(1618): stack:
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bc80  49e0bca0  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bc84  00000000  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bc88  49e0bdc0  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bc8c  00000000  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bc90  00000000  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bc94  a821aad9  /system/lib/libbinder.so
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bc98  afd43904  /system/lib/libc.so
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bc9c  afd103ec  /system/lib/libc.so
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bca0  afd42328  /system/lib/libc.so
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bca4  00000054  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bca8  00000003  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcac  00000010  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcb0  00100000  [heap]
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcb4  a811c4ed  /system/lib/libutils.so
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcb8  df002777  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcbc  e3a070ad  
10-12 18:07:05.483: INFO/DEBUG(1618): #00 49e0bcc0  003602f0  [heap]
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcc4  49e0bdc0  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcc8  00000000  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bccc  afd102d0  /system/lib/libc.so
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcd0  003145d8  [heap]
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcd4  00000000  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcd8  afd4374c  /system/lib/libc.so
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcdc  003145d8  [heap]
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bce0  00000000  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bce4  afd4374c  /system/lib/libc.so
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bce8  00000010  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcec  afd0caa9  /system/lib/libc.so
10-12 18:07:05.483: INFO/DEBUG(1618): #01 49e0bcf0  00000000  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcf4  00000054  
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcf8  afd42200  /system/lib/libc.so
10-12 18:07:05.483: INFO/DEBUG(1618):     49e0bcfc  00000054  
10-12 18:07:05.490: INFO/DEBUG(1618):     49e0bd00  00000054  
10-12 18:07:05.490: INFO/DEBUG(1618):     49e0bd04  00000000  
10-12 18:07:05.490: INFO/DEBUG(1618):     49e0bd08  a8224060  /system/lib/libbinder.so
10-12 18:07:05.490: INFO/DEBUG(1618):     49e0bd0c  afd0cb09  /system/lib/libc.so
10-12 18:07:05.561: WARN/AudioFlinger(1626): RecordThread: buffer overflow
10-12 18:07:05.905: INFO/BootReceiver(1718): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
10-12 18:07:05.920: DEBUG/Omap3ALSA(1626): [s_route] devices 00000000 in mode 0 handle=631192 handle->devices=80f70000 handle->curDev=00040000
10-12 18:07:05.920: DEBUG/Omap3ALSA(1626): [s_route] samplerate=8000, channel=1, buffersize=2054 mode=0
10-12 18:07:05.920: DEBUG/Zygote(1625): Process 3296 terminated by signal (11)
10-12 18:07:05.920: DEBUG/Omap3ALSA(1626): [s_route] device==0
10-12 18:07:05.928: DEBUG/AcousticsModule(1626): Acoustics close stub called.
10-12 18:07:05.998: DEBUG/dalvikvm(1718): GC_FOR_MALLOC freed 13169 objects / 1002928 bytes in 87ms
10-12 18:07:05.998: INFO/ActivityManager(1718): Process com.juce (pid 3296) has died.

So. With or without macro this hack is not a good way.

Thank you for all.