Using DUB version v0.9.19.
I've tried using this package:
{
"description": "dchip",
"targetName": "dchip",
"authors": [
"Andrej Mitrovic"
],
"version": "~master",
"homepage": "https://github.com/AndrejMitrovic/dchip",
"name": "dchip",
"copyright": "Copyright © 2013, Andrej Mitrovic",
"targetType": "staticLibrary",
"sourcePaths": [
"src"
],
"configurations": [
{
"name": "demo",
"targetType": "executable",
"targetName": "example-app",
"sourcePaths": [
"tests/demo",
"tests/lib"
],
"importPaths": [
"tests/lib"
],
"versions": [
"CHIP_ALLOW_PRIVATE_ACCESS"
],
"libs": [
"tests/lib/glfw3_implib"
],
"targetPath" : "demo_app"
},
]
}
And then I've tried running with:
C:\dev\projects\dchip>dub --config=demo
Checking dependencies in 'C:\dev\projects\dchip'
Building configuration "demo", build type debug
Compiling...
DMD v2.064 DEBUG
Linking...
DMD v2.064 DEBUG
Error: C:\dev\projects\dchip\demo_app: The system cannot find the file specified.
Then I've tried using an absolute path:
"targetPath" : "C:\demo_app"
Called it again:
C:\dev\projects\dchip>dub --config=demo
Checking dependencies in 'C:\dev\projects\dchip'
Building configuration "demo", build type debug
Compiling...
DMD v2.064 DEBUG
Linking...
DMD v2.064 DEBUG
Error: Trying to append absolute path.
And then I just tried using the defaults, so I removed targetPath
and built:
C:\dev\projects\dchip>dub --config=demo
Checking dependencies in 'C:\dev\projects\dchip'
Building configuration "demo", build type debug
Compiling...
DMD v2.064 DEBUG
Linking...
DMD v2.064 DEBUG
Running C:\Users\ADMINI~1\AppData\Local\Temp\dub\2055224000\example-app.exe...
Error: Program exited with code -1073741515
Run 'dub help' for usage information.
So I want to inspect what went wrong with the executable, but then I see dub has actually deleted it. Why would it remove the generated exe if it failed to run properly? I can't inspect it if it's gone.