libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.1k stars 1.81k forks source link

[Android]Building the cores failed #6494

Closed lualiliu closed 6 years ago

lualiliu commented 6 years ago

Description

I strictly follow the documentation(https://github.com/libretro/docs/blob/master/docs/compilation/android.md) I have some problems causing the compiler to fail.

Problems 1

=== Building pcsx_rearmed ===
[armeabi] Install        : libretro.so => libs/armeabi/libretro.so
[armeabi-v7a] Install        : libretro.so => libs/armeabi-v7a/libretro.so
[x86] SharedLibrary  : libretro.so
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/cdriso.c:241: error: undefined reference to 'stop'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/cdrom.c:251: error: undefined reference to 'next_interupt'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/cdrom.c:251: error: undefined reference to 'event_cycles'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/cdrom.c:268: error: undefined reference to 'next_interupt'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/cdrom.c:268: error: undefined reference to 'event_cycles'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/cdrom.c:303: error: undefined reference to 'next_interupt'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/cdrom.c:303: error: undefined reference to 'event_cycles'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/cdrom.c:296: error: undefined reference to 'next_interupt'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/cdrom.c:296: error: undefined reference to 'event_cycles'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/misc.c:576: error: undefined reference to 'new_dyna_before_save'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/misc.c:618: error: undefined reference to 'new_dyna_freeze'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/misc.c:622: error: undefined reference to 'new_dyna_after_save'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/misc.c:683: error: undefined reference to 'new_dyna_freeze'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/misc.c:746: error: undefined reference to 'psxRec'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/psxinterpreter.c:915: error: undefined reference to 'stop'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../libpcsxcore/r3000a.c:37: error: undefined reference to 'psxRec'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../frontend/main.c:151: error: undefined reference to 'new_dynarec_hacks'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../frontend/main.c:152: error: undefined reference to 'cycle_multiplier'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../frontend/main.c:452: error: undefined reference to 'stop'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../frontend/libretro.c:1447: error: undefined reference to 'psxRec'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../frontend/libretro.c:396: error: undefined reference to 'stop'
/home/luali/libretro-super/libretro-pcsx_rearmed/jni/../frontend/libretro.c:1718: error: undefined reference to 'cycle_multiplier'
collect2: error: ld returned 1 exit status

Problems 2

=== Building vbam ===
./libretro-build-android-mk.sh: 第 51 行: cd: libretro/jni: 没有那个文件或目录
Android NDK: Could not find application project directory !    
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.    
/home/luali/android-ndk-r10e/build/core/build-local.mk:143: *** Android NDK: Aborting    .  Stop.
Failed to build armeabi vbam
cp: 无法获取'../libs/armeabi/libretro.so' 的文件状态(stat): 没有那个文件或目录

Problems 3

=== Building puae ===
[armeabi] Compile arm    : retro <= libco.c
[armeabi] Compile arm    : retro <= deflate.c
In file included from /home/luali/libretro-super/libretro-puae/jni/../libco/libco.c:16:0:
/home/luali/libretro-super/libretro-puae/jni/../libco/armeabi.c:42:7: error: expected declaration specifiers or '...' before string constant
       ".arm\n"
       ^
make: *** [/home/luali/libretro-super/libretro-puae/obj/local/armeabi/objs/retro/__/libco/libco.o] Error 1
make: *** Waiting for unfinished jobs....
Failed to build armeabi puae
cp: 无法获取'../libs/armeabi/libretro.so' 的文件状态(stat): 没有那个文件或目录

Problems 4

=== Attempting armv7-neon Build ===
[armeabi-v7a] Compile arm    : retro <= libco.c
[armeabi-v7a] Compile arm    : retro <= diskutils.c
In file included from /home/luali/libretro-super/libretro-puae/jni/../libco/libco.c:16:0:
/home/luali/libretro-super/libretro-puae/jni/../libco/armeabi.c:42:7: error: expected declaration specifiers or '...' before string constant
       ".arm\n"
       ^
make: *** [../obj/local/armeabi-v7a-neon/local/armeabi-v7a/objs/retro/__/libco/libco.o] Error 1
make: *** Waiting for unfinished jobs....

The first problem about pcsx_rearmed(x86 error: undefined reference???). The second problem about vbam(NDK_PROJECT_PATH=null???). The third and the fourth about puae and armv7-neon(.arm\n???).

Environment information

Can you help me? Thank you.

momashi commented 5 years ago

Having the same problem. Did you ever figure it out?