Hello forum : )
My android-application "stops working" upon starting.
Is there a way to debug this? The SFML example worked perfectly fine, could play around with it and nothing stopped working, but my own project is a bit larger and depends on Lua as well.
At the moment, I'm using
ndk-build
apt debug
adb install
and then run it.
When I start the app, I cannot see anything at all (but the upper bar with the app's name - android's interface, not mine) - stops working.
Building etc. worked fine.
SFML: 2.3.2
NDK: r13b
Lua: 5.1
Since Nsight Tegra probably won't help according to this
http://en.sfml-dev.org/forums/index.php?topic=21513.0, stating that I cannot debug my app running, what are my options : /? Blindly guessing?
As I use Lua, might it be that something went wrong with linking it and they fail to find the .so files during runtime but manage to ndk-build it anyway?
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := sfml-game
LOCAL_SRC_FILES := main.cpp
LOCAL_SRC_FILES += ...
LOCAL_CPPFLAGS = -std=c++1y
LOCAL_CPPFLAGS += -lstdc++fs
LOCAL_CPP_FEATURES := rtti exceptions
LOCAL_SHARED_LIBRARIES := sfml-system
LOCAL_SHARED_LIBRARIES += sfml-window
LOCAL_SHARED_LIBRARIES += sfml-graphics
LOCAL_SHARED_LIBRARIES += sfml-audio
LOCAL_SHARED_LIBRARIES += sfml-network
LOCAL_SHARED_LIBRARIES += lua
LOCAL_WHOLE_STATIC_LIBRARIES := sfml-main
include $(BUILD_SHARED_LIBRARY)
$(call import-module,sfml)
$(call import-module,lua\jni)