digitalmars.D.ide - Simple compile error in Visual D...
- WhatMeWorry (37/37) Oct 08 2014 I've been trying to debug this for hours. But my compile keeps
- Mike Parker (14/30) Oct 09 2014 Your import path for DerelictGL3 is wrong. You need the path to the
- WhatMeWorry (3/3) Oct 09 2014 Thank you. And thanks for Derelict!
- Mike Parker (9/12) Oct 09 2014 That really wouldn't serve any purpose. DerelictGL3 already loads
I've been trying to debug this for hours. But my compile keeps complaining about a file which can't be read (import path[2]) but when I run a dir command with a copy and paste of the path, I clearly see the file. 02_SimpleOpenGL_3_3_Program.d(13): Error: module gl3 is in file 'derelict\opengl3\gl3.d' which cannot be read import path[0] = C:\D\dmd2\windows\bin\..\..\src\phobos import path[1] = C:\D\dmd2\windows\bin\..\..\src\druntime\import import path[2] = C:\D\dmd2\windows\bin\..\..\src\DerelictOrg\DerelictGL3-master\source\derelict\opengl3 binary C:\D\dmd2\windows\bin\dmd.exe version v2.066.0 config C:\D\dmd2\windows\bin\sc.ini parse 02_SimpleOpenGL_3_3_Program C:\D>dir C:\D\dmd2\windows\bin\..\..\src\DerelictOrg\DerelictGL3-master\source\derelict\opengl3 I've got a verbose compile: 02_SimpleOpenGL_3_3_Program.d(13): Error: module gl3 is in file 'derelict\opengl3\gl3.d' which cannot be read import path[0] = C:\D\dmd2\windows\bin\..\..\src\phobos import path[1] = C:\D\dmd2\windows\bin\..\..\src\druntime\import import path[2] = C:\D\dmd2\windows\bin\..\..\src\DerelictOrg\DerelictGL3-master\source\derelict\opengl3 binary C:\D\dmd2\windows\bin\dmd.exe version v2.066.0 config C:\D\dmd2\windows\bin\sc.ini parse 02_SimpleOpenGL_3_3_Program C:\D>dir C:\D\dmd2\windows\bin\..\..\src\DerelictOrg\DerelictGL3-master\source\derelict\opengl3 Volume in drive C is OSDisk Directory of C:\D\dmd2\src\DerelictOrg\DerelictGL3-master\source\derelict\opengl3 10/08/2014 04:54 PM <DIR> . 10/08/2014 04:54 PM <DIR> .. 07/14/2014 01:30 PM 32,030 gl3.d 15 File(s) 549,833 bytes 2 Dir(s) 76,447,309,824 bytes free
Oct 08 2014
On 10/9/2014 7:11 AM, WhatMeWorry wrote:I've been trying to debug this for hours. But my compile keeps complaining about a file which can't be read (import path[2]) but when I run a dir command with a copy and paste of the path, I clearly see the file. 02_SimpleOpenGL_3_3_Program.d(13): Error: module gl3 is in file 'derelict\opengl3\gl3.d' which cannot be read import path[0] = C:\D\dmd2\windows\bin\..\..\src\phobos import path[1] = C:\D\dmd2\windows\bin\..\..\src\druntime\import import path[2] = C:\D\dmd2\windows\bin\..\..\src\DerelictOrg\DerelictGL3-master\source\derelict\opengl3 binary C:\D\dmd2\windows\bin\dmd.exe version v2.066.0 config C:\D\dmd2\windows\bin\sc.ini parse 02_SimpleOpenGL_3_3_Program C:\D>dir C:\D\dmd2\windows\bin\..\..\src\DerelictOrg\DerelictGL3-master\source\derelict\opengl3Your import path for DerelictGL3 is wrong. You need the path to the parent of top-level package directory, *not* the directory where the modules reside. Given that the DerelictGL3 modules are in the derelict.opengl3 package, then the derelict directory is the top-level and you need its parent. In this case: C:\D\dmd2\windows\bin\..\..\src\DerelictOrg\DerelictGL3-master\source The compiler will then see derelict.opengl3 in the import declarations and will append \derelict\opengl3 to the import path to look for the modules. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Oct 09 2014
Thank you. And thanks for Derelict! Say, could GLEW be added to Derelict? With all the work you've done, I can understand with a resounding "No" :)
Oct 09 2014
On 10/10/2014 2:59 AM, WhatMeWorry wrote:Thank you. And thanks for Derelict! Say, could GLEW be added to Derelict? With all the work you've done, I can understand with a resounding "No" :)That really wouldn't serve any purpose. DerelictGL3 already loads extensions for you when you call reload. If there are any specific extensions you need that aren't implemented, just file an issue [1] for it and I'll add support for them. [1] https://github.com/DerelictOrg/DerelictGL3/issues --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Oct 09 2014