News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Hello world plugin example Codeblocks, error of execution. Need help

Started by aindrajaya, October 01, 2016, 04:56:02 AM

Previous topic - Next topic

aindrajaya

I just try to build a Hello world plugin example, but I found an error when I try to build it.

-------------- Build: default in coba (compiler: GNU GCC Compiler)---------------

Target is up to date.
Running target post-build steps
zip -j9 coba.zip manifest.xml
Execution of 'zip -j9 coba.zip manifest.xml' in 'C:\Users\aindrajaya\AppData\Roaming\CodeBlocks\share\coba' failed.

anyone can help me, how to fix it ?  :-\

yvesdm3000

Clang based code completion for Code::Blocks:   [url="http://github.com/yvesdm3000/ClangLib"]http://github.com/yvesdm3000/ClangLib[/url]

aindrajaya


rlb

Quote from: aindrajaya on October 01, 2016, 04:56:02 AM

zip -j9 coba.zip manifest.xml
Execution of 'zip -j9 coba.zip manifest.xml' in 'C:\Users\aindrajaya\AppData\Roaming\CodeBlocks\share\coba' failed.
That's not a particularly helpful error message - it doesn't tell you what went wrong, only that something did.

What happens if you execute that command by hand? Does it tell you anything more interesting? Then try another zip command - any random one not involving your project - and see if that fails as well. Maybe zip does exist on your computer, but hasn't been put in the search path - in that case, I would indeed expect all zip commands to fail with a curt "doesn't exist" message, so maybe that's your problem.
Richard Bos

aindrajaya

QuoteMaybe zip does exist on your computer, but hasn't been put in the search path - in that case, I would indeed expect all zip commands to fail with a curt "doesn't exist" message, so maybe that's your problem. - rlb

how I can decide my zip put in the search path ?

BlueHazzard

You can check if your zip program is in the path by opening the cmd and type zip and hit enter:
Start->type in the search field cmd.exe -> in the black window type zip and press enter
if there is a error message about "not found" your zip program is not in the path...
to add it to the path:
https://www.google.de/#q=add+program+to+path


anandamu16

Hi,

I am also trying to make a helloWorld Plugin. But on compiling, i am getting errors in files wx/buffer.h and wx/strings.h
Please help, i am a newbie in this field.

Note: I am using codeblocks 16.01, wxwidget2.8.12(UNICODE=1, MONOLITHIC=1, SHARED=1) configuration. I have also setup the global variables corresponding to cb and wx

yvesdm3000

When you see that strdup is not defined, you have to try looking up what that function does. When you are a bit experienced with C-coding, you'll know that this is a standard C-library function working on normal 8-bit C-strings. But oh wait, wx should be compiled using unicode and it is still using non-unicode functions so you probably have wrong compile options. To find out why, you should look at the failing line and figuring out with what #define the preprocessor thumbled upon the problem. I would guess you are not running the "wx-config" application that is designed to return you the compile options you need to use wxWidgets. When you run "wx-config --cflags" manually you should see what compile-options are set.

It can help if you put the path where the wx-config application lives into the $PATH environment variable and restart codeblocks.

Yves
Clang based code completion for Code::Blocks:   [url="http://github.com/yvesdm3000/ClangLib"]http://github.com/yvesdm3000/ClangLib[/url]

BlueHazzard

@anandamu16
1) don't use an unrelated thread for your problem. This has nothing to do with zip
2) http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

@yvesdm3000
wx-config is not that easy available on windows, so i don't think it is easy to use. You have to remember the correct compiler parameters on your own and put them in the command line

anandamu16

QuoteExecution of 'zip -j9 coba.zip manifest.xml' in 'C:\Users\aindrajaya\AppData\Roaming\CodeBlocks\share\coba' failed.
anyone can help me, how to fix it ?

I am having the same issue, plz help.
I have WinRAR software for zip file and WinRAR.exe path is also set in PATH Environment variable.
QuoteMaybe zip does exist on your computer, but hasn't been put in the search path - in that case, I would indeed expect all zip commands to fail with a curt "doesn't exist" message, so maybe that's your problem
What does this mean? I tried to enter zip in command prompt but it says "command not found" Though I have already set the path for WinRAR.exe in Environment Variable.

anandamu16

Solved, Sorry for the dumb question in last post. I realized that 1 need to download zip.exe  from here "http://wiki.codeblocks.org/index.php/MinGW_installation#Development_Tools"

Problem Solved