Author Topic: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)  (Read 15992 times)

Offline BuFran

  • Single posting newcomer
  • *
  • Posts: 4
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:
  • Checked out latest SVN 9660
  • unpacked precompiled wxmsw 2.8.12
  • correctly set global vars wx and cb_release_type
  • executed update.bat (as seen on some forum that this can fix this problem)
  • run rebuild in current nightly CodeBlocks

After above steps, following is printed in build log:

Code: [Select]
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: [Select]
cd sdk\resources & zip -0 -q ..\..\devel\share\CodeBlocks\manager_resources.zip images\*.png images\12x12\*.png images\16x16\*.pngfrom 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
« Reply #1 on: February 23, 2014, 09:28:07 pm »
Have you run the update.bat script?
Have it worked with older revisions?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
« Reply #2 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.

Offline BuFran

  • Single posting newcomer
  • *
  • Posts: 4
Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
« Reply #3 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: [Select]
>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)

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
« Reply #4 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.

Offline BuFran

  • Single posting newcomer
  • *
  • Posts: 4
Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
« Reply #5 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.

Offline BuFran

  • Single posting newcomer
  • *
  • Posts: 4
Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
« Reply #6 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)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5226
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
« Reply #7 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: CodeBlocks SVN9660 does not build on windows (zip error: Nothing to do!)
« Reply #8 on: February 26, 2014, 09:43:59 am »
BuFran: You have to probably run the update.bat script.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]