Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Building a project from the Windows cmd shell fails.
This appears to be because the shortened, non-spaced (DOS form) of the directory has spaces in it. The problem for me is I cannot do automated builds. I'm using the makefiles generated and managed by the VS2008 BREWMP plugin.

Here is the cmd shell output for a failed build:
Quote:--> cd C:\project_foo

--> set
...
BREWMPSDK=C:\Program Files\Qualcomm\Brew MP SDK\Platforms\1.0.2.320\platform
BREWMP_PLATFORM=C:\Program Files\Qualcomm\Brew MP SDK\Platforms\1.0.2.320\platform
BREWMP_PLATFORMS_ALL=C:\Program Files\Qualcomm\Brew MP SDK\Platforms
BREWMP_TOOLSET=C:\BREW\BREWMP_SDK_1.0_rev7.1\Toolset 1.0 Rev 7.4.1269597
BREWMP_TOOLSETS_ALL=C:\BREW\BREWMP_SDK_1.0_rev7.1
...

--> cs-make.exe all
/usr/bin/sh: C:/BREW/BREWMP~1.1/Toolset: No such file or directory
cs-make: *** [Win32_Debug/project_foo.o] Error 127
The problem is BREWMP_TOOLSET path does not shorten to a non-spaced DOS form.
Quote:--> cygpath.exe --windows --long-name "%BREWMP_TOOLSET%"
C:\BREW\BREWMP_SDK_1.0_rev7.1\Toolset 1.0 Rev 7.4.1269597

--> cygpath.exe --dos "%BREWMP_TOOLSET%"
C:\BREW\BREWMP~1.1\Toolset 1.0 Rev 7.4.1269597

It would be very helpful to modify the build process to allow directory names with spaces.
I think this means quoting and unquoting directory names at the correct time in the build process. It's tricky but should be possible.
In the meantime, I can uninstall and reinstall to a directory name with '_'.
However, why not fix this silly bug?

-J_Tom_Moon_79

Hi Tom,
This might be related to a setting on your machine that prevents short path creation.
One possibility is that NtfsDisable8dot3NameCreation is set in Registry. Can you verify this?
Also make.d requires paths without spaces because, GNU make is not friendly with paths with spaces. Quoting as suggested does not help. make interprets a b in a list as 2 items - a and b .
Thanks,
Brian

Hi Tom,
This might be related to a setting on your machine that prevents short path creation.
One possibility is that NtfsDisable8dot3NameCreation is set in Registry. Can you verify this?
Also make.d requires paths without spaces because, GNU make is not friendly with paths with spaces. Quoting as suggested does not help. make interprets a b in a list as 2 items - a and b .
Thanks,
Brian

Quote:One possibility is that NtfsDisable8dot3NameCreation is set in Registry. Can you verify this?
I did not find NtfsDisable8dot3NameCreation as a key,value or data. I searched the entire registry starting from "My Computer".
Quote:make interprets a b in a list as 2 items - a and b .
An unlikely idea, what about escaping the spaces? "a b" -> "a\ b". Does that work?
What about using single-quotes?
Thanks for replying.
-J_Tom_Moon_79

Quote:One possibility is that NtfsDisable8dot3NameCreation is set in Registry. Can you verify this?
I did not find NtfsDisable8dot3NameCreation as a key,value or data. I searched the entire registry starting from "My Computer".
Quote:make interprets a b in a list as 2 items - a and b .
An unlikely idea, what about escaping the spaces? "a b" -> "a\ b". Does that work?
What about using single-quotes?
Thanks for replying.
-J_Tom_Moon_79

Hi Brian ,
I am not able to generate MOD file because of same short path problem. Even i make the value for NtfsDisable8dot3NameCreation to "0".
But still i m facing the below error.
cmd.exe /C cs-make.exe SHELL=cmd "V=armgcc_Debug" install "MOD_INSTALL_DIR=../" "MIF_INSTALL_DIR=../" "BREWMPSDK=C:\PROGRA~1\Qualcomm\Brew MP SDK\Platforms\1.1.0.480 Pro\platform" "BREWMP_PLATFORM=C:\Program Files\Qualcomm\Brew MP SDK\Platforms\1.1.0.480 Pro\platform" >"d:\ngm_app_my14_v1\ngm_app_my13_v4\attbmp_wid_interface_checkbox\make.log" 2>&1
makefile:14: C:\PROGRA~1\Qualcomm\Brew: No such file or directory
makefile:14: MP: No such file or directory
makefile:14: SDK\Platforms\1.1.0.480: No such file or directory
makefile:14: Pro\make.d/defines.min: No such file or directory
cs-make.exe: *** No rule to make target `Pro\make.d/defines.min'. Stop.

Hi Brian ,
I am not able to generate MOD file because of same short path problem. Even i make the value for NtfsDisable8dot3NameCreation to "0".
But still i m facing the below error.
cmd.exe /C cs-make.exe SHELL=cmd "V=armgcc_Debug" install "MOD_INSTALL_DIR=../" "MIF_INSTALL_DIR=../" "BREWMPSDK=C:\PROGRA~1\Qualcomm\Brew MP SDK\Platforms\1.1.0.480 Pro\platform" "BREWMP_PLATFORM=C:\Program Files\Qualcomm\Brew MP SDK\Platforms\1.1.0.480 Pro\platform" >"d:\ngm_app_my14_v1\ngm_app_my13_v4\attbmp_wid_interface_checkbox\make.log" 2>&1
makefile:14: C:\PROGRA~1\Qualcomm\Brew: No such file or directory
makefile:14: MP: No such file or directory
makefile:14: SDK\Platforms\1.1.0.480: No such file or directory
makefile:14: Pro\make.d/defines.min: No such file or directory
cs-make.exe: *** No rule to make target `Pro\make.d/defines.min'. Stop.

I am having the same problem on Win7 and VS 2010. Can some one help?

I am having the same problem on Win7 and VS 2010. Can some one help?