News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Compiling Code::Blocks with wxWidgets 3.0.0 -- Execution of 'zip -jq9 failed

Started by craigger, November 08, 2016, 02:48:59 PM

Previous topic - Next topic

craigger

Hey guys,
tried to compile Codeblocks sourcecode and this error came up.

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

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?

stahta01

Quote from: craigger on November 08, 2016, 02:48:59 PM

zip.exe is in the PATH variable

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!

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

craigger

Thank you for the answer but the same error popped up.

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

stahta01

Quote from: craigger on November 08, 2016, 04:16:04 PM
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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Does this command work on the command line (cmd.exe)


where zip


This is what happens if zip is NOT in your PATH

INFO: Could not find files for the given pattern(s).


Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

craigger

thanks again for your help but restarting codeblocks and pc didn't change anything.

it shows the same errormessage
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 ;)

stahta01

Quote from: craigger on November 09, 2016, 02:36:12 PM
thanks again for your help but restarting codeblocks and pc didn't change anything.

it shows the same errormessage
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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01


How to see a real error message run in a cmd.exe window.

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

icequan233

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.