Author Topic: Compiling Code::Blocks with wxWidgets 3.0.0 -- Execution of 'zip -jq9 failed  (Read 2348 times)

Offline craigger

  • Single posting newcomer
  • *
  • Posts: 5
Hey guys,
tried to compile Codeblocks sourcecode and this error came up.

Code: [Select]
cmd /c if not exist devel30\share\CodeBlocks mkdir devel30\share\CodeBlocks
zip -jq9 devel30\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc
Execution of 'zip -jq9 devel30\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc' in 'C:\Users\domin\Documents\clean code\src' failed.

zip.exe is in the PATH variable

Code: [Select]
C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\zip300xn-x64\zip.exe
Can you help me please?
« Last Edit: November 08, 2016, 03:33:56 pm by craigger »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6997
    • My Best Post

zip.exe is in the PATH variable

Code: [Select]
C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\zip300xn-x64\zip.exe
Can you help me please?

If that is what you set the PATH to then you did it wrong!

Code: [Select]
C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\zip300xn-x64
The above might be right.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline craigger

  • Single posting newcomer
  • *
  • Posts: 5
Thank you for the answer but the same error popped up.

Is it possible that the global compiler variables cause the error?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6997
    • My Best Post
Thank you for the answer but the same error popped up.

Is it possible that the global compiler variables cause the error?

You NEED to exit and restart CB to see the changes to work.
And, you might need to reboot the computer to see the changes to PATH to work.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6997
    • My Best Post
Does this command work on the command line (cmd.exe)

Code: [Select]
where zip

This is what happens if zip is NOT in your PATH
Code: [Select]
INFO: Could not find files for the given pattern(s).

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline craigger

  • Single posting newcomer
  • *
  • Posts: 5
thanks again for your help but restarting codeblocks and pc didn't change anything.

it shows the same errormessage
Code: [Select]
cmd /c if not exist devel30\share\CodeBlocks mkdir devel30\share\CodeBlocks
zip -jq9 devel30\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc
Execution of 'zip -jq9 devel30\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc' in 'C:\Users\domin\Documents\clean code\src' failed.

Sorry for my bad English ;)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6997
    • My Best Post
thanks again for your help but restarting codeblocks and pc didn't change anything.

it shows the same errormessage
Code: [Select]
cmd /c if not exist devel30\share\CodeBlocks mkdir devel30\share\CodeBlocks
zip -jq9 devel30\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc
Execution of 'zip -jq9 devel30\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc' in 'C:\Users\domin\Documents\clean code\src' failed.

Sorry for my bad English ;)

Try to use a file path that does NOT have spaces in it. No idea if zip has problems with this or not.
Verify that zip command is in the path; I posted how to do that in my last post.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6997
    • My Best Post

How to see a real error message run in a cmd.exe window.
Code: [Select]
cd "C:\Users\domin\Documents\clean code\src"
zip -jq9 devel30\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline icequan233

  • Multiple posting newcomer
  • *
  • Posts: 31
try to set PATH C:\Program Files (x86)\Sophos\Sophos SSL VPN Client\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;D:\zip300xn-x64
not C:\zip300xn-x64. I had the same problem with you ,so I changed,it did work for me.