Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
December 09, 2020 dub.json: Expected '"' to start string | ||||
---|---|---|---|---|
| ||||
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] |
December 09, 2020 Re: dub.json: Expected '"' to start string | ||||
---|---|---|---|---|
| ||||
Posted in reply to MiyukiNozomi | 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"]
|
December 09, 2020 Re: dub.json: Expected '"' to start string | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | 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!
|
December 11, 2020 Re: dub.json: Expected '"' to start string | ||||
---|---|---|---|---|
| ||||
Posted in reply to MiyukiNozomi | 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 |
January 06, 2021 Re: dub.json: Expected '"' to start string | ||||
---|---|---|---|---|
| ||||
Posted in reply to RSY | 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.
|
Copyright © 1999-2021 by the D Language Foundation