• <small id='yX5fX'></small><noframes id='yX5fX'>

    <legend id='yX5fX'><style id='yX5fX'><dir id='yX5fX'><q id='yX5fX'></q></dir></style></legend>
    <tfoot id='yX5fX'></tfoot>

  • <i id='yX5fX'><tr id='yX5fX'><dt id='yX5fX'><q id='yX5fX'><span id='yX5fX'><b id='yX5fX'><form id='yX5fX'><ins id='yX5fX'></ins><ul id='yX5fX'></ul><sub id='yX5fX'></sub></form><legend id='yX5fX'></legend><bdo id='yX5fX'><pre id='yX5fX'><center id='yX5fX'></center></pre></bdo></b><th id='yX5fX'></th></span></q></dt></tr></i><div id='yX5fX'><tfoot id='yX5fX'></tfoot><dl id='yX5fX'><fieldset id='yX5fX'></fieldset></dl></div>

      • <bdo id='yX5fX'></bdo><ul id='yX5fX'></ul>

      1. 无法为 libgdx 加载共享库 box2d

        时间:2023-07-27
        <i id='7o1JX'><tr id='7o1JX'><dt id='7o1JX'><q id='7o1JX'><span id='7o1JX'><b id='7o1JX'><form id='7o1JX'><ins id='7o1JX'></ins><ul id='7o1JX'></ul><sub id='7o1JX'></sub></form><legend id='7o1JX'></legend><bdo id='7o1JX'><pre id='7o1JX'><center id='7o1JX'></center></pre></bdo></b><th id='7o1JX'></th></span></q></dt></tr></i><div id='7o1JX'><tfoot id='7o1JX'></tfoot><dl id='7o1JX'><fieldset id='7o1JX'></fieldset></dl></div>

          <tbody id='7o1JX'></tbody>
        • <bdo id='7o1JX'></bdo><ul id='7o1JX'></ul>

        • <legend id='7o1JX'><style id='7o1JX'><dir id='7o1JX'><q id='7o1JX'></q></dir></style></legend><tfoot id='7o1JX'></tfoot>

              1. <small id='7o1JX'></small><noframes id='7o1JX'>

                  本文介绍了无法为 libgdx 加载共享库 box2d的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个使用 maven 构建的 libGDX 项目.它过去运行良好,但最近它停止工作,因为 libGDX 将 box2d 移动为扩展.我将扩展作为依赖项添加到我的项目的核心,就像我添加任何其他依赖项一样:

                  I have a libGDX project that is built using maven. It's run fine in the past, but recently, it's stopped working, due to libGDX moving box2d to being an extension. I added the extension as a dependency to the core of my project like I would any other dependency:

                  <dependency>
                      <groupId>com.badlogicgames.gdx</groupId>
                      <artifactId>gdx-box2d</artifactId>
                      <version>${gdx.version}</version>
                      <scope>compile</scope>
                  </dependency>
                  

                  但是,当我尝试运行桌面项目(或其他任何东西,真的)时,我收到以下错误:

                  however, when I try to run the project for desktop (or anything else, really), I get the following error:

                  [java] Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load shared library 'gdx-box2d64.dll' for target: Windows 7, 64-bit
                  [java]  at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:115)
                  [java]  at com.badlogic.gdx.physics.box2d.World.<clinit>(World.java:185)
                  [java]  ... 11 more
                  [java] Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Unable to read file for extraction: gdx-box2d64.dll
                  [java]  at com.badlogic.gdx.utils.SharedLibraryLoader.readFile(SharedLibraryLoader.java:124)
                  [java]  at com.badlogic.gdx.utils.SharedLibraryLoader.loadFile(SharedLibraryLoader.java:245)
                  [java]  at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:113)
                  [java]  ... 12 more
                  

                  有谁知道这个错误是什么意思以及我可以如何解决它?我不确定我应该提供哪些其他信息,但如果有要求,我会添加任何所需的代码或信息.

                  Does anyone know what this error means and how I might fix it? I'm not sure what other information I should provide, though I'll add any code or information needed if asked.

                  推荐答案

                  您还必须为桌面添加包含本机库的工件

                  You'll also have to add the artifacts containing the native libraries, for the desktop

                  <dependency>
                      <groupId>com.badlogicgames.gdx</groupId>
                      <artifactId>gdx-box2d-platform</artifactId>
                      <classifier>natives-desktop</classifier>
                      <version>${gdx.version}</version>
                      <scope>compile</scope>
                  </dependency>
                  

                  您必须为 Android 和 iOS 包含相同的依赖项,使用不同的分类器(natives-x86、natives-armebi、natives-armeabiv7、natives-ios)

                  You have to include the same dependency for Android and iOS, using a different classifier (natives-x86, natives-armebi, natives-armeabiv7, natives-ios)

                  这篇关于无法为 libgdx 加载共享库 box2d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:碰撞后如何使两个物体粘在一起? 下一篇:在 libgdx 中截屏

                  相关文章

                  最新文章

                  • <bdo id='ssdyw'></bdo><ul id='ssdyw'></ul>

                  <legend id='ssdyw'><style id='ssdyw'><dir id='ssdyw'><q id='ssdyw'></q></dir></style></legend>
                1. <i id='ssdyw'><tr id='ssdyw'><dt id='ssdyw'><q id='ssdyw'><span id='ssdyw'><b id='ssdyw'><form id='ssdyw'><ins id='ssdyw'></ins><ul id='ssdyw'></ul><sub id='ssdyw'></sub></form><legend id='ssdyw'></legend><bdo id='ssdyw'><pre id='ssdyw'><center id='ssdyw'></center></pre></bdo></b><th id='ssdyw'></th></span></q></dt></tr></i><div id='ssdyw'><tfoot id='ssdyw'></tfoot><dl id='ssdyw'><fieldset id='ssdyw'></fieldset></dl></div>
                  <tfoot id='ssdyw'></tfoot>

                    1. <small id='ssdyw'></small><noframes id='ssdyw'>