[Ves] Can anyone help me?

Daniel Scaini danisk891 at gmail.com
Mon Oct 6 16:18:21 EDT 2014


I have a problem with VES. Can anyone help me?

This is my Android.mk of my old project that i will add to VES. How i do??
How to add this lib to my CMakeList.txt in VES??

LOCAL_PATH:= $(call my-dir)
BOOST_LIB_PATH=../../boost/android/lib
BOOST_INCLUDE_PATH=$(LOCAL_PATH)/../../boost
#$(warning ########## LOCAL_PATH is $(LOCAL_PATH))

#########################################
# use prebuilt static library

#include $(CLEAR_VARS)
#LOCAL_MODULE:= lib3dv
#LOCAL_SRC_FILES:= lib3dv
#LOCAL_EXPORT_C_INCLUDES := lib3dv
#include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_system
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_system.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_filesystem
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_filesystem.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_thread
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_thread.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_iostreams
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_iostreams.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_regex
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_regex.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_math
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_math_c99.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_chrono
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_chrono.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_date
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_date_time.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_random
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_random.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE:= boost_signals
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_signals.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_timer
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_timer.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_serialization
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_serialization.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_wserialization
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_wserialization.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_exception
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_exception.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE:= boost_option
LOCAL_SRC_FILES:= $(BOOST_LIB_PATH)/libboost_program_options.a
LOCAL_EXPORT_C_INCLUDES := $(BOOST_INCLUDE_PATH)
include $(PREBUILT_STATIC_LIBRARY)

###test use jni with boost
include $(CLEAR_VARS)
LOCAL_MODULE:= hello-jni
LOCAL_LDLIBS  := -llog
LOCAL_SRC_FILES:= hello-jni.cpp mylic/otherclass.cc
LOCAL_STATIC_LIBRARIES := boost_date boost_option boost_system boost_thread
boost_signals
include $(BUILD_SHARED_LIBRARY)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20141006/3df5dc12/attachment-0001.html>


More information about the Ves mailing list