简体   繁体   English

编译Arch Mips Android Lazarus时出错

[英]Error compiling arch mips Android Lazarus

I am creating an application for Android but I need to create libraries .so for ARM and MIPS architectures, arm and managed to do it but for MIPS I could not follow step how to create the compiler crusado for MIPS from this tutorial: http://wiki.freepascal.org/Android 我正在为Android创建一个应用程序,但是我需要为ARM和MIPS体系结构创建库.arm,并设法做到了,但是对于MIPS,我无法按照本教程中的步骤操作如何为MIPS创建编译器Crusado: http:/ /wiki.freepascal.org/Android

But it doesn't work, it generated me this error I leave the link of the image of the error: 但是它不起作用,它产生了这个错误,我留下了错误图像的链接:

http://postimg.org/image/6yc0aweq7/

and not be to do and I need to compile for a mips. 而不是去做,我需要编译一些技巧。

It seems to be caused to an optimization to cmov (mips/aoptcpu:110 and on), try to disable optimizations (-O-) ? 它似乎是导致对cmov的优化(mips / aoptcpu:110及更高版本),请尝试禁用优化(-O-)?

  C_EQ:
      case p.opcode of
        A_MOV_D: p.opcode:=A_MOVZ_D;
        A_MOV_S: p.opcode:=A_MOVZ_S;
        A_MOVE:  p.opcode:=A_MOVZ;
      else
        InternalError(2014061703);
      end;

Please report internal errors to the free pascal bugtracker, Internal Errors are always compiler bugs (though not all are equal in their urgency, depending on if they happen with valid code and if there are workarounds) 请向免费的pascal bugtracker报告内部错误,内部错误始终是编译器错误(尽管紧急程度并非全部相同,这取决于它们是否与有效代码一起发生以及是否有解决方法)

Provide the commandline that started the build and the versions of the starting tools. 提供启动构建的命令行和启动工具的版本。 (preferably don't work with screenshots but copy and paste terminal contents) (最好不要使用屏幕截图,而应复制并粘贴终端内容)

You should be using toolchain from the Android NDK. 您应该使用Android NDK中的工具链。 This is needed due to differences in libc implementation (glibc vs bionic). 由于libc实现的差异(glibc与仿生),因此需要这样做。

You can download NDK from https://developer.android.com/ndk/downloads/index.html . 您可以从https://developer.android.com/ndk/downloads/index.html下载NDK。

I am not familiar with Lazarus, there might be integrated NDK support (though I doubt it). 我对Lazarus不熟悉,可能集成了NDK支持(尽管我对此表示怀疑)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM