Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

androidbuild.sh problem on OS X #1384

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

androidbuild.sh problem on OS X #1384

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 2.0.1
Reported for operating system, platform: Mac OS X (All), All

Comments on the original bug report:

On 2014-03-05 16:01:22 +0000, Steffen Hein wrote:

androidbuild.sh has errors when calling sed:

$ ./androidbuild.sh org.libsdl.testgles ../test/testgles.c
sed: 1: "/private/tmp/SDL/build/ ...": undefined label 'mp/SDL/build/org.libsdl.testgles/jni/src/Android.mk'
sed: 1: "/private/tmp/SDL/build/ ...": undefined label 'mp/SDL/build/org.libsdl.testgles/AndroidManifest.xml'
sed: 1: "/private/tmp/SDL/build/ ...": undefined label 'mp/SDL/build/org.libsdl.testgles/AndroidManifest.xml'
sed: 1: "/private/tmp/SDL/build/ ...": undefined label 'mp/SDL/build/org.libsdl.testgles/build.xml'

This seems to be caused by an incompatibility between sed on Linux and OS X, see:
http://stackoverflow.com/questions/2320564/variations-of-sed-between-osx-and-gnu-linux

As a quick fix, it seems to work when changing "sed -i" to "sed -i -e", although I haven't checked if there are any side effects by doing so.

Best regards,
Steffen

On 2016-07-18 20:20:31 +0000, Philipp Wiesemann wrote:

This patch is now https://hg.libsdl.org/SDL/rev/c678dcec4f44, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant