#nanovg error

1 messages · Page 1 of 1 (latest)

upper pumice
#

trying to setup nanovg. i implemented it into gradle and imported it correctly yet im getting this error when running it java.lang.NoSuchMethodError: 'org.lwjgl.system.CustomBuffer org.lwjgl.glfw.GLFWVidMode.wrap(java.lang.Class, long, int)'
im using lwjgl-nanovg version 3.3.3

buoyant yarrowBOT
#

<@&987246399047479336> please have a look, thanks.

buoyant yarrowBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

.lwjgl.system.MemoryStack.mallocStack(I)Lorg/lwjgl/system/MemoryStack;'`

This error typically occurs when there is a version mismatch between the LWJGL library and the Nanovg library.

To resolve this issue, make sure that you are using compatible versions of both libraries. Check the documentation or release notes of Nanovg to find out which version of LWJGL it is compatible with. Then, update your LWJGL dependency in your Gradle file to match the required version.

For example, if Nanovg requires LWJGL version 3.2.1, you can update your Gradle file like this:

dependencies {
    implementation 'org.lwjgl:lwjgl:3.2.1'
}

After updating the dependency, rebuild your project and try running it again. The error should be resolved if the versions are now compatible.

#

To see your current nanovg version, you can follow these steps:

  1. Open your terminal or command prompt.

  2. Navigate to the directory where your nanovg library is located.

  3. Run the following command:

    nm -D libnanovg.so | grep nanovg_version
    

    If you are using a different operating system or library file, replace libnanovg.so with the appropriate file name.

  4. The output of the command will display the nanovg version information.

Note: If you are using a different programming language or development environment, the process may vary slightly.

upper pumice
#

cant figure it out

upper pumice
#

Show how you import it in gradle

upper pumice
upper pumice
#

Because there's 2 options:

  • Gradle can't find nanovg because you don't have the right repository for it to look in
  • Gradle can find it but there is something wrong with your project
upper pumice
#

i assume there's an issue with my project's lwjgl version