The problem is in the least obvious place - the std::ostringstream output deadlocks for no reason - see file project/jni/application/src/asstring.h. The only reason I can think of is that previously I've has one big statically linked library, and now libstlport and libapplication areseparate shared libraries. But why then all std::vectors etc work?
23 lines
568 B
Makefile
23 lines
568 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := sdl_main
|
|
|
|
ifndef SDL_JAVA_PACKAGE_PATH
|
|
$(error Please define SDL_JAVA_PACKAGE_PATH to the path of your Java package with dots replaced with underscores, for example "com_example_SanAngeles")
|
|
endif
|
|
|
|
LOCAL_CFLAGS := -I$(LOCAL_PATH)/../sdl/include \
|
|
-DSDL_JAVA_PACKAGE_PATH=$(SDL_JAVA_PACKAGE_PATH) \
|
|
-DSDL_CURDIR_PATH=\"$(SDL_CURDIR_PATH)\"
|
|
|
|
LOCAL_CPP_EXTENSION := .cpp
|
|
|
|
LOCAL_SRC_FILES := sdl_main.c
|
|
|
|
LOCAL_SHARED_LIBRARIES := sdl application
|
|
LOCAL_LDLIBS := -llog
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|