Skip to content

Commit

Permalink
Android: Fixed building and linking
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioLiebisch committed Dec 23, 2014
1 parent 090cfb0 commit 3b05ee1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
25 changes: 25 additions & 0 deletions extlibs/headers/ogg/config_types.h
@@ -0,0 +1,25 @@
#ifndef __CONFIG_TYPES_H__

This comment has been minimized.

Copy link
@mantognini

mantognini Dec 26, 2014

Is this file really necessary for building on Android?

This comment has been minimized.

Copy link
@MarioLiebisch

MarioLiebisch Dec 26, 2014

Author Owner

As mentioned in the PR, the compiler looked for it (and couldn't find it). Haven't had a closer look as to why it's not found (in comparison to other platforms).

#define __CONFIG_TYPES_H__

/* these are filled in by configure */
#define INCLUDE_INTTYPES_H 1
#define INCLUDE_STDINT_H 1
#define INCLUDE_SYS_TYPES_H 1

#if INCLUDE_INTTYPES_H
# include <inttypes.h>
#endif
#if INCLUDE_STDINT_H
# include <stdint.h>
#endif
#if INCLUDE_SYS_TYPES_H
# include <sys/types.h>
#endif

typedef int16_t ogg_int16_t;
typedef uint16_t ogg_uint16_t;
typedef int32_t ogg_int32_t;
typedef uint32_t ogg_uint32_t;
typedef int64_t ogg_int64_t;

#endif
4 changes: 2 additions & 2 deletions src/SFML/Android.mk
Expand Up @@ -42,7 +42,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := sfml-audio
LOCAL_SRC_FILES := lib/$(TARGET_ARCH_ABI)/libsfml-audio.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_SHARED_LIBRARIES := sfml-window sfml-system openal sndfile
LOCAL_SHARED_LIBRARIES := sfml-window sfml-system openal

prebuilt_path := $(call local-prebuilt-path,$(LOCAL_SRC_FILES))
prebuilt := $(strip $(wildcard $(prebuilt_path)))
Expand Down Expand Up @@ -132,7 +132,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := sfml-audio-d
LOCAL_SRC_FILES := lib/$(TARGET_ARCH_ABI)/libsfml-audio-d.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_SHARED_LIBRARIES := sfml-window-d sfml-system-d openal sndfile
LOCAL_SHARED_LIBRARIES := sfml-window-d sfml-system-d openal

prebuilt_path := $(call local-prebuilt-path,$(LOCAL_SRC_FILES))
prebuilt := $(strip $(wildcard $(prebuilt_path)))
Expand Down
1 change: 0 additions & 1 deletion src/SFML/Main/SFMLActivity.cpp
Expand Up @@ -160,7 +160,6 @@ void ANativeActivity_onCreate(ANativeActivity* activity, void* savedState, size_

// Load our libraries in reverse order
loadLibrary("c++_shared", lJNIEnv, ObjectActivityInfo);
loadLibrary("sndfile", lJNIEnv, ObjectActivityInfo);
loadLibrary("openal", lJNIEnv, ObjectActivityInfo);

#if !defined(SFML_DEBUG)
Expand Down

0 comments on commit 3b05ee1

Please sign in to comment.