February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Maxim | On Wednesday, 24 February 2021 at 19:04:02 UTC, Maxim wrote: > On Wednesday, 24 February 2021 at 18:52:12 UTC, H. S. Teoh > > I recently tried that. Even compiler was reinstalled. It didn't help. Just try remove dsfml and all depencies. My void "dub init"? which works { "authors": [ "zws" ], "copyright": "Copyright © 2021, zws", "description": "A minimal D application.", "license": "proprietary", "name": "d_dub" } |
February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Siemargl | On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:
> On Wednesday, 24 February 2021 at 19:04:02 UTC, Maxim wrote:
>> On Wednesday, 24 February 2021 at 18:52:12 UTC, H. S. Teoh
>
>>
>> I recently tried that. Even compiler was reinstalled. It didn't help.
> Just try remove dsfml and all depencies.
>
> My void "dub init"? which works
> {
> "authors": [
> "zws"
> ],
> "copyright": "Copyright © 2021, zws",
> "description": "A minimal D application.",
> "license": "proprietary",
> "name": "d_dub"
> }
Unfortunately, the program is still saying me:
'Configuration 'application' of package d_dub contains no source files. Please add {"targetType": "none"} to its package description to avoid building it.
Package with target type "none" must have dependencies to build.'
|
February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Siemargl | On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote: > On Wednesday, 24 February 2021 at 19:04:02 UTC, Maxim wrote: Yes, i see th error. If in your dub.json change > "targetType": "executable", then run >dub run --verbose Then may see, dsfml generate libs with uderscore sign - dsfml_network.lib for example, but dub tries to link with minus sign dsfml-network.lib ---- Linking... E:\_bin\dmd2\windows\bin\dmd.exe -of.dub\build\application-debug-windows-x86_64-dmd_2092-E7F725543F84B5635FF8F123CBB842A6\app.exe .dub\build\application-debug-windows-x86_64-dmd_2092-E7F725543F84B5635FF8F123CBB842A6\app.obj C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-372528AD7B0B044300A3F5408EDDEC8E\dsfml.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-89A3A2FBA9FCF38E2C4FC38EE57E1128\dsfml_audio.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-30FC35820C9E4BC06E9757B80A558C9E\dsfml_graphics.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-197738D20876D73DEACFEABD44ECBFEF\dsfml_window.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-612A34B3AF8623E968A4E88DA31008F9\dsfml_network.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-3AD1D1D270CC5FB76E7A45610C435628\dsfml_system.lib dsfmlc-audio.lib dsfmlc-system.lib dsfmlc-graphics.lib dsfmlc-window.lib dsfmlc-network.lib -m64 -g lld-link: error: could not open 'dsfmlc-audio.lib': no such file or directory lld-link: error: could not open 'dsfmlc-system.lib': no such file or directory lld-link: error: could not open 'dsfmlc-graphics.lib': no such file or directory lld-link: error: could not open 'dsfmlc-window.lib': no such file or directory lld-link: error: could not open 'dsfmlc-network.lib': no such file or directory Error: linker exited with status 1 |
February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Siemargl | On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:
> On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:
>> [...]
>
> Yes, i see th error.
> If in your dub.json change > "targetType": "executable",
>
> [...]
Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
|
February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Maxim | On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:
> On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:
>> On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:
>>> [...]
>>
>> Yes, i see th error.
>> If in your dub.json change > "targetType": "executable",
>>
>> [...]
>
>
> Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1
Works fine on void dub init project, but underscore problem whith dsfml still here
|
February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Siemargl | On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:
> On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:
>> On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:
>>> On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:
>>>> [...]
>>>
>>> Yes, i see th error.
>>> If in your dub.json change > "targetType": "executable",
>>>
>>> [...]
>>
>>
>> Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
>
> Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1
>
> Works fine on void dub init project, but underscore problem whith dsfml still here
I think that dsfml itself causing this problem with underscores. As evilrat said, dsfml haven't been updated since 2016.
|
February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Siemargl | On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote: > On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote: >> On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote: >>> On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote: >>>> [...] >>> >>> Yes, i see th error. >>> If in your dub.json change > "targetType": "executable", >>> >>> [...] >> >> >> Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies. > > Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1 > > Works fine on void dub init project, but underscore problem whith dsfml still here I think, its a problem with dsfml project. You can see it in %userprofile%\AppData\Local\dub\packages\dsfml-2.1.1\dsfml There is a build.d build program, i compile it and build.exe -unittest fails, can see source code : Needed depencies dsfmlc-*.lib (note 'c' on tth end!) |
February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Siemargl | On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote:
>> Works fine on void dub init project, but underscore problem whith dsfml still here
>
> I think, its a problem with dsfml project.
>
> You can see it in %userprofile%\AppData\Local\dub\packages\dsfml-2.1.1\dsfml
>
> There is a build.d build program, i compile it and build.exe -unittest fails, can see source code :
>
> Needed depencies dsfmlc-*.lib (note 'c' on tth end!)
So its not a dub problem, just needed dsfmlc-*.libs, which is not a part of a dsfml-2.1.1, but maybe external to C-linking libraries.
|
February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Siemargl | On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote:
> On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:
>> On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:
>>> On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:
>>>> On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:
>>>>> [...]
>>>>
>>>> Yes, i see th error.
>>>> If in your dub.json change > "targetType": "executable",
>>>>
>>>> [...]
>>>
>>>
>>> Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
>>
>> Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1
>>
>> Works fine on void dub init project, but underscore problem whith dsfml still here
>
> I think, its a problem with dsfml project.
>
> You can see it in %userprofile%\AppData\Local\dub\packages\dsfml-2.1.1\dsfml
>
> There is a build.d build program, i compile it and build.exe -unittest fails, can see source code :
>
> Needed depencies dsfmlc-*.lib (note 'c' on tth end!)
Thanks for the tip! Anyway, if I understood right, I would add "dsfmlc-*.lib" to dependencies in my dub.json. But it needs a version which I don't know.
So, I tried to put '"dependencies": { "dsfmlc-*.lib": "~>2.1.1" }' in the file but it didn't compile because of wrong version.
I am sorry if I got you wrong.
|
February 24, 2021 Re: DUB is not working correctly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Siemargl | On Wednesday, 24 February 2021 at 20:28:45 UTC, Siemargl wrote:
> On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote:
>>> Works fine on void dub init project, but underscore problem whith dsfml still here
>>
>> I think, its a problem with dsfml project.
>>
>> You can see it in %userprofile%\AppData\Local\dub\packages\dsfml-2.1.1\dsfml
>>
>> There is a build.d build program, i compile it and build.exe -unittest fails, can see source code :
>>
>> Needed depencies dsfmlc-*.lib (note 'c' on tth end!)
>
> So its not a dub problem, just needed dsfmlc-*.libs, which is not a part of a dsfml-2.1.1, but maybe external to C-linking libraries.
I agree with you. Well, dsfml is a very old library. It's a pity that the main problem of this topic was caused not because of dsfml but something else. In any case, thank you very much for your help!
|
Copyright © 1999-2021 by the D Language Foundation