noxomix / vgl Goto Github PK
View Code? Open in Web Editor NEWOpenGL bindings for the V programming language
License: BSD 2-Clause "Simplified" License
OpenGL bindings for the V programming language
License: BSD 2-Clause "Simplified" License
C:\Users\bilal\gits\v_opengl>v . -o bin\v_opengl
==================
C:/Users/bilal/.vmodules/noxomix/vgl/c//fallback.h:23030: warning: function might return no value: 'glGetVkProcAddrNV'
C:/Users/bilal/AppData/Local/Temp/v_0/v_opengl.01HZ8WMY8DBJNHRZT95AJHKBYD.tmp.c:1379: error: ';' expected (got "duarteroso__vglfw__GLFWwindow")
...
==================
(Use `v -cg` to print the entire error message)
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
@noxomix
i tried to use the vgl to compile my simple toy opengl project in windows but it gives me this error, how do i fix that, i worked fine on linux
So, I am trying to compile my project for production build using this command :
v -prod -gc boehm_leak -cg .
But, I got this error:
builder error: Header file "/gl/gl.h", needed for module `noxomix.vgl` was not found. Please install the corresponding development headers.
Compiling for non-production build compiles and runs fine, though.
Also, compiling the provided gears.v
example with the same command also failed with the same error.
Changing this line
Line 5 in 2a04bea
#include "gl/gl.h"
which I did by modifying the should-not-be-edited file in ~./vmodules
, seems to remove the error. However, I am still not sure about this since my project still cannot be successfully compiled due to errors coming from other dependencies.
I am still learning V for past weekends coming from C/C++ background, therefore for me the /gl/gl.h
seems like the code is trying to include the file (system root)/gl/gl.h
instead of (module root)/gl/gl.h
, But is it correct in V though?
Ubuntu 24.04 LTS x86_64 (6.8.0-31-generic)
V 0.4.6 6d2c3a9
0.0.1.1-experimental
4.6.0
3.2
NVIDIA GeForce GTX 1060 6GB (proprietary driver 535.171.04)
Somehow I experienced some errors with the glGenVertexArrays()
- function. In the OpenGL2 (which is shipped with this Repository) this functions wasnt available, so I replaced the gl.h with a new version 3.3 gl.h... error still occurs.
So I tried with 4.6 ... still occures. Which means maybe theres an issue which I need to find asap.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.