Thanks for all your help, but it does not work.

I run VS 2010 with administrator rights and would like to install HDF5 within a 
subdirectory of the users home directory, so I run first
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\\HDF\1.8.9 
C:\Users\Administrator\Documents\hdf5-1.8.9\CMakeLists.txt

cmake create all project files without any errors

after that I run the 

msbuild /p:Configuration=Release <sourcedir>\HDF5.sln

but this creates the error the the <sourcedir>\bin\Release exists and so 
nothing can be build:

C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(301,6): 
error MSB3191: Das Verzeichnis 
"C:\Users\Administrator\Documents\hdf5-1.8.9\bin\Release\" kann nicht erstellt 
werden. "C:\Users\Administrator\Documents\hdf5-1.8.9\bin\Release" kann nicht 
erstellt werden, da eine Datei oder ein Verzeichnis mit demselben Namen bereits 
vorhanden ist. 
[C:\Users\Administrator\Documents\hdf5-1.8.9\src\H5detect.vcxproj]


If I run after cmake the command

devenv HDF5.sln /build "Release" /Project "Install"

something will be build, but under the target directory within the bin dir only 
the msvcp100.dll & msvcr100.dll exists, the lib dir is empty, the include dir 
has only the C interface not the C++ interface header. The command line does 
not show any compiler or linker commands.

If I run

devenv HDF5.sln /build "Debug" /Project "Install" or msbuild 
/p:Configuration=Debug <sourcedir>\HDF5.sln
compiler & linker commands are shown and installed within the target directory 
(also the C++ header files)

I can build the libs with debug symbols only, the release build does not work

Phil




Am 19.09.2012 um 18:11 schrieb Michael Jackson:

> msbuild /p:Configuration=Release HDF5.sln
> 
> You need to use the SOLUTION file and NOT the vcxproj file.
> --
> Mike Jackson <www.bluequartz.net>
> 
> On Sep 19, 2012, at 11:27 AM, Kraus Philipp wrote:
> 
>> 
>> Am 19.09.2012 um 16:08 schrieb Michael Jackson:
>> 
>>> When you use CMake with a Visual Studio Generator CMake will basically 
>>> ignore the CMAKE_CONFIGURATION_TYPES variable. Just generate the Visual 
>>> Studio Solution as normal cmake. Then from the Visual Studio Command prompt 
>>> add the following to the "msbuild" command:
>>> 
>>> msbuild /p:Configuration=Release [other arguments] [HDFProject.sln]
>>> 
>>> That is what i use.
>> 
>> This does not work. I run this commands under VS 2010
>> cmake -DHDF5_USE_FOLDERS=OFF -DHDF5_BUILD_CPP_LIB=ON -DHDF5_BUILD_HL_LIB=ON 
>> -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=....
>> msbuild /p:Configuration=Release ALL_BUILDvcxproj
>> msbuild INSTALL.vcxproj
>> 
>> the first msbuild creates the error, that the release can not be created 
>> because it exsists (it exists a directory with the same name). If I run the 
>> ALL_BUILD from UI, it runs without error, but
>> on running the INSTALL target no HDF libs will be created, the lib directory 
>> within the target directory is empty and within the bin directory only the 
>> mscvp100.dll and msvcr100.dll are stored.
>> I have also build the hdf5, hdf5_cpp, hdf5_hl, hdf5_hl_cpp project, nothing 
>> is changed.
>> 
>> I would like to create under VS dynamic libs (with & without debug symbols) 
>> like the linux command:
>> configure --enabled-cxx --prefix=
>> make
>> make install
>> 
>> How can I do this? IMHO I need cmake to create the VS project data and at 
>> next how I must run the VS projects for the correct build sequence?
>> 
>> Thanks
>> 
>> Phil
>> 
>> 
>> 
>> 
>> 
>>> ___________________________________________________________
>>> Mike Jackson                    Principal Software Engineer
>>> BlueQuartz Software                            Dayton, Ohio
>>> [email protected]              www.bluequartz.net
>>> 
>>> On Sep 18, 2012, at 5:53 PM, Kraus Philipp wrote:
>>> 
>>>> Hello,
>>>> 
>>>> I try to build the HDF libs with Visual Studio, but I would like to create 
>>>> only the "release" libs. I have set the CMAKE_CONFIGURATION_TYPES to 
>>>> release but I can call msbuild ALL_BUILD.vcxproj. If I call the msbuild 
>>>> command
>>>> I gett the error, that the "Release" directory exists and so no libs are 
>>>> be build. Also I tested the /property:Configuration=Release flag after the 
>>>> msbuild command, the error that is created is always the same.
>>>> If I run the msbuild command without any modification for the build types, 
>>>> everything is fine, but the lib are always libs with debug symbols. 
>>>> 
>>>> How can I create "only" the release libraries and how can build the debug 
>>>> library only ?
>>>> 
>>>> Thanks
>>>> 
>>>> Phil
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Hdf-forum is for HDF software users discussion.
>>>> [email protected]
>>>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>>> 
>>> 
>>> _______________________________________________
>>> Hdf-forum is for HDF software users discussion.
>>> [email protected]
>>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>> 
>> 
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> [email protected]
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
> 
> 
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to