Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: "could not import: glXSwapIntervalMESA" #8

Open
0rn opened this issue Jun 7, 2022 · 2 comments
Open

error: "could not import: glXSwapIntervalMESA" #8

0rn opened this issue Jun 7, 2022 · 2 comments

Comments

@0rn
Copy link

0rn commented Jun 7, 2022

When I am trying to run the examples on version 0.1.1, I am getting the following error:

nim c -rf --hints:off --threads:off colors.nim 
/home/wedge/Programming/nim/iso/colors.nim(1, 8) Warning: imported and not used: 'chroma' [UnusedImport]
could not import: glXSwapIntervalMESA
Error: execution of an external program failed: '/home/wedge/Programming/nim/iso/colors '

I have tested the same examples on version 0.1.0 and the error does not occur

@treeform
Copy link
Owner

treeform commented Jun 8, 2022

It appears you are using linux. Which version? Which GPU? Which architecture?

Can you get simple windy examples to run?

Can you play around with this section in windy?:

https://github.com/treeform/windy/blob/master/src/windy/platforms/linux/x11.nim#L660-L668

It appears your linux says "I can do glXSwapIntervalMESA" then when I do "glXSwapIntervalMESA" it says Error!

Its hard to test all linux version/gpus....

@0rn
Copy link
Author

0rn commented Jun 8, 2022

I'm running a laptop with integrated intel graphics
CPU: Intel m3-7Y30 (it is 64 bit)
integrated GPU is running Intel HD Graphics 615

Linux distro is bunsenLabs Lithium, which is basically just Debian 10

commenting out these two lines of the file you linked:

elif glXSwapIntervalMESA != nil:
    glXSwapIntervalMESA(1)

makes some of the basic windy examples work (basic, triangle, fixedsize)
and also lets most of the shady examples work too

Thanks for pointing me in the right direction, I had no idea what the error meant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants