User forums > Help

Stripping debug info from output tree

(1/4) > >>

wtfisgoingoff:
Windows 11 

I got those msg  after running update32_64.bat (@call update.bat 32_64)
strip: 'output32_64\*.exe': No such file 
strip: 'output32_64\*.dll': No such file 
strip: 'output32_64\share\CodeBlocks\plugins\*.dll': No such file   

I added those cmd into that bat file  dir "%CB_OUTPUT_DIR%\*.exe"   echo CB_OUTPUT_DIR=%CB_OUTPUT_DIR%   
CB_OUTPUT_DIR outputed correctly    and  all *.exe were listed   

chatgpt suggested this cmd and it worked 

for %%f in ("%CB_OUTPUT_DIR%\*.exe") do strip "%%f"
for %%f in ("%CB_OUTPUT_DIR%\*.dll") do strip "%%f"
for %%f in ("%CB_OUTPUT_RESDIR%\plugins\*.dll") do strip "%%f" 
 
So what might be wrong here? Original strip cmds in update.bat are
strip "%CB_OUTPUT_DIR%\*.exe" 
strip "%CB_OUTPUT_DIR%\*.dll"
strip "%CB_OUTPUT_RESDIR%\plugins\*.dll"


Miguel Gimenez:
Are you using powershell or cmd?

EDIT: Are you using MSYS?. If so, probably strip.exe expects '/' as path separator.

wtfisgoingoff:
powershell . I tried CMD and msys2 shell didn't work neither.

I installed strip by MSYS2 indeed.

'/' as path separator didn't work .

The above part of  stripping is

copy "%CB_DEVEL_DIR%\cb_console_runner.exe" "%CB_OUTPUT_DIR%\cb_console_runner.exe" > nul

echo Transferring executable files from devel to output folder
xcopy /D /y "%CB_DEVEL_DIR%\*.exe" "%CB_OUTPUT_DIR%" > nul
echo Transferring DLL files from devel to output folder
xcopy /D /y "%CB_DEVEL_DIR%\*.dll" "%CB_OUTPUT_DIR%" > nul
echo Transferring LIB files from devel to output folder
xcopy /D /y "%CB_DEVEL_DIR%\*.a" "%CB_OUTPUT_DIR%" > nul
echo Transferring DLL plugin files from devel to output folder
xcopy /D /y "%CB_DEVEL_RESDIR%\plugins\*.dll" "%CB_OUTPUT_RESDIR%\plugins" > nul

Transferring worked. So   '\' path separator should work in powershell ,cmd msys2 shell

Miguel Gimenez:
Copy and xcopy are system commands, strip is not and the MSYS version may expect '/'.

wtfisgoingoff:
Didn't work

Navigation

[0] Message Index

[#] Next page

Go to full version