Coder Social home page Coder Social logo

vgl's People

Contributors

noxomix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vgl's Issues

Error in Windows

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

Header file `/gl/gl.h` was not found in production build

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

#include "/gl/gl.h"
to

#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?

System Info

  • OS : Ubuntu 24.04 LTS x86_64 (6.8.0-31-generic)
  • V Version : V 0.4.6 6d2c3a9
  • vGL Module Version : 0.0.1.1-experimental
  • OpenGL Version : 4.6.0
  • OpenGL ES Version : 3.2
  • GPU : NVIDIA GeForce GTX 1060 6GB (proprietary driver 535.171.04)

[WiP] Issue detected

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.