← Back to team overview

kicad-developers team mailing list archive

Re: Make problem for minizip

 

--- In kicad-devel@xxxxxxxxxxxxxxx, "Mateusz Skowroński" <skowri@...>
wrote:
>
> Hi,
> 
> 2008/2/16, Magnus Beischer <magnus@...>:
> >
> > Now everything compiles and links, except for minizip. I get the
> > following message:
> >
> > Magnus@TYSTA-DATORN /kicad/trunk/kicad/kicad/minizip
> > $ make
> > [ 0%] Building C object
kicad/minizip/CMakeFiles/minizip.dir/ioapi.obj
> > [100%] Building C object
kicad/minizip/CMakeFiles/minizip.dir/minizip.obj
> > [100%] Building C object kicad/minizip/CMakeFiles/minizip.dir/zip.obj
> > c:/svn/kicad/trunk/kicad/kicad/minizip/zip.c:188: warning:
> > 'free_linkedlist' defined but not used
> > Linking C executable minizip.exe
> > CMakeFiles/minizip.dir/minizip.obj:minizip.c:(.text+0x155): undefined
> > reference to `crc32'
> > CMakeFiles/minizip.dir/zip.obj:zip.c:(.text+0xbd4): undefined
> > reference to `crc32'
> > CMakeFiles/minizip.dir/zip.obj:zip.c:(.text+0xcab): undefined
> > reference to `deflate'
> > CMakeFiles/minizip.dir/zip.obj:zip.c:(.text+0xe03): undefined
> > reference to `deflate'
> > CMakeFiles/minizip.dir/zip.obj:zip.c:(.text+0xef5): undefined
> > reference to `deflateEnd'
> > CMakeFiles/minizip.dir/zip.obj:zip.c:(.text+0x1605): undefined
> > reference to `get_crc_table'
> > CMakeFiles/minizip.dir/zip.obj:zip.c:(.text+0x1834): undefined
> > reference to `deflateInit2_'
> > collect2: ld returned 1 exit status
> > make[2]: *** [kicad/minizip/minizip.exe] Error 1
> > make[1]: *** [kicad/minizip/CMakeFiles/minizip.dir/all] Error 2
> > make: *** [all] Error 2
> >
> > The function crc32 can't be found in the minizip directory, but I
find
> > it in the c:/msys/1.0/home/Magnus/zlib-1.2.3/ directory. Where am I
> > supposed to tell where minizip will find the files needed?
> >
> > // Magnus
> > PS I have another problem that also needs to be solved before trying
> > to do my first contributions to the code, but lets solve this one
first :)
> >
> 
> Minizip building on windows is broken at the moment. As a workaround
> You may pass -DKICAD_MINIZIP=OFF to the cmake command (You probably
> have to remove the build directory and start from scratch).
> 
> You may also edit the CMakeCache.txt from Your build directory. Find
a line:
> 
> KICAD_MINIZIP:BOOL=ON
> 
> and change it to:
> 
> KICAD_MINIZIP:BOOL=OFF
> 
> Save Your changes and than run this command:
> 
> make rebuild_cache
> 
> After that, kicad should build without minizip.
> 
> Regards,
> Mateusz
>
Thanks Mateusz, KICAD_MINIZIP:BOOL=OFF works fine.

// Magnus






References