From: <sis...@op...> - 2015-04-27 11:29:48
|
-----Original Message----- From: Alan W. Irwin Sent: Sunday, April 12, 2015 10:19 PM To: plplot_general Subject: [Plplot-general] PLplot-5.11.0 has been released > I am happy to report that the PLplot-5.11.0 release process has been > completed. I do a static build on Windows with: C:\>cmake -G "MinGW Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=C:/MinGW/msys/1.0/local -DBUILD_SHARED_LIBS=OFF -DENABLE_f77=OFF -DENABLE_cxx=OFF -DENABLE_f95=OFF -DBUILD_TEST=ON .. That works fine with 5.10.0, but with 5.11.0 the mingw32-make step fails with: Linking C executable test_plbuf.exe cd /d C:\comp\plplot-5.11.0\build32\examples\c && C:\_32\cmake\bin\cmake.exe -E cmake_link_script CMakeFiles\test_plbuf.dir\link.txt --verbose=1 C:\_32\cmake\bin\cmake.exe -E remove -f CMakeFiles\test_plbuf.dir/objects.a C:\MinGW\bin\ar.exe cr CMakeFiles\test_plbuf.dir/objects.a @CMakeFiles\test_plbuf.dir\objects1.rsp C:\MinGW\bin\gcc.exe -Wl,--whole-archive CMakeFiles\test_plbuf.dir/objects. a -Wl,--no-whole-archive -o test_plbuf.exe -Wl,--out-implib,libtest_plbuf.dll.a -Wl,--major-image-version,0,--minor-image-version,0 ..\..\src\libplplot.a C:\MinGW\lib\libgdi32.a C:\MinGW\lib\libcomdlg32.a C:\MinGW\msys\1.0\local\lib\libfreetype.a ..\..\lib\csa\libcsirocsa.a ..\..\lib\qsastime\libqsastime.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 C:\MinGW\msys\1.0\local\lib\libfreetype.a(ftgzip.o): In function `ft_gzip_file_fill_output': c:/comp/freetype-2.4.10/src/gzip/ftgzip.c:413: undefined reference to `_inflate' C:\MinGW\msys\1.0\local\lib\libfreetype.a(ftgzip.o): In function `ft_gzip_file_reset': c:/comp/freetype-2.4.10/src/gzip/ftgzip.c:339: undefined reference to `_inflateReset' C:\MinGW\msys\1.0\local\lib\libfreetype.a(ftgzip.o): In function `ft_gzip_file_done': c:/comp/freetype-2.4.10/src/gzip/ftgzip.c:310: undefined reference to `_inflateEnd' C:\MinGW\msys\1.0\local\lib\libfreetype.a(ftgzip.o): In function `ft_gzip_file_init': c:/comp/freetype-2.4.10/src/gzip/ftgzip.c:295: undefined reference to `_inflateInit2_' C:\MinGW\msys\1.0\local\lib\libfreetype.a(ftgzip.o): In function `ft_gzip_file_done': c:/comp/freetype-2.4.10/src/gzip/ftgzip.c:310: undefined reference to `_inflateEnd' collect2.exe: error: ld returned 1 exit status I guess a link to libz is also needed. Why was this not an issue with 5.10.0 ? What is the "cmake" command line alteration that I need to make ? ("-DBUILD_TEST=OFF" enables mingw32-make to succeed, but that's not the solution I'm after.) Cheers, Rob |