|
发表于 2015-10-21 16:07:37
只看该作者
8#
如何生生成库呢,我编写了一个服务,头文件在framwork/native/include的目录下,源文件在framework/native/lib目录下,编译报错
target thumb C++: libhelloworld <= frameworks/native/libs/helloworld/HelloWorldService.cpp
target SharedLib: libhelloworld (out/target/product/rk3288/obj/SHARED_LIBRARIES/libhelloworld_intermediates/LINKED/libhelloworld.so)
frameworks/native/libs/helloworld/IHelloWorldService.cpp:25: error: undefined reference to 'android::Parcel::Parcel()'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:25: error: undefined reference to 'android::Parcel::Parcel()'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:27: error: undefined reference to 'android::Parcel::writeInterfaceToken(android::String16 const&)'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:29: error: undefined reference to 'android::Parcel::writeCString(char const*)'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:35: error: undefined reference to '__android_log_print'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:38: error: undefined reference to 'android::Parcel::readInt32() const'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:25: error: undefined reference to 'android::Parcel::~Parcel()'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:42: error: undefined reference to 'android::Parcel::~Parcel()'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:49: error: undefined reference to 'android::IInterface::~IInterface()'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:49: error: undefined reference to 'android::RefBase::~RefBase()'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:55: error: undefined reference to 'android::Parcel::checkInterface(android::IBinder*) const'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:57: error: undefined reference to 'android::Parcel::readCString() const'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:59: error: undefined reference to 'android::Parcel::writeInt32(int)'
frameworks/native/libs/helloworld/IHelloWorldService.cpp:63: error: undefined reference to 'android::BBinder::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
system/core/include/utils/String16.h:193: error: undefined reference to 'strzcmp16'
|
|