Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: BuFran on February 23, 2014, 08:58:55 pm

Title: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
Post by: BuFran on February 23, 2014, 08:58:55 pm
Hi guys,

  I'd like to implement some requested features, that is nice for me. But i have problems with CodeBlocks build.

Steps that I was do:

After above steps, following is printed in build log:

Code
Running target pre-build steps
build_tools\autorevision\autorevision +wx +int +t . include/autorevision.h

-------------- Build: sdk in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler)---------------

Target is up to date.
Running target post-build steps
cmd /c if not exist devel\share\CodeBlocks mkdir devel\share\CodeBlocks
zip -jq9 devel\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc
cmd /c "cd sdk\resources & zip -0 -q ..\..\devel\share\CodeBlocks\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.png"
zip error: Nothing to do! (devel\share\CodeBlocks\manager_resources.zip)
Process terminated with status 12 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

When I execute command
Code
cd sdk\resources & zip -0 -q ..\..\devel\share\CodeBlocks\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.png
from the top-level subversion directory, it prints "zip error: nothing to do !", but if I cd to src dir (the one with codeblocks project dirs), the above zip command succeeds.

Seems that I have somewhere wrong configuration of project root folder, but i cannot find where :-(

When I tried to remove all zip commands from all post-build steps, build succeeds, but C::B cannot run (Error 0xC6000005) as this can be expected.

Could anyone help me please ?

Regards,

  Frantisek
Title: Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
Post by: oBFusCATed on February 23, 2014, 09:28:07 pm
Have you run the update.bat script?
Have it worked with older revisions?
Title: Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
Post by: scarphin on February 23, 2014, 09:48:40 pm
Try inverting the backslashes '\' to forward slashes '/' in the command line or try zip from gnuwin32 project. Might work.
Title: Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
Post by: BuFran on February 24, 2014, 11:15:39 pm
Yeah I had run update.bat before test. I am new so I don't know if this was working before.


Code
>zip --version
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 3.0 (July 5th 2008), by Cygwin. Original by Info-ZIP.
Currently maintained by E. Gordon.  Please send bug reports to
the authors using the web page at www.info-zip.org; see README for details.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,
as of above date; see http://www.info-zip.org/ for other sites.

Compiled with gcc 3.4.4 (msys special) for Unix (Cygwin) on May 27 2010.

Zip special compilation options:
        ASM_CRC
        ASMV
        USE_EF_UT_TIME       (store Universal Time)
        BZIP2_SUPPORT        (bzip2 library version 1.0.5, 10-Dec-2007)
            bzip2 code and library copyright (c) Julian R Seward
            (See the bzip2 license for terms of use)
        SYMLINK_SUPPORT      (symbolic links supported)
        STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field)
        UIDGID_16BIT         (old Unix 16-bit UID/GID extra field also used)
        [encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3)

Encryption notice:
        The encryption code of this program is not copyrighted and is
        put in the public domain.  It was originally written in Europe
        and, to the best of our knowledge, can be freely distributed
        in both source and object forms from any country, including
        the USA under License Exception TSU of the U.S. Export
        Administration Regulations (section 740.13(e)) of 6 June 2002.

Zip environment options:
             ZIP:  [none]
          ZIPOPT:  [none]

Is this zip the right one ? (I am running Mingw/MSYS)
Title: Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
Post by: scarphin on February 25, 2014, 12:29:26 am
1- What is your OS?
2- Did you try the forward slash '/' trick?
3- I don't know if your zip is ok or not but the one from gnuwin32 project works fine with backslashes. I had that problem before and the zip I use from msys didn't work correctly with backslashes.
Title: Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
Post by: BuFran on February 26, 2014, 03:55:55 am
Windows 7
I'll try the slashes change now.

I am investigating which tool set will best fit with most of projects. Currently i have mingw/msys - seems some packages from msys is failing (make for example - replaced by one from gnuwin32), so I will try the cygwin later. If there is somewhere installer for entire gnuwin32 system, i will be happy.
Title: Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
Post by: BuFran on February 26, 2014, 04:09:56 am
Yeah,

unchanged slashes but replaced zip by the gnuwin32 one, and compilation succeeded Voilá. Thanks !!!

So now I have problems with run of the executable :-(

When I try to run it, the "application error" dialog popped up. (Error 0xC0000005)

Seems that I have missing something somewhere else.

Now trying to rebuild all (previously built and runned only "core & plugins" target)

Is there a way to set up the compiler to be the build faster ? (to use more threads as -j parameter in make)
Title: Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
Post by: ollydbg on February 26, 2014, 05:57:04 am
Windows 7
I'll try the slashes change now.

I am investigating which tool set will best fit with most of projects. Currently i have mingw/msys - seems some packages from msys is failing (make for example - replaced by one from gnuwin32), so I will try the cygwin later. If there is somewhere installer for entire gnuwin32 system, i will be happy.
I don't have any slashes or backslash issue, but please note that when you run the "zip" command, the msys/bin and cygwin/bin path should not exist in your PATH variable. You should use a zip executable which is native, I mean, don't use zip from msys or cygwin.
Title: Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
Post by: oBFusCATed on February 26, 2014, 09:43:59 am
BuFran: You have to probably run the update.bat script.