build only release libraries with visual studio

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

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.

···

___________________________________________________________
Mike Jackson Principal Software Engineer
BlueQuartz Software Dayton, Ohio
mike.jackson@bluequartz.net 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.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

···

Am 19.09.2012 um 16:08 schrieb Michael Jackson:

___________________________________________________________
Mike Jackson Principal Software Engineer
BlueQuartz Software Dayton, Ohio
mike.jackson@bluequartz.net 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.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

Phil,
    Just to be sure, you are building "out of source" correct? Wierd things
happen with cmake generation outerwise.

Allen

···

On Wednesday, September 19, 2012 05:27:46 PM 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
> mike.jackson@bluequartz.net 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.
>> Hdf-forum@hdfgroup.org
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@hdfgroup.org
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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
mike.jackson@bluequartz.net 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.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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

I use command line devenv rather than msbuild and this is my batch file

cd C:\cmakebuild\hdf5_1_8_cmake
devenv HDF5.sln /build "Debug" /Project "Install"
devenv HDF5.sln /build "Release" /Project "Install"

JB

···

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Allen D Byrne
Sent: 19 September 2012 18:10
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] build only release libraries with visual studio

Phil,
    Just to be sure, you are building "out of source" correct? Wierd things happen with cmake generation outerwise.

Allen

On Wednesday, September 19, 2012 05:27:46 PM 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
> mike.jackson@bluequartz.net 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.
>> Hdf-forum@hdfgroup.org
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@hdfgroup.org
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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

PS. Don't forget to run a cmd prompt as administrator if you use the install target and have the install path set to "c:\program files\hdf5" etc etc

···

-----Original Message-----
From: Biddiscombe, John A.
Sent: 19 September 2012 21:06
To: hdf-forum@hdfgroup.org
Subject: RE: [Hdf-forum] build only release libraries with visual studio

I use command line devenv rather than msbuild and this is my batch file

cd C:\cmakebuild\hdf5_1_8_cmake
devenv HDF5.sln /build "Debug" /Project "Install"
devenv HDF5.sln /build "Release" /Project "Install"

JB

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Allen D Byrne
Sent: 19 September 2012 18:10
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] build only release libraries with visual studio

Phil,
    Just to be sure, you are building "out of source" correct? Wierd things happen with cmake generation outerwise.

Allen

On Wednesday, September 19, 2012 05:27:46 PM 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
> mike.jackson@bluequartz.net 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.
>> Hdf-forum@hdfgroup.org
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@hdfgroup.org
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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

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
mike.jackson@bluequartz.net 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.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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

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

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

Hi,
I know how to convert h5 file to xml file, but don't know the otherway----How to convert hdf file to xml?

Can any body teach me?

Thanks

Baoyun

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)

JB

Baoyun,

Do you mean "to convert xml to HDF5 file"? If so, there is no such tool at this moment.
Or are you talking about HDF4 file (usually has .hdf extension)?

Elena

···

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Sep 20, 2012, at 1:34 PM, Baoyun Li wrote:

Hi,
I know how to convert h5 file to xml file, but don't know the otherway----How to convert hdf file to xml?

Can any body teach me?

Thanks

Baoyun
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

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)