Eclipse で次のエラーが発生します。
**** Build of configuration Default for project com.opera.sdk.Opera ****
D:\android-ndk-r8b-windows\android-ndk-r8b\ndk-build.cmd all
"Compile++ thumb : operanative <= main.cpp
In file included from jni/src/main.cpp:4:0:
jni/include/controller.hpp:6:28: fatal error: gogi_opera_api.h: No such file or directory
compilation terminated.
make: *** [obj/local/armeabi/objs/operanative/src/main.o] Error 1
**** Build Finished ****
これは私の Android.mk makefile です:
MY_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_PATH := $(MY_PATH)
LOCAL_MODULE := libopera
LOCAL_SRC_FILES := libopera.a
include $(PREBUILT_STATIC_LIBRARY)
# final library
include $(CLEAR_VARS)
LOCAL_PATH := $(MY_PATH)
LOCAL_MODULE := operanative
LOCAL_SRC_FILES := src/main.cpp \
src/controller.cpp \
src/lock.cpp \
src/event.cpp \
src/dialog.cpp \
src/queue.cpp \
src/screen.cpp \
src/surface.cpp \
src/timer.cpp \
src/waiter.cpp \
src/window.cpp
LOCAL_C_INCLUDES := jni/include \
$(GOGI_SDK_PATH)/include \
$(GOGI_SDK_PATH)/jsplugins/ooif/include
LOCAL_WHOLE_STATIC_LIBRARIES := libopera
LOCAL_LDLIBS := -llog -ljnigraphics
include $(BUILD_SHARED_LIBRARY)
これは私の Application.mk ファイルです:
APP_STL:=stlport_static
APP_ABI := armeabi armeabi-v7a
APP_PLATFORM := android-14
問題の controller.hpp ファイルには、次の定義があります。
#ifndef CONTROLLER_HPP
#define CONTROLLER_HPP
#include <memory>
#include "gogi_opera_api.h"
#include "event.hpp"
#include "dialog.hpp"
#include "queue.hpp"
#include "screen.hpp"
#include "surface.hpp"
#include "timer.hpp"
#include "waiter.hpp"
#include "window.hpp"
適切な場所にファイルがあり、必要に応じて application.mk を書き直しましたが、上記のビルド エラーが発生します。