Maybe I just implement and build it in Marveel project is better. And so I have another question, if I wanna build my implementation as a so like libgps.so, what should I do ?
On 3月6日, 下午3时05分, "[email protected]" <[email protected]> wrote: > Hi all, > I implement my GPS function in the file gps_hardware.c ( instead of > gps_qemu.c,I create it), and so I change the Android.mk here as below: > --------------------------------------------------------------------------------------------------- > USE_GPS_HARDWARE := true > > ifeq($(USE_GPS_HARDWARE),true) > LOCAL_CFLAGS += -DHAVE_GPS_HARDWARE > LOCAL_SRC_FILES += gps/gps_hardware.c > endif > LOCAL_SRC_FILES += gps/gps.cpp > --------------------------------------------------------------------------------------------------- > > And I build the project. After that, I find a gps_hardware.o and a > gps_hardware.p are created in the out/target/product/generic/obj/ > SHARD_LIBRARIES/libhardware_intermediates/gps/ directory. > > But the debug board I debug is Marvell board. So I have to copy the > files (like gps_hardware.o or any others) that relate to GPS function > I have implemented to the project of Marvell. I am not sure which > file (like libhardware.so , gps_hardware.o or others) I should copy to > the Marvell project. > > Does anyone have any ideas about this issue? > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

