Sorry I can not build the release libs under VS 2010 & Win7. The builds under Linux, OSX works fine, the Windows builds with debug symbols also, but not the release builds.
I have tested the hdf 1.8.9 version, with cmake 2.8.9
I run in a VS command line this commands:
mkdir builddir
cd builddir
cmake -DHDF5_USE_FOLDERS=OFF -DHDF5_BUILD_CPP_LIB=ON -DHDF5_BUILD_HL_LIB=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=C:\Users\Administrator\Documents\hdftest C:\Users\Administrator\Documents\hdf5-1.8.9\hdf5-1.8.9
devenv C:\Users\Administrator\Documents\hdf5-1.8.9\hdf5-1.8.9\hdf5.sln /build release /project install
If I switch the "/build release" to "/build debug", everything works fine. But under the "builddir" no data is created, all build files are created in the hdf source directory.
The devenv shows errors like:
CMake Error at src/cmake_install.cmake:158 (FILE): file INSTALL cannot find "C:/Users/Administrator/Documents/hdf5-1.8.9/hdf5-1.8.9/bin/Release/hdf5dll.dll".
Call Stack (most recent call first): cmake_install.cmake:99 (INCLUDE)
and
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: Der Befehl "setlocal
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: "C:\Program Files\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmEnd
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmErrorLevel
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: exit /b %1
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmDone
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" wurde mit dem Code 1 beendet.
···
On 2012-09-20 09:43:14 +0200, Biddiscombe, John A. said:
after that I run the
msbuild /p:Configuration=Release <sourcedir>\HDF5.sln
the *.sln file should be created in the build directory, if you are letting cmake generate your project files in the source directory, then you should be very careful and it’s better to
mkdir my_hdf5_builddir
cd my_hdf5_builddir
cmake –D ……
then
devenv HDF5.sln /build "Release" /Project "Install"
from inside the build directory. Works for the rest of us.
if the install is not working, there may be a bug in the cmake stuff for the version you’re using. I’m using 1.8.9 and it seems fine (thought the example I posted previously had 1.8.8 in the path that’s just because I never updated it)