#nanovg error
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
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:
-
Open your terminal or command prompt.
-
Navigate to the directory where your nanovg library is located.
-
Run the following command:
nm -D libnanovg.so | grep nanovg_versionIf you are using a different operating system or library file, replace
libnanovg.sowith the appropriate file name. -
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.
cant figure it out
Have you reloaded the grade project?
Show how you import it in gradle
implementation "org.lwjgl:lwjgl-nanovg:3.3.3"
right, does it give an error in the gradle script? (when you reload)
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
no, only when im attempting to run the nvgCreate() and other methods
i assume there's an issue with my project's lwjgl version