Skip to content

Pygame missing include & link path #687

@brussee

Description

@brussee

Somehow the include path (to Python.h) and the path to the libraries (to -lpython2.7) for linking is not setup correctly for the pygame bootstrap.

It works if I hardcode the paths in python-for-android/build/bootstrap_builds/pygame/jni/Android.mk:

APPLICATION_ADDITIONAL_CFLAGS := -finline-functions -O2 -DSDL_JAVA_PACKAGE_PATH=$(SDL_JAVA_PACKAGE_PATH) -I/home/paul/.local/share/python-for-android/build/python-installs/testproject/include/python2.7

APPLICATION_ADDITIONAL_LDFLAGS := -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/home/paul/.local/share/python-for-android/build/libs_collections/testproject/armeabi

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions