| Summary: | androidbuild.sh fails with undefined reference to 'SDL_main' | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Carles Pagès <carles.pages> |
| Component: | main | Assignee: | Gabriel Jacobo <gabomdq> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | gabomdq |
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
Carles Pagès
2013-10-12 08:50:22 UTC
Can you post what command you used? Running: androidbuild.sh com.mdqinc.test ../test/testgles.c From build-scripts worked perfectly for me just now. I was running it from an out of tree dir (/tmp/foo). Running it like you works indeed past that linking phase, but now it fails with: BUILD FAILED /nix/store/ar59h43w52big93mz360g620n3svaz75-android-sdk-22.2/libexec/android-sdk-linux/tools/ant/build.xm:542: Unable to resolve project target 'android-10' Though I'm not sure if this may be caused by my setup. Does running from out of tree work for you? Thanks for the quick reply, btw! Out of source works for me with: /path/to/sdl/SDL/build-scripts/androidbuild.sh com.mdqinc.xxx /path/to/sdl/test/testgles.c What you can't do is take out androidbuild.sh and run that out of source because it uses its own location to determine where the source for SDL is. |