digitalmars.D.learn - How user dub packages in dmd without dub.exe ?
- Marcone (3/3) Apr 04 2020 I want import modules from dub packages in my program.d and run
- Andre Pany (11/14) Apr 04 2020 Ag the end dub is calling DMD/LDC with some arguments. You can
- Baby Beaker (4/18) Apr 05 2020 When I run with command dmd -i -run app.d I get this error:
- Marcone (2/23) Apr 05 2020 Me too, same error
- WebFreak001 (3/16) Apr 05 2020 did you do the "copy the D packages from the Dub packages into
- Marcone (2/19) Apr 12 2020 No. Why?
- Andre Pany (12/32) Apr 13 2020 The DMD compiler needs to know where to find the vibed source
I want import modules from dub packages in my program.d and run using dmd.exe without dub.exe. How can I make it? Becouse when I try to import it says that can not found.
Apr 04 2020
On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote:I want import modules from dub packages in my program.d and run using dmd.exe without dub.exe. How can I make it? Becouse when I try to import it says that can not found.Ag the end dub is calling DMD/LDC with some arguments. You can run dub with verbose output and check the arguments in your scenario. If you can copy the D packages from the Dub packages into your main source folder, the command maybe is just: dmd -i -run app.d (-i will find the module dependencies without explicitly mentioning them as command line args). Kind regards Andre
Apr 04 2020
On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote:On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote:When I run with command dmd -i -run app.d I get this error: app.d(4): Error: module `vibe` is in file 'vibe\vibe.d' which cannot be readI want import modules from dub packages in my program.d and run using dmd.exe without dub.exe. How can I make it? Becouse when I try to import it says that can not found.Ag the end dub is calling DMD/LDC with some arguments. You can run dub with verbose output and check the arguments in your scenario. If you can copy the D packages from the Dub packages into your main source folder, the command maybe is just: dmd -i -run app.d (-i will find the module dependencies without explicitly mentioning them as command line args). Kind regards Andre
Apr 05 2020
On Sunday, 5 April 2020 at 14:02:19 UTC, Baby Beaker wrote:On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote:Me too, same errorOn Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote:When I run with command dmd -i -run app.d I get this error: app.d(4): Error: module `vibe` is in file 'vibe\vibe.d' which cannot be read[...]Ag the end dub is calling DMD/LDC with some arguments. You can run dub with verbose output and check the arguments in your scenario. If you can copy the D packages from the Dub packages into your main source folder, the command maybe is just: dmd -i -run app.d (-i will find the module dependencies without explicitly mentioning them as command line args). Kind regards Andre
Apr 05 2020
On Sunday, 5 April 2020 at 14:02:19 UTC, Baby Beaker wrote:On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote:did you do the "copy the D packages from the Dub packages into your main source folder" part?On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote:When I run with command dmd -i -run app.d I get this error: app.d(4): Error: module `vibe` is in file 'vibe\vibe.d' which cannot be read[...][...] If you can copy the D packages from the Dub packages into your main source folder, the command maybe is just: [...]
Apr 05 2020
On Sunday, 5 April 2020 at 14:19:40 UTC, WebFreak001 wrote:On Sunday, 5 April 2020 at 14:02:19 UTC, Baby Beaker wrote:No. Why?On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote:did you do the "copy the D packages from the Dub packages into your main source folder" part?On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote:When I run with command dmd -i -run app.d I get this error: app.d(4): Error: module `vibe` is in file 'vibe\vibe.d' which cannot be read[...][...] If you can copy the D packages from the Dub packages into your main source folder, the command maybe is just: [...]
Apr 12 2020
On Sunday, 12 April 2020 at 17:31:14 UTC, Marcone wrote:On Sunday, 5 April 2020 at 14:19:40 UTC, WebFreak001 wrote:The DMD compiler needs to know where to find the vibed source files. The most easiest way is to use Dub. If you want to avoid Dub you have to place vibed and the source code files of all other depencies vibed has, into a path DMD is able to find. This was my recommendation. But what is the reason for you to avoid Dub? Vibed D has multiple dependencies, getting it work without Dub is quite hard in case you just start with D development. Kind regards AndreOn Sunday, 5 April 2020 at 14:02:19 UTC, Baby Beaker wrote:No. Why?On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote:did you do the "copy the D packages from the Dub packages into your main source folder" part?On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote:When I run with command dmd -i -run app.d I get this error: app.d(4): Error: module `vibe` is in file 'vibe\vibe.d' which cannot be read[...][...] If you can copy the D packages from the Dub packages into your main source folder, the command maybe is just: [...]
Apr 13 2020