-
Notifications
You must be signed in to change notification settings - Fork 499
Open
Description
Hi, I am trying to build NDK and I can't.
I have a boost folder inside jni with libs and include.
My Android.mk looks like this:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := v8_monolith
LOCAL_SRC_FILES := v8-dist/dist/$(TARGET_ARCH_ABI)/libv8_monolith.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := boost
LOCAL_SRC_FILES := boost/dist/$(TARGET_ARCH_ABI)/lib/libboost_system-clang-1_80.a
LOCAL_CPPFLAGS := \
-fexceptions \
-frtti
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := en8
LOCAL_C_INCLUDES := \
$(LOCAL_PATH) \
$(LOCAL_PATH)/v8-dist/include
BOOST := $(wildcard $(LOCAL_PATH)/boost/include/*.hpp)
LOCAL_C_INCLUDES += $(BOOST:$(LOCAL_PATH)/%=%)
LOCAL_SRC_FILES := \
en8.cpp \
marshall.cpp \
instrument.cpp \
localstorage.cpp \
runtime.cpp \
cpu_profile.cpp \
page_size.cpp \
disk_cleanup.cpp
LOCAL_CPPFLAGS := \
-std=c++17 \
-Wall \
-Wextra \
-Wpedantic \
-Wno-unused-parameter \
-Wno-variadic-macros \
-Wno-gnu-include-next \
-DV8_DEPRECATION_WARNINGS \
-DLEVELDB_PLATFORM_ANDROID
# Pointer compression should be enabled for 64-bit archs
ifeq ($(TARGET_ARCH), $(filter $(TARGET_ARCH),arm64 x86_64))
LOCAL_CPPFLAGS += -DV8_COMPRESS_POINTERS
endif
LOCAL_LDLIBS := -llog
LOCAL_STATIC_LIBRARIES := v8_monolith leveldb boost
include $(BUILD_SHARED_LIBRARY)
I am trying to import this files:
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/asio/ip/tcp.hpp>
When building NDK I get: fatal error: 'boost/beast/core.hpp' file not found
Thanks.
Metadata
Metadata
Assignees
Labels
No labels