Author

Topic: The filename, directory name, or volume label syntax is incorrect. (Read 1211 times)

member
Activity: 92
Merit: 10
hey everyone got another wallet with the same issue above however i found this https://github.com/Peershares/Peershares/issues/105 in that someone said about the same error
Quote
The above error was due to sh.exe and the associated dll's missing from C:\MinGW\bin

i checked mine and i do have sh.exe in there and i am guess dll files for it aswell but i am still getting that error, any have any advice?

EDIT i found the problem, i compared the code in the .pro file with a different .pro and found this to be the problem

if you get the same error look for the following in your .pro file and if it looks like this
Code:
# regenerate src/build.h
!win32 || contains(USE_BUILD_INFO, 1) {
    genbuild.depends = FORCE
    genbuild.commands = cd $$PWD; /bin/sh share/genbuild.sh $$OUT_PWD/build/build.h
    genbuild.target = genbuildhook
    PRE_TARGETDEPS += genbuildhook
    QMAKE_EXTRA_TARGETS += genbuild
    DEFINES += HAVE_BUILD_INFO
}

replace it with this

Code:
# regenerate src/build.h
!windows|contains(USE_BUILD_INFO, 1) {
    genbuild.depends = FORCE
    genbuild.commands = cd $$PWD; /bin/sh share/genbuild.sh $$OUT_PWD/build/build.h
    genbuild.target = $$OUT_PWD/build/build.h
    PRE_TARGETDEPS += $$OUT_PWD/build/build.h
    QMAKE_EXTRA_TARGETS += genbuild
    DEFINES += HAVE_BUILD_INFO
}

and that will fix the error
member
Activity: 92
Merit: 10
i guess everyone is at a loss aswell
member
Activity: 92
Merit: 10
"a Windows wallet"? Which one? Version? Windows version?  What version of MinGW is this?
yeah sorry was in a hurry, windows 7 32bit mingw 4.9 and this wallet compiled perfectly under linux and OS X so this error is windows only it seems

It's not the answer to your question (directly), but i usually use gitian if i feel the need to build the bitcoin binaries for windows:
https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md

Seems odd and contra-intuitive to build windows binaries on linux, but i find it a lot easyer to do this than to build on windows directly...
im being perfectly honest, when i first got into compiling wallets i never could get a windows wallet to compile on windows and when i would use gitian it would compile the wallet for linux only, took me a couple of weeks but i got windows compiling figured out
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
"a Windows wallet"? Which one? Version? Windows version?  What version of MinGW is this?
yeah sorry was in a hurry, windows 7 32bit mingw 4.9 and this wallet compiled perfectly under linux and OS X so this error is windows only it seems

It's not the answer to your question (directly), but i usually use gitian if i feel the need to build the bitcoin binaries for windows:
https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md

Seems odd and contra-intuitive to build windows binaries on linux, but i find it a lot easyer to do this than to build on windows directly...
member
Activity: 92
Merit: 10
"a Windows wallet"? Which one? Version? Windows version?  What version of MinGW is this?
yeah sorry was in a hurry, windows 7 32bit mingw 4.9 and this wallet compiled perfectly under linux and OS X so this error is windows only it seems
legendary
Activity: 4214
Merit: 1313
"a Windows wallet"? Which one? Version? Windows version?  What version of MinGW is this?
member
Activity: 92
Merit: 10
i am trying to compile a windows wallet for someone and am getting the following error

Code:
cd C:/coin-master; /bin/sh share/genbuild.sh C:/coin-master/build/build.h
The filename, directory name, or volume label syntax is incorrect.
Makefile.Release:298: recipe for target 'genbuildhook' failed
mingw32-make[1]: *** [genbuildhook] Error 1
mingw32-make[1]: Leaving directory 'C:/coin-master'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
20:54:44: The process "C:\mingw32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project coin (kit: Qt 4.8.6 (4.8.6))
When executing step "Make"

has anyone ever seen this error before and know how to fix it?
Jump to: