Thread overview
in dub single file build how to pass "-J<dir>" options?
Dec 22, 2022
mw
Dec 22, 2022
mw
Dec 22, 2022
rikki cattermole
December 22, 2022

I have example.d:

#!/usr/bin/env dub

/+dub.sdl:
dependency "tkd" version="~>1.1.14"
+/
...

$ dub build --single example.d

...
Error: need -J switch to import text file folder_page.png

I'm wondering how to pass "-J" options?

BTW, for such single file build, do I have to use dub? is there another way to just use dmd?

Thanks.

December 22, 2022

On Thursday, 22 December 2022 at 02:19:23 UTC, mw wrote:

>

I have example.d:

#!/usr/bin/env dub

/+dub.sdl:
dependency "tkd" version="~>1.1.14"
+/
...

$ dub build --single example.d

...
Error: need -J switch to import text file folder_page.png

I'm wondering how to pass "-J" options?

Found it, it's:

/+dub.sdl:
dependency "tkd" version="~>1.1.14"
dflags "-Jmedia"
+/
>

BTW, for such single file build, do I have to use dub? is there another way to just use dmd?

Still don't know how to directly invoke dmd to build.

December 22, 2022
stringImportPaths