VisualGDB: cannot build Android native library

Sysprogs forums Forums VisualGDB VisualGDB: cannot build Android native library

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #527
    Anonymous
    Participant

    Hello,
    I have installed VisualGDB on Microsoft Visual Studio 2008 Professional Edition. I made Android App from existing Eclipse project.
    Now I try to compile shared library, but I only see following in console:

    1>Performing Makefile project actions
    1>D:Androidandroid-ndk-r8bndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-8
    1>D:/Android/android-ndk-r8b/build/core/build-binary.mk:252: *** target pattern contains no `%’. Stop.
    1>Project : error PRJ0019: A tool returned an error code from “Performing Makefile project actions”

    Library is compiled correctly if I run “D:Androidandroid-ndk-r8bndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-8” in directory which contains AndroidManifest.xml file.

    What is wrong?

    #2296
    support
    Keymaster

    Looks like some old version of make.exe gets invoked. Could you please paste the entire build log here?

    #2293
    Anonymous
    Participant

    1>

    Build started: Project: Client, Configuration: Debug Win32

    1>Performing Makefile project actions
    1>D:Androidandroid-ndk-r8bndk-build.cmd NDK_DEBUG=1 APP_PLATFORM=android-8
    1>D:/Android/android-ndk-r8b/build/core/build-binary.mk:252: *** target pattern contains no `%’. Stop.
    1>Project : error PRJ0019: A tool returned an error code from “Performing Makefile project actions”
    1>Build log was saved at “file://z:PROJECTSmy-projectprojectsclientprojectandroidDebugBuildLog.htm”
    1>Client – 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I also have problem with debugging. I try to debug your example project, activity started ok, but VisualGDB failed to start debug session. This is what I get:

    /data/data/com.visualgdb.example.TestJni/lib/gdbserver was not found and could not be installed manually. Please try deploying it yourself.

    ADB log:
    D:Androidandroid-sdkplatform-toolsadb.exe devices
    List of devices attached
    900048c07f3d device
    Command exited with code 0
    D:Androidandroid-sdkplatform-toolsadb.exe -s 900048c07f3d shell ps
    USER PID PPID VSIZE RSS WCHAN PC NAME
    root 1 0 372 240 c03f45b4 00014dfc S /init
    root 2 0 0 0 c039ec60 00000000 S kthreadd
    root 3 2 0 0 c038f798 00000000 S ksoftirqd/0
    root 4 2 0 0 c03ba184 00000000 S watchdog/0
    root 5 2 0 0 c039b248 00000000 S events/0
    root 6 2 0 0 c039b248 00000000 S khelper
    root 12 2 0 0 c039b248 00000000 S suspend
    root 233 2 0 0 c039b248 00000000 S kblockd/0
    root 241 2 0 0 c0558308 00000000 S kseriod
    root 263 2 0 0 c039b248 00000000 S kmmcd
    root 269 2 0 0 c039b248 00000000 S bluetooth
    root 303 2 0 0 c03c701c 00000000 S pdflush
    root 304 2 0 0 c03caf48 00000000 S kswapd0
    root 306 2 0 0 c039b248 00000000 S aio/0
    root 905 2 0 0 c04cbf74 00000000 S kapmd
    root 1016 2 0 0 c039b248 00000000 S spi_gpio.3
    root 1031 2 0 0 c039b248 00000000 S fsa9480_workque
    root 1039 2 0 0 c054c22c 00000000 S usb_mass_storag
    root 1073 2 0 0 c039b248 00000000 S kondemand/0
    root 1079 2 0 0 c039b248 00000000 S gp2a_wq
    root 1116 2 0 0 c0698c24 00000000 S krfcommd
    root 1118 2 0 0 c039b248 00000000 S krxrpcd/0
    root 1130 2 0 0 c039b248 00000000 S melfas_touchkey
    root 1132 2 0 0 c0584644 00000000 S mmcqd
    root 1138 2 0 0 c0584644 00000000 S mmcqd
    root 1146 2 0 0 c039b248 00000000 S qt602240_wq
    root 1164 2 0 0 c039b248 00000000 S pmic_int_wq
    root 2150 2 0 0 bf1402c4 00000000 S multipdp
    root 2160 2 0 0 c039b248 00000000 S pvr_timer/0
    root 2176 2 0 0 bf19a6d0 00000000 D TouchSense Play
    root 2178 1 716 232 c04b9c04 afe0c76c S /system/bin/sh
    system 2181 1 780 240 c058fe50 afe0ca0c S /system/bin/servicemanager
    root 2182 1 832 368 c03f45b4 afe0cb34 S /system/bin/vold
    root 2183 1 644 220 c05bee00 afe0d3cc S /system/bin/debuggerd
    radio 2184 1 4604 512 ffffffff be971140 S /system/bin/efsd
    root 2188 1 18732 1600 ffffffff afe0cb34 S /system/bin/gpsd/glgps_samsungJupiter
    root 2189 1 10568 672 ffffffff afe0d3cc S /system/bin/drexe
    root 2190 2 0 0 c039b248 00000000 S pvr_workqueue
    root 2191 1 7436 440 c03ab90c afe0d9c4 S /system/bin/npsmobex
    root 2193 1 156772 21512 c03f45b4 afe0cb34 S zygote
    media 2194 1 63920 3732 ffffffff afe0ca0c S /system/bin/mediaserver
    bluetooth 2195 1 1084 292 c03f45b4 bea68ce8 S /system/bin/dbus-daemon
    root 2197 1 784 316 c064e3dc afe0c76c S /system/bin/installd
    compass 2198 1 6448 584 ffffffff afe0ca0c S /system/bin/sensorserver_yamaha
    keystore 2199 1 1616 252 c05bee00 afe0d3cc S /system/bin/keystore
    root 2203 1 17740 1236 ffffffff afe0ca0c S /system/bin/wlp2pservice
    root 2204 1 296 48 c05bee00 0000a334 S /system/bin/immvbsd
    root 2205 1 320 96 c03f45b4 be837504 S /system/bin/immvibed
    system 2210 1 17268 1236 ffffffff afe0ca0c S /system/bin/tvoutserver
    shell 2213 1 3376 160 ffffffff 0000f444 S /sbin/adbd
    radio 2247 1 12584 1348 ffffffff beb3fc58 S /system/bin/rild
    system 2252 2193 360300 57596 ffffffff afe0ca0c S system_server
    root 2302 2 0 0 c03a3578 00000000 S iscan_sysioc
    root 2303 2 0 0 c03a3578 00000000 S dhcp_sysioc
    root 2304 2 0 0 c03a3578 00000000 S dhd_watchdog
    root 2305 2 0 0 c03a3578 00000000 S dhd_dpc
    root 2306 2 0 0 c03a3578 00000000 S dhd_sysioc
    wifi 2309 1 2012 736 c03f45b4 afe0cb34 S /system/bin/wpa_supplicant
    app_4 2319 2193 212708 20228 ffffffff afe0d9c4 S android.process.media
    app_9 2325 2193 240620 27904 ffffffff afe0d9c4 S com.samsung.sec.android.inputmethod.axt9
    radio 2328 2193 230688 21952 ffffffff afe0d9c4 S com.android.phone
    app_5 2333 2193 231852 25852 ffffffff afe0d9c4 S com.sec.android.app.twlauncher
    app_10 2339 2193 253368 22844 ffffffff afe0d9c4 S com.google.process.gapps
    app_1 2377 2193 214004 17936 ffffffff afe0d9c4 S com.sec.android.provider.badge
    app_47 2395 2193 208964 18208 ffffffff afe0d9c4 S com.sec.android.providers.downloads
    app_64 2410 2193 212968 17860 ffffffff afe0d9c4 S com.google.android.apps.uploader
    app_97 2428 2193 211660 18892 ffffffff afe0d9c4 S com.sec.spp.push
    app_103 2438 2193 209792 17940 ffffffff afe0d9c4 S com.sec.android.app.secad
    system 2450 2193 225868 18484 ffffffff afe0d9c4 S com.android.settings
    app_5 2462 2193 224068 21300 ffffffff afe0d9c4 S android.process.acore
    app_53 2465 2193 210180 18300 ffffffff afe0d9c4 S com.sec.android.app.samsungapps.una
    app_104 2483 2193 213356 18076 ffffffff afe0d9c4 S com.estrongs.android.taskmanager
    system 2501 2193 212020 17128 ffffffff afe0d9c4 S com.sec.android.app.servicemodeapp
    app_5 2508 2193 211880 17680 ffffffff afe0d9c4 S com.sec.android.provider.logsprovider
    app_4 2514 2193 210812 17344 ffffffff afe0d9c4 S com.sec.android.providers.drm
    app_8 2527 2193 211804 17004 ffffffff afe0d9c4 S com.android.samsung.IcsService
    app_16 2536 2193 212332 18752 ffffffff afe0d9c4 S com.sec.android.app.sns
    app_20 2542 2193 217972 18140 ffffffff afe0d9c4 S com.sec.android.app.clockpackage
    app_27 2552 2193 210256 17724 ffffffff afe0d9c4 S com.osp.app.signin
    app_5 2568 2193 226556 18040 ffffffff afe0d9c4 S com.sec.android.widgetapp.infoalarm
    system 2576 2193 218328 19316 ffffffff afe0d9c4 S com.wssyncmldm
    app_35 2582 2193 209780 17512 ffffffff afe0d9c4 S com.sec.android.app.drmua:remote
    app_39 2595 2193 236904 19904 ffffffff afe0d9c4 S com.swype.android.inputmethod
    system 2603 2193 209768 17156 ffffffff afe0d9c4 S com.android.settings.mt
    app_59 2613 2193 215176 18340 ffffffff afe0d9c4 S com.android.email
    app_60 2623 2193 209924 17536 ffffffff afe0d9c4 S com.android.voicedialer
    app_65 2629 2193 223168 19740 ffffffff afe0d9c4 S com.android.calendar
    app_74 2643 2193 243980 19940 ffffffff afe0d9c4 S com.android.mms
    system 2662 2193 219836 17088 ffffffff afe0d9c4 S com.sec.android.app.factorytest
    app_77 2669 2193 222136 17036 ffffffff afe0d9c4 S com.google.android.partnersetup
    app_51 2678 2193 217940 21472 ffffffff afe0d9c4 S com.android.vending
    app_0 2685 2193 229504 18928 ffffffff afe0d9c4 S com.google.android.apps.maps:FriendService
    app_95 2701 2193 213468 18120 ffffffff afe0d9c4 S com.advancedprocessmanager
    app_100 2713 2193 242052 23612 ffffffff afe0d9c4 S com.lakoo.empireen
    app_100 2720 2193 240392 21496 ffffffff afe0d9c4 S com.lakoo.empireen:com.urbanairship.push.process
    app_45 2734 2193 216392 20508 ffffffff afe0d9c4 S com.cooliris.media
    app_48 2747 2193 210304 17464 ffffffff afe0d9c4 S com.android.MtpApplication
    app_5 2758 2193 211884 17552 ffffffff afe0d9c4 S com.sec.android.widgetapp.feedsandupdate
    app_38 2770 2193 212124 17776 ffffffff afe0d9c4 S com.google.android.gm
    app_0 2779 2193 231588 19992 ffffffff afe0d9c4 S com.google.android.apps.maps:LocationFriendService
    app_0 2862 2193 246104 20876 ffffffff afe0d9c4 S com.google.android.apps.maps
    root 3108 2 0 0 c03c701c 00000000 S pdflush
    app_24 3121 2193 209728 17184 ffffffff afe0d9c4 S com.svox.pico
    app_84 3137 2193 225932 20668 ffffffff afe0d9c4 S com.pip.androidnewui
    shell 4893 2213 716 328 c038d31c afe0d66c S /system/bin/sh
    shell 4894 4893 652 348 c0591008 afe0c76c S logcat
    app_105 4928 2193 214924 20316 ffffffff afe0d9c4 S com.visualgdb.example.TestJni
    app_33 4943 2193 227804 24136 ffffffff afe0d9c4 S com.layar
    dhcp 5219 1 828 408 c03f45b4 afe0d83c S /system/bin/dhcpcd
    shell 5340 2213 716 332 c038d31c afe0d66c S /system/bin/sh
    shell 5341 5340 856 340 00000000 afe0c76c R ps
    Command exited with code 0
    D:Androidandroid-sdkplatform-toolsadb.exe -s 900048c07f3d shell id
    uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet)
    Command exited with code 0
    D:Androidandroid-sdkplatform-toolsadb.exe -s 900048c07f3d shell run-as com.visualgdb.example.TestJni kill -9 4928
    run-as: not found
    Command exited with code 0
    D:Androidandroid-sdkplatform-toolsadb.exe -s 900048c07f3d install -r “Z:PROJECTSTestJniTestJnibinTestJni-debug.apk”
    pkg: /data/local/tmp/TestJni-debug.apk
    Success
    103 KB/s (161755 bytes in 1.532s)
    Command exited with code 0
    D:Androidandroid-sdkplatform-toolsadb.exe -s 900048c07f3d shell run-as com.visualgdb.example.TestJni /system/bin/sh -c pwd
    run-as: not found
    Command exited with code 0
    D:Androidandroid-sdkplatform-toolsadb.exe -s 900048c07f3d shell getprop ro.product.cpu.abi
    armeabi-v7a
    Command exited with code 0
    D:Androidandroid-sdkplatform-toolsadb.exe -s 900048c07f3d shell am start -n com.visualgdb.example.TestJni/.TestJni
    Starting: Intent { cmp=com.visualgdb.example.TestJni/.TestJni }
    Command exited with code 0
    D:Androidandroid-sdkplatform-toolsadb.exe -s 900048c07f3d shell ls /data/data/com.visualgdb.example.TestJni/lib/gdbserver
    /data/data/com.visualgdb.example.TestJni/lib/gdbserver: No such file or directory
    Command exited with code 0
    D:Androidandroid-sdkplatform-toolsadb.exe -s 900048c07f3d push Z:PROJECTSTestJniTestJnilibsarmeabigdbserver “/data/data/com.visualgdb.example.TestJni/lib/gdbserver”
    failed to copy ‘Z:PROJECTSTestJniTestJnilibsarmeabigdbserver’ to ‘/data/data/com.visualgdb.example.TestJni/lib/gdbserver’: Permission denied
    Command exited with code 1

    #2299
    Anonymous
    Participant

    Hello, I have new information. Today I can’t load addin (no new updates or programs).

    #2297
    Anonymous
    Participant

    I solved the problem with loading add-on. It was hanging msiexec.exe.
    But I still can’t debug example application and compile my project :(.

    #2298
    Anonymous
    Participant

    I tried to run debug session on Samsung GT-I9000 Android 2.1-update1 — failed.
    I tried to run debug session on HTC Hero Android 2.1-update1 — failed.
    I tried to run debug session on HTC Wildfire A3333 Android 2.2.1 — BINGO.

    Can I debug render thread in my application?

    #2294
    Anonymous
    Participant

    Anybody home ?

    #2295
    support
    Keymaster

    Hi,

    Sorry for the late reply.
    VisualGDB cannot start debugging because the NDK build system fails to include gdbserver[/b[ into the application package. It might be related to your build problem.
    Does the “*** target pattern contains no `%’.” message always appear? Does reinstalling NDK help?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.