NDK编译静态库问题?

sward2005 2011-01-18 04:11:54
各们大侠,为什么我把include $(BUILD_SHARED_LIBRARY)改成include $(BUILD_STATIC_LIBRARY)编译静态库,运行NDK-BUILD却一点反应都没有,一闪而过。。
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := libTestPluginInterface_jni_static

LOCAL_SRC_FILES := com_android_oray_testplugininterface_TestPluginInterface.cpp \
../../../../PhRemote/src/common/blowfish/blowfish.cpp \

LOCAL_C_INCLUDES := $(NDK)/sources/cxx-stl/stlport/stlport \
/cygdrive/e/android-sdk-windows/src/platform/frameworks/base/include \
/cygdrive/e/android-sdk-windows/src/platform/system/core/include \
$(LOCAL_PATH)/../../../../PhRemote/src/common/win32 \
$(LOCAL_PATH)/../../../../PhRemote/src/include \
$(LOCAL_PATH)/../../../../PhRemote/src/UDPLib/include \
$(LOCAL_PATH)/../../../../PhRemote/src/client/plugin/include2 \
$(JNI_H_INCLUDE)

LOCAL_LDLIBS := -lm -llog -L$(NDK)/sources/cxx-stl/stlport/libs/armeabi/libstlport_static.a

LOCAL_CPPFLAGS := -D__arm__ -D_DISABLE_OBJECT_MONITORING -DUSE_TCP

include $(BUILD_STATIC_LIBRARY)
...全文
821 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
work_acc 2011-01-19
  • 打赏
  • 举报
回复
mk下面写一个动态库的编译 引用一下这个静态库 就会开始编了
freshui 2011-01-18
  • 打赏
  • 举报
回复
一闪而过。。
说明有错吧,把错误提示贴上来啊

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧