简体   繁体   English

错误:(mach-o 文件,但架构不兼容(有'x86_64',需要'arm64e'))Mac M1

[英]Error: (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) Mac M1

Apologies for the question if it was answered, as I am a new to this platform.如果回答了这个问题,我深表歉意,因为我是这个平台的新手。 Can you refer me to the post if this question was answered before.如果之前回答过这个问题,你能把我推荐给这个帖子吗?

I am trying to implement https://github.com/Esri/java-maven-starter-project .我正在尝试实现https://github.com/Esri/java-maven-starter-project I have downloaded the source code and followed the outlined step, however, I keep getting the below error message when I am at the 6th step (In the Maven view, run the compile phase under Lifecycle and then the exec:java goal to run the app.), precisely, exec:java.我已经下载了源代码并按照概述的步骤进行操作,但是,当我在第 6 步时,我不断收到以下错误消息(在 Maven 视图中,在 Lifecycle 下运行编译阶段,然后运行 ​​exec:java 目标来运行app.),确切地说,是 exec:java。

I am running on Mac M1 chip, and when I followed this tutorial ( https://github.com/Esri/java-maven-starter-project ), I was not able to to compile exec:java, the last step.我在 Mac M1 芯片上运行,当我遵循本教程( https://github.com/Esri/java-maven-starter-project )时,我无法编译 exec:java,最后一步。 I am getting the below message when I tried to do it.当我尝试这样做时,我收到以下消息。 Is it possible to direct me on what should I do in order to run the app on my machine?是否可以指导我应该怎么做才能在我的机器上运行该应用程序?

/Users/..../.arcgis/100.13.0/jniLibs/OSX64/libruntimecore.dylib: dlopen(/Users/..../.arcgis/100.13.0/jniLibs/OSX64/libruntimecore.dylib, 0x0001): tried: '/Users/..../.arcgis/100.13.0/jniLibs/OSX64/libruntimecore.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libruntimecore.dylib' (no such file) /Users/..../.arcgis/100.13.0/jniLibs/OSX64/libruntimecore.dylib: dlopen(/Users/..../.arcgis/100.13.0/jniLibs/OSX64/libruntimecore.dylib, 0x0001) : 试过: '/Users/..../.arcgis/100.13.0/jniLibs/OSX64/libruntimecore.dylib' (mach-o 文件,但架构不兼容(有'x86_64',需要'arm64e')) , '/usr/lib/libruntimecore.dylib' (没有这样的文件)

Further information, I am working in IntelliJ.更多信息,我在 IntelliJ 工作。

EDIT Apparently, arcgis does not support arc64 chips.编辑显然,arcgis 不支持 arc64 芯片。 The error is caused because it tried to load an x64 dylib into arc64.错误是因为它试图将 x64 dylib 加载到 arc64 中。 You may circumvent this issue by esri response below: https://community.esri.com/t5/arcgis-runtime-sdk-for-java-questions/error-mach-o-file-but-is-an-incompatible/mp/1151796#M2568您可以通过以下 esri 响应来规避此问题: https ://community.esri.com/t5/arcgis-runtime-sdk-for-java-questions/error-mach-o-file-but-is-an-incompatible/ mp/1151796#M2568

There was similar problem with de.mkammerer.argon2 library. de.mkammerer.argon2库也存在类似问题。

I added in pom.xml follow dependency:我在pom.xml中添加了以下依赖项:

<dependency>  
    <groupId>de.mkammerer</groupId>  
    <artifactId>argon2-jvm</artifactId>  
    <version>2.11</version>  
</dependency>

It solved the problem它解决了问题

暂无
暂无

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

相关问题 gradle 包装器在 Mac m1 上报告 x86-64 架构而不是 arm-v8 架构 - gradle wrapper reports x86-64 architecture instead of arm-v8 architecture on Mac m1 无法构建项目,有错误-体系结构x86_64的未定义符号:“ _ JNI_CreateJavaVM” - Can't build project, have error - Undefined symbols for architecture x86_64: “_JNI_CreateJavaVM” 体系结构 x86_64 的未定义符号:“_fcloseall” - Undefined symbols for architecture x86_64: "_fcloseall" 在 M1 Mac 上使用 Spring Boot 运行深入的 Vaadin Flow 教程(ARM AArch64 与 Intel x86 芯片) - Run the in-depth Vaadin Flow tutorial using Spring Boot on an M1 Mac (ARM AArch64 versus Intel x86 chip) Linux x86_64上的Cassandra Startup Error 1.2.6 - Cassandra Startup Error 1.2.6 on Linux x86_64 添加 &#39;ndk { abiFilters &#39;armeabi-v7a&#39;,&#39;arm64-v8a&#39;,&#39;x86&#39;,&#39;x86_64&#39; }&#39; 后,Android 应用程序不兼容 64 位 - Android app not 64 bit compliant after adding 'ndk { abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64' }' nu.pattern.OpenCV $ UnsupportedPlatformException:不支持操作系统“ WINDOWS”和体系结构“ X86_64” - nu.pattern.OpenCV$UnsupportedPlatformException: Operating system “WINDOWS” and architecture “X86_64” are not supported Android 应用程序在添加 NDK 后不兼容 64 位 { abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64' } - Android app not 64 bit compliant after adding NDK { abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64' } 在Mac OS X 10.6上从x86_64 .a文件创建jnilib - Create jnilib from x86_64 .a files on Mac OS X 10.6 在i386 Mac OS上加载Java x86_64 jnilib - load java x86_64 jnilib on i386 Mac OS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM