Project

General

Profile

Bug #1358

Unsuccessful build (Win7, MSVC2015, amd64_x86)

Added by Andreas Martin over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
build
Target version:
Start date:
02 Jul 2018
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

cmd /c "vcvars 2015 64 && cmakeBuild --build"

cmake aborts execution due to line 128 in CMakeLists.txt:
CMake Error at CMakeLists.txt:128 (get_directory_property):
get_directory_property DIRECTORY argument provided but requested directory
not found. This could be because the directory argument was invalid or, it
is valid but has not been processed yet.

CMakeError.log:
CheckIncludeFile.c

D:\git\exiv2\contrib\cmake\msvc\work_Release\exiv2\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "pthread.h": No such file or directory

History

#1

Updated by Robin Mills over 3 years ago

  • Category set to build
  • Status changed from New to Assigned
  • Assignee set to Robin Mills
  • Target version set to 0.27
  • % Done changed from 0 to 50
  • Estimated time set to 1.00 h

Known Issue for which I've posted a fix on GitHub:

https://github.com/Exiv2/exiv2/issues/371#issuecomment-401319696

If this works for you, can I ask you to update GitHub to request that this fix is submitted to master. Unfortunately, I don't know how to use git/github and therefore unable to modify 'master'.

Robin

#2

Updated by Andreas Martin over 3 years ago

This seems to work so far. Now I get errors when linking the modules:

exiv2.lib(pngimage.obj) : error LNK2019: Verweis auf nicht aufgel÷stes externes
Symbol "_compress" in Funktion ""bool __cdecl Exiv2::zlibToCompressed(unsigned
char const *,long,class Exiv2::DataBuf &)" (?zlibToCompressed@Exiv2@YA_NPBEJA
AVDataBuf@1
@Z)". [D:\git\exiv2\contrib\cmake\msvc\work_Release\exiv2\src\exiv2
.vcxproj]

Andreas

#3

Updated by Robin Mills over 3 years ago

The PNG code requires ZLIB because PNG "chunks" can be flate encoded (little embedded zip files).

It looks as though you haven't built Zlib, or something is wrong with the build of Zlib (or something like that). Suggestions:

1) use dir/s *.lib *.dll to see if you've build zlib.lib and zlibstatic.lib and zlib.dll

2) your build directory should look this. Zlib should have been downloaded and built for you.

 Directory of C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc

2018-07-03  09:15 AM    <DIR>          .
2018-07-03  09:15 AM    <DIR>          ..
2018-06-29  09:46 AM               361 cltest.cpp
2018-07-03  09:14 AM           113,664 cltest.exe
2018-07-03  09:14 AM             3,220 cltest.obj
2018-06-29  09:46 AM            17,006 cmakeBuild.cmd
2018-06-29  09:46 AM               238 cmakeBuildAll.cmd
2018-06-29  09:46 AM             1,202 cmakeDefaults.cmd
2018-06-29  09:46 AM             2,380 cmakeOpenssl.bat
2018-07-03  09:14 AM    <DIR>          dist                <--- "distribution" directory = build products
2012-03-24  08:12 PM    <DIR>          expat-2.1.0
2012-03-24  08:12 PM         2,652,160 expat-2.1.0.tar
2015-11-19  10:39 AM           562,616 expat-2.1.0.tar.gz
2018-06-29  09:46 AM            12,774 ReadMe.txt
2018-06-29  09:46 AM             2,612 vcvars.bat
2018-07-03  09:16 AM    <DIR>          work_Release        <--- "work" directory where things are built
2018-07-03  09:15 AM    <DIR>          zlib-1.2.8          <--- untarred and built
2013-04-29  01:26 AM         2,795,520 zlib-1.2.8.tar      <--- tar
2015-11-19  09:28 AM           571,091 zlib-1.2.8.tar.gz   <--- This was downloaded
              13 File(s)      6,734,844 bytes
               6 Dir(s)  104,013,213,696 bytes free

C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc>

3) use the option --pause on your command-line and cmakeBuild.cmd will pause between build steps. Does building zlib appear sane, or are there errors being missed? I've put the Zlib build output from my machine below.

cmd/c "vcvars 2015 64 && cmakeBuild --build --release --shared --samples --pause"

I'm happy to talk on Skype (or FaceTime or Google Hangouts) and we can screen share to resolve this.

Robin


cmd/c "vcvars 2015 64 && cmakeBuild --build --release --shared --samples --pause" 
...

---------- ZLIB building with cmake ------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CD = C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8
cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release zlib-1.2.8 -DCMAKE_INSTALL_PREFIX=C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\dist\2015\x64\dll\Release ..\..\zlib-1.2.8
Press any key to continue . . .
-- Selecting Windows SDK version 10.0.15063.0 to target Windows 10.0.16299.
-- The C compiler identification is MSVC 19.0.24210.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_BUILD_TYPE

-- Build files have been written to: C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8
Press any key to continue . . .

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CD = C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8
cmake --build . --config Release
Press any key to continue . . .
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2018-07-03 09:37:35 AM.
Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (1) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contr
ib\cmake\msvc\work_Release\zlib-1.2.8\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "x64\Release\ZERO_CHECK\".
  Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
  Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Checking Build System
  CMake does not need to re-run because C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ZERO_CHECK.vcxproj" (default targets).

Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (1) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contr
ib\cmake\msvc\work_Release\zlib-1.2.8\example.vcxproj" (3) on node 1 (default targets).
Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\example.vcxproj" (3) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib
\cmake\msvc\work_Release\zlib-1.2.8\zlib.vcxproj" (4) on node 1 (default targets).
PrepareForBuild:
  Creating directory "zlib.dir\Release\".
  Creating directory "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Release\".
  Creating directory "zlib.dir\Release\zlib.tlog\".
InitializeBuildStatus:
  Creating "zlib.dir\Release\zlib.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/zlib-1.2.8/CMakeLists.txt
  CMake does not need to re-run because C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8/CMakeFiles/generate.stamp is up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /I"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8" /I"C:\Users\rmill
  s\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8" /nologo /W3 /WX- /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D NO_FSEEKO /D _CRT_SECURE_NO_DEPRECATE /D
   _CRT_NONSTDC_NO_DEPRECATE /D "CMAKE_INTDIR=\"Release\"" /D ZLIB_DLL /D _WINDLL /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"zlib.dir\Releas
  e\\" /Fd"zlib.dir\Release\vc140.pdb" /Gd /TC /errorReport:queue "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\adler32.c" "C:\Users\rmills\gnu\git
  hub\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\compress.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\crc32.c" "C:\Users\rmills\gnu\github\exiv
  2\exiv2\contrib\cmake\msvc\zlib-1.2.8\deflate.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\gzclose.c" "C:\Users\rmills\gnu\github\exiv2\exiv2
  \contrib\cmake\msvc\zlib-1.2.8\gzlib.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\gzread.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\c
  make\msvc\zlib-1.2.8\gzwrite.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\inflate.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\ms
  vc\zlib-1.2.8\infback.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\inftrees.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zli
  b-1.2.8\inffast.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\trees.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\u
  ncompr.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\zutil.c" 
  adler32.c
  compress.c
  crc32.c
  deflate.c
  gzclose.c
  gzlib.c
  gzread.c
  gzwrite.c
  inflate.c
  infback.c
  inftrees.c
  inffast.c
  trees.c
  uncompr.c
  zutil.c
  Generating Code...
ResourceCompile:
  C:\Program Files (x86)\Windows Kits\10\bin\x86\rc.exe /D WIN32 /D _WINDOWS /D NDEBUG /D NO_FSEEKO /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D "CMAKE_INTD
  IR=\\\"Release\\\"" /D ZLIB_DLL /l"0x0409" /I"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8" /I"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cma
  ke\msvc\work_Release\zlib-1.2.8" /nologo /fo"zlib.dir\Release\zlib1.res" C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\win32\zlib1.rc
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Rel
  ease\zlib-1.2.8\Release\zlib.dll" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi3
  2.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8
  /Release/zlib.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8/Release/
  zlib.lib" /MACHINE:X64  /machine:x64 /DLL zlib.dir\Release\zlib1.res
  zlib.dir\Release\adler32.obj
  zlib.dir\Release\compress.obj
  zlib.dir\Release\crc32.obj
  zlib.dir\Release\deflate.obj
  zlib.dir\Release\gzclose.obj
  zlib.dir\Release\gzlib.obj
  zlib.dir\Release\gzread.obj
  zlib.dir\Release\gzwrite.obj
  zlib.dir\Release\inflate.obj
  zlib.dir\Release\infback.obj
  zlib.dir\Release\inftrees.obj
  zlib.dir\Release\inffast.obj
  zlib.dir\Release\trees.obj
  zlib.dir\Release\uncompr.obj
  zlib.dir\Release\zutil.obj
     Creating library C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8/Release/zlib.lib and object C:/Users/rmills/gnu/github/exiv2/exiv2/
  contrib/cmake/msvc/work_Release/zlib-1.2.8/Release/zlib.exp
  zlib.vcxproj -> C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Release\zlib.dll
FinalizeBuildStatus:
  Deleting file "zlib.dir\Release\zlib.tlog\unsuccessfulbuild".
  Touching "zlib.dir\Release\zlib.tlog\zlib.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\zlib.vcxproj" (default targets).

PrepareForBuild:
  Creating directory "example.dir\Release\".
  Creating directory "example.dir\Release\example.tlog\".
InitializeBuildStatus:
  Creating "example.dir\Release\example.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/zlib-1.2.8/CMakeLists.txt
  CMake does not need to re-run because C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8/CMakeFiles/generate.stamp is up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /I"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8" /I"C:\Users\rmill
  s\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8" /nologo /W3 /WX- /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D NO_FSEEKO /D _CRT_SECURE_NO_DEPRECATE /D
   _CRT_NONSTDC_NO_DEPRECATE /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"example.dir\Release\\" /Fd"example.dir
  \Release\vc140.pdb" /Gd /TC /errorReport:queue "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\test\example.c" 
  example.c
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Rel
  ease\zlib-1.2.8\Release\example.exe" /INCREMENTAL:NO /NOLOGO Release\zlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
  comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/wor
  k_Release/zlib-1.2.8/Release/example.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Rele
  ase/zlib-1.2.8/Release/example.lib" /MACHINE:X64  /machine:x64 example.dir\Release\example.obj
  example.vcxproj -> C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Release\example.exe
FinalizeBuildStatus:
  Deleting file "example.dir\Release\example.tlog\unsuccessfulbuild".
  Touching "example.dir\Release\example.tlog\example.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\example.vcxproj" (default targets).

Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (1) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contr
ib\cmake\msvc\work_Release\zlib-1.2.8\minigzip.vcxproj" (5) on node 1 (default targets).
PrepareForBuild:
  Creating directory "minigzip.dir\Release\".
  Creating directory "minigzip.dir\Release\minigzip.tlog\".
InitializeBuildStatus:
  Creating "minigzip.dir\Release\minigzip.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/zlib-1.2.8/CMakeLists.txt
  CMake does not need to re-run because C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8/CMakeFiles/generate.stamp is up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /I"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8" /I"C:\Users\rmill
  s\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8" /nologo /W3 /WX- /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D NO_FSEEKO /D _CRT_SECURE_NO_DEPRECATE /D
   _CRT_NONSTDC_NO_DEPRECATE /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"minigzip.dir\Release\\" /Fd"minigzip.d
  ir\Release\vc140.pdb" /Gd /TC /errorReport:queue "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\test\minigzip.c" 
  minigzip.c
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Rel
  ease\zlib-1.2.8\Release\minigzip.exe" /INCREMENTAL:NO /NOLOGO Release\zlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
   comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/wo
  rk_Release/zlib-1.2.8/Release/minigzip.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Re
  lease/zlib-1.2.8/Release/minigzip.lib" /MACHINE:X64  /machine:x64 minigzip.dir\Release\minigzip.obj
  minigzip.vcxproj -> C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Release\minigzip.exe
FinalizeBuildStatus:
  Deleting file "minigzip.dir\Release\minigzip.tlog\unsuccessfulbuild".
  Touching "minigzip.dir\Release\minigzip.tlog\minigzip.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\minigzip.vcxproj" (default targets).

Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (1) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contr
ib\cmake\msvc\work_Release\zlib-1.2.8\zlibstatic.vcxproj" (6) on node 1 (default targets).
PrepareForBuild:
  Creating directory "zlibstatic.dir\Release\".
  Creating directory "zlibstatic.dir\Release\zlibstatic.tlog\".
InitializeBuildStatus:
  Creating "zlibstatic.dir\Release\zlibstatic.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/zlib-1.2.8/CMakeLists.txt
  CMake does not need to re-run because C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8/CMakeFiles/generate.stamp is up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /I"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8" /I"C:\Users\rmill
  s\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8" /nologo /W3 /WX- /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D NO_FSEEKO /D _CRT_SECURE_NO_DEPRECATE /D
   _CRT_NONSTDC_NO_DEPRECATE /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"zlibstatic.dir\Release\\" /Fd"zlibstat
  ic.dir\Release\zlibstatic.pdb" /Gd /TC /errorReport:queue "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\adler32.c" "C:\Users\rmills\gnu\github\ex
  iv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\compress.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\crc32.c" "C:\Users\rmills\gnu\github\exiv2\exiv
  2\contrib\cmake\msvc\zlib-1.2.8\deflate.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\gzclose.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contr
  ib\cmake\msvc\zlib-1.2.8\gzlib.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\gzread.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\m
  svc\zlib-1.2.8\gzwrite.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\inflate.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zli
  b-1.2.8\infback.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\inftrees.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.
  8\inffast.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\trees.c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\uncompr
  .c" "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\zlib-1.2.8\zutil.c" 
  adler32.c
  compress.c
  crc32.c
  deflate.c
  gzclose.c
  gzlib.c
  gzread.c
  gzwrite.c
  inflate.c
  infback.c
  inftrees.c
  inffast.c
  trees.c
  uncompr.c
  zutil.c
  Generating Code...
Lib:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\Lib.exe /OUT:"C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Rele
  ase\zlibstatic.lib" /NOLOGO /MACHINE:X64  /machine:x64 zlibstatic.dir\Release\adler32.obj
  zlibstatic.dir\Release\compress.obj
  zlibstatic.dir\Release\crc32.obj
  zlibstatic.dir\Release\deflate.obj
  zlibstatic.dir\Release\gzclose.obj
  zlibstatic.dir\Release\gzlib.obj
  zlibstatic.dir\Release\gzread.obj
  zlibstatic.dir\Release\gzwrite.obj
  zlibstatic.dir\Release\inflate.obj
  zlibstatic.dir\Release\infback.obj
  zlibstatic.dir\Release\inftrees.obj
  zlibstatic.dir\Release\inffast.obj
  zlibstatic.dir\Release\trees.obj
  zlibstatic.dir\Release\uncompr.obj
  zlibstatic.dir\Release\zutil.obj
  zlibstatic.vcxproj -> C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Release\zlibstatic.lib
FinalizeBuildStatus:
  Deleting file "zlibstatic.dir\Release\zlibstatic.tlog\unsuccessfulbuild".
  Touching "zlibstatic.dir\Release\zlibstatic.tlog\zlibstatic.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\zlibstatic.vcxproj" (default targets).

PrepareForBuild:
  Creating directory "x64\Release\ALL_BUILD\".
  Creating directory "x64\Release\ALL_BUILD\ALL_BUILD.tlog\".
InitializeBuildStatus:
  Creating "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/zlib-1.2.8/CMakeLists.txt
  CMake does not need to re-run because C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/work_Release/zlib-1.2.8/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
  Touching "x64\Release\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:08.80
Press any key to continue . . .

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CD = C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8
cmake --build . --config Release --target install
Press any key to continue . . .
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2018-07-03 09:37:54 AM.
Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\install.vcxproj" on node 1 (default targets).
Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\install.vcxproj" (1) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib
\cmake\msvc\work_Release\zlib-1.2.8\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ZERO_CHECK.vcxproj" (default targets).

Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\install.vcxproj" (1) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib
\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (3) on node 1 (default targets).
Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (3) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contr
ib\cmake\msvc\work_Release\zlib-1.2.8\example.vcxproj" (4) on node 1 (default targets).
Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\example.vcxproj" (4) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib
\cmake\msvc\work_Release\zlib-1.2.8\zlib.vcxproj" (5) on node 1 (default targets).
InitializeBuildStatus:
  Creating "zlib.dir\Release\zlib.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  All outputs are up-to-date.
ResourceCompile:
  All outputs are up-to-date.
Link:
  All outputs are up-to-date.
  zlib.vcxproj -> C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Release\zlib.dll
FinalizeBuildStatus:
  Deleting file "zlib.dir\Release\zlib.tlog\unsuccessfulbuild".
  Touching "zlib.dir\Release\zlib.tlog\zlib.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\zlib.vcxproj" (default targets).

InitializeBuildStatus:
  Creating "example.dir\Release\example.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  All outputs are up-to-date.
Link:
  All outputs are up-to-date.
  example.vcxproj -> C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Release\example.exe
FinalizeBuildStatus:
  Deleting file "example.dir\Release\example.tlog\unsuccessfulbuild".
  Touching "example.dir\Release\example.tlog\example.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\example.vcxproj" (default targets).

Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (3) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contr
ib\cmake\msvc\work_Release\zlib-1.2.8\minigzip.vcxproj" (6) on node 1 (default targets).
InitializeBuildStatus:
  Creating "minigzip.dir\Release\minigzip.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  All outputs are up-to-date.
Link:
  All outputs are up-to-date.
  minigzip.vcxproj -> C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Release\minigzip.exe
FinalizeBuildStatus:
  Deleting file "minigzip.dir\Release\minigzip.tlog\unsuccessfulbuild".
  Touching "minigzip.dir\Release\minigzip.tlog\minigzip.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\minigzip.vcxproj" (default targets).

Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (3) is building "C:\Users\rmills\gnu\github\exiv2\exiv2\contr
ib\cmake\msvc\work_Release\zlib-1.2.8\zlibstatic.vcxproj" (7) on node 1 (default targets).
InitializeBuildStatus:
  Creating "zlibstatic.dir\Release\zlibstatic.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  All outputs are up-to-date.
Lib:
  All outputs are up-to-date.
  zlibstatic.vcxproj -> C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\Release\zlibstatic.lib
FinalizeBuildStatus:
  Deleting file "zlibstatic.dir\Release\zlibstatic.tlog\unsuccessfulbuild".
  Touching "zlibstatic.dir\Release\zlibstatic.tlog\zlibstatic.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\zlibstatic.vcxproj" (default targets).

InitializeBuildStatus:
  Creating "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
  Touching "x64\Release\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\ALL_BUILD.vcxproj" (default targets).

PrepareForBuild:
  Creating directory "x64\Release\INSTALL\".
  Creating directory "x64\Release\INSTALL\INSTALL.tlog\".
InitializeBuildStatus:
  Creating "x64\Release\INSTALL\INSTALL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
PostBuildEvent:
  setlocal
  "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
  if %errorlevel% neq 0 goto :cmEnd
  :cmEnd
  endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
  :cmErrorLevel
  exit /b %1
  :cmDone
  if %errorlevel% neq 0 goto :VCEnd
  :VCEnd
  -- Install configuration: "Release" 
  -- Installing: C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/dist/2015/x64/dll/Release/lib/zlib.lib
  -- Installing: C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/dist/2015/x64/dll/Release/bin/zlib.dll
  -- Installing: C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/dist/2015/x64/dll/Release/lib/zlibstatic.lib
  -- Installing: C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/dist/2015/x64/dll/Release/include/zconf.h
  -- Up-to-date: C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/dist/2015/x64/dll/Release/include/zlib.h
  -- Up-to-date: C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/dist/2015/x64/dll/Release/share/man/man3/zlib.3
  -- Installing: C:/Users/rmills/gnu/github/exiv2/exiv2/contrib/cmake/msvc/dist/2015/x64/dll/Release/share/pkgconfig/zlib.pc
FinalizeBuildStatus:
  Deleting file "x64\Release\INSTALL\INSTALL.tlog\unsuccessfulbuild".
  Touching "x64\Release\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate".
Done Building Project "C:\Users\rmills\gnu\github\exiv2\exiv2\contrib\cmake\msvc\work_Release\zlib-1.2.8\install.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.56
Press any key to continue . . .
---------- EXPAT building with cmake -----------------
#4

Updated by Andreas Martin over 3 years ago

That was a platform issue sigh.
I'm used to init my MSVC stack with vcvarsall.bat amd64_x86 and that seems to be the source of evil.
When I follow your instructions (vcvars 2015 64 && ...) the build succeeds.

THX for your support! Great package!

Regards,
Andreas

#5

Updated by Robin Mills over 3 years ago

Glad you're happy. Of course, you can initialise vcvars and then run cmakeBuild.cmd. Something like:

c:\Program Files\foo\man\choo\vcvars.bat  something weird
cmakeBuild.cmd --this --that --other
When I was developing cmakeBuild.cmd, I discovered it was easier to use the composite command!

I also wrote the script vcvars.bat to simplify calling the appropriate Microsoft init script. With v0.26, we supported VS 2005/8/10/12/13/15/17 in 32 and 64 bits. Different editions VS offer slightly different init scripts.

Thanks for submitting the PR. One day I might understand Git/Github enough to submit a PR!

#6

Updated by Robin Mills over 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 50 to 100
  • Estimated time changed from 1.00 h to 2.00 h

Also available in: Atom PDF