[android-porting] Re: How to build libgps_qemu.c?

2009-05-14 Thread ehung lu
HI Luo: Thank you for your reply. I have made the libgps.so by gps_freerunner.c, gps.h and also add the "BOARD_GPS_LIBRARIES := libgps" in BoardConfig.mk for linking to libhardware_legacy.so . And I have load the driver of my gps in android os, and I got the ttyUSB0. But I met another question. The

[android-porting] Re: How to build libgps_qemu.c?

2009-05-14 Thread Daliang Luo
Hi ehung,for the issue you can pull the whole directory of gps out of the directory of /hardware. It can't build another so file in one so file.So the directory shows like: android hardware -> libhardware.so gps -> libgps.so ril ->ril.so good luck! 2009/4/27 ehun

[android-porting] Re: How to build libgps_qemu.c?

2009-05-06 Thread linux_lyb
Try to add a "Android.mk" in the parent directory of your project. The content of Android.mk is: include $(call all-subdir-makefiles) --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-po

[android-porting] Re: How to build libgps_qemu.c?

2009-04-26 Thread ehung
Hi Nio I got the same problem with you. Do you have any good solution about it? Maybe we can discuss that question together? Thanks in advance. ehung On 3月20日, 下午10時24分, Nio wrote: > Hi David, it is not works. I think why I can't build a so namedlibgps.so > because there is already a libhardw

[android-porting] Re: How to build libgps_qemu.c?

2009-03-23 Thread Ludwig
The Android for the Openmoko Neo builds its own gps library, maybe you can use that as a template. Have a look at http://git.koolu.org/?p=freerunner/platform/hardware/gps.git;a=summary HTH Ludwig 2009/3/21 Nio : > > > Hi David, it is not works. I think why I can't build a so named > libgps.so bec

[android-porting] Re: How to build libgps_qemu.c?

2009-03-20 Thread Nio
Hi David, it is not works. I think why I can't build a so named libgps.so because there is already a libhardware.so in the parent directory of gps(hardware/libhardware/gps/). If so, I think I can't build a so like unless I change something refer to that. Ah, do you know how qualcomm build its lib

[android-porting] Re: How to build libgps_qemu.c?

2009-03-20 Thread Daliang Luo
Thanks David, I will try to modify my codes as you said. I will check if there is another module called gps_hardware, and i think the second reason may be the key as you have said. I will check and tell you the result,thanks again. 2009/3/20 David Turner > Ah, another reason is to generate libfo

[android-porting] Re: How to build libgps_qemu.c?

2009-03-20 Thread David Turner
It might be that there is already another module named gps_hardware somewhere in the build process, and that the error message is related to that. You should really try to call it "gps_fnord.c", assuming "fnord" is a name related to your specific hardware. Or just name it "libgps.so" (LOCAL_MODULE

[android-porting] Re: How to build libgps_qemu.c?

2009-03-20 Thread David Turner
Ah, another reason is to generate libfoo.so, you must name use "LOCAL_MODULE := foo" + "include $(BUILD_SHARED_LIBRARY)" using "LOCAL_MODULE := libfoo" will probably result in the generate of "liblibfoo.so" or something, and the build system might not like it. I'm just speculating though. 2009/3/

[android-porting] Re: How to build libgps_qemu.c?

2009-03-20 Thread Nio
Thanks David, in fact I new a file called gps_hardware.c instead of gps_qemu.c and i try to build a so called gps_hardware.so.but when I try to make, it reminds errors: build/core/shared_library.mk:20:*** hardware/libhardware/gps: Illegal use of OVERRIDE_BUILT_MODULE_PATH. I don't know what was ha

[android-porting] Re: How to build libgps_qemu.c?

2009-03-19 Thread David Turner
You should not need to modify gps_qemu.c at all, and this source file doesn't correspond to a stand-alone library; instead, it is part of libhardware.so. What you should do is write your own libgps.so that provides the following function: const GpsInterface* gps_get_interface(); which shall retu

[android-porting] Re: How to build libgps_qemu.c?

2009-03-19 Thread Nio
Hi, is there any one can help? I try to add as what android has done, but it reminds me that Illegal use of override path? On 3月16日, 上午11时47分, Nio wrote: > Soryy, the title shoud be How to build libgps_qemu.so. And the error > prompt should "there are no rules to > create out/target/product/lit

[android-porting] Re: How to build libgps_qemu.c?

2009-03-15 Thread Nio
Soryy, the title shoud be How to build libgps_qemu.so. And the error prompt should "there are no rules to create out/target/product/littleton/obj/SHARD_LIBRERIES/ libhardware_intermediates/LINKED/libhardware.so,object out/target/ product/littleton/obj/lib/libgps_hardward.so is needed.". On 3月16日