Issue with installation on Windows

60 views
Skip to first unread message

Oscar Chen

unread,
Oct 5, 2023, 9:23:35 AM10/5/23
to slim-discuss
I've been trying to download and use SLiMgui on a laptop with Windows 10 Enterprise N. Following the instructions on the manual, I've been able to download it with msys2, but once I open SLiMgui.exe, I get the error message pasted down below from msys64, with SLiMgui opening but the window remaining all black. 

15:08:09 : QOpenGLShader::compile(Fragment): ERROR: 4:1: 'textureSampler' : syntax error syntax error 15:08:09 : *** Problematic Fragment shader source code *** #version 110 #ifdef GL_KHR_blend_equation_advanced #extension GL_ARB_fragment_coord_conventions : enable #extension GL_KHR_blend_equation_advanced : enable #endif #define lowp #define mediump #define highp #line 1 varying highp vec2 uv;uniform sampler2DRect textureSampler;uniform bool swizzle;uniform highp float opacity;void main() { highp vec4 tmpFragColor = texture2DRect(textureSampler,uv); tmpFragColor.a *= opacity; gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;} *** 15:08:09 : Could not link shader program: "ERROR: 4:1: 'textureSampler' : syntax error syntax error\n\n"












Ben Haller

unread,
Oct 5, 2023, 11:41:29 AM10/5/23
to Oscar Chen, slim-discuss
Hi Oscar!

This looks like an error coming from deep inside the Qt framework.  It's not SLiM code, and it's not even Qt code that SLiM calls directly (SLiMgui does not use QOpenGLShader directly).  I'd suggest trying things like reinstalling Qt, installing a different version of Qt, etc.  It's a problem with that framework, nothing to do with SLiM.  (A very strange problem, too, I'd note – a syntax error in a shader program??  I wonder if there's some kind of video card incompatibility or something.)

Good luck!

Cheers,
-B.

Benjamin C. Haller
Messer Lab
Cornell University


Oscar Chen wrote on 10/5/23 9:23 AM:
I've been trying to download and use SLiMgui on a laptop with Windows 10 Enterprise N. Following the instructions on the manual, I've been able to download it with msys2, but once I open SLiMgui.exe, I get the error message pasted down below from msys64, with SLiMgui opening but the window remaining all black. 

15:08:09 : QOpenGLShader::compile(Fragment): ERROR: 4:1: 'textureSampler' : syntax error syntax error 15:08:09 : *** Problematic Fragment shader source code *** #version 110 #ifdef GL_KHR_blend_equation_advanced #extension GL_ARB_fragment_coord_conventions : enable #extension GL_KHR_blend_equation_advanced : enable #endif #define lowp #define mediump #define highp #line 1 varying highp vec2 uv;uniform sampler2DRect textureSampler;uniform bool swizzle;uniform highp float opacity;void main() { highp vec4 tmpFragColor = texture2DRect(textureSampler,uv); tmpFragColor.a *= opacity; gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;} *** 15:08:09 : Could not link shader program: "ERROR: 4:1: 'textureSampler' : syntax error syntax error\n\n"


--
SLiM forward genetic simulation: http://messerlab.org/slim/
---
You received this message because you are subscribed to the Google Groups "slim-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slim-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/slim-discuss/363e20fc-6112-4efe-a9b2-1413f2998d89n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages