www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dub.json: Expected '"' to start string

reply MiyukiNozomi <julieyear25 gmail.com> writes:
Hello, i made a project with DerelictGLFW3, and i am getting a 
error in dub.json at line 11. i don't know soo much about json, 
and i didn't find a solution for this problem anywhere.

this is my dub.json file:

[code]
{
	"name" : "glproject",
	"description" : "GL Game in D.",
	"dependencies": {
	    "derelict-glfw3": "~>4.0.0-beta"
	},
	"subConfigurations": {
	    "derelict-glfw3": "derelict-glfw3-static"
	},
	"libs-windows": {
	    ["glfw3dll"] //error here
	},
	"libs-posix": {
	    ["glfw3"]
	}
}
[code]
Dec 09 2020
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Wednesday, 9 December 2020 at 19:20:27 UTC, MiyukiNozomi wrote:
 	"libs-windows": {
 	    ["glfw3dll"] //error here
 	},
No {} there, it should just be "libs-windows": ["glfw3dll"]
Dec 09 2020
parent reply MiyukiNozomi <julieyear25 gmail.com> writes:
On Wednesday, 9 December 2020 at 19:26:31 UTC, Adam D. Ruppe 
wrote:
 On Wednesday, 9 December 2020 at 19:20:27 UTC, MiyukiNozomi 
 wrote:
 	"libs-windows": {
 	    ["glfw3dll"] //error here
 	},
No {} there, it should just be "libs-windows": ["glfw3dll"]
the errors are gone, thanks for the help!
Dec 09 2020
parent reply RSY <rsy_881 gmail.com> writes:
On Wednesday, 9 December 2020 at 19:29:26 UTC, MiyukiNozomi wrote:
 On Wednesday, 9 December 2020 at 19:26:31 UTC, Adam D. Ruppe 
 wrote:
 On Wednesday, 9 December 2020 at 19:20:27 UTC, MiyukiNozomi 
 wrote:
 	"libs-windows": {
 	    ["glfw3dll"] //error here
 	},
No {} there, it should just be "libs-windows": ["glfw3dll"]
the errors are gone, thanks for the help!
derelict glfw is pretty old, i recomand using this one instead: https://github.com/BindBC/bindbc-glfw It supports latest version of GLFW Also since you are statically compiling GLFW, you don't need the DLL on windows, just the .lib
Dec 11 2020
parent MiyukiNozomi <julieyear25 gmail.com> writes:
On Friday, 11 December 2020 at 11:56:28 UTC, RSY wrote:
 On Wednesday, 9 December 2020 at 19:29:26 UTC, MiyukiNozomi 
 wrote:
 On Wednesday, 9 December 2020 at 19:26:31 UTC, Adam D. Ruppe 
 wrote:
 On Wednesday, 9 December 2020 at 19:20:27 UTC, MiyukiNozomi 
 wrote:
 	"libs-windows": {
 	    ["glfw3dll"] //error here
 	},
No {} there, it should just be "libs-windows": ["glfw3dll"]
the errors are gone, thanks for the help!
derelict glfw is pretty old, i recomand using this one instead: https://github.com/BindBC/bindbc-glfw It supports latest version of GLFW Also since you are statically compiling GLFW, you don't need the DLL on windows, just the .lib
That explains some errors that i got while compiling, thanks.
Jan 06 2021