473,413 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

PyTables:Installing hdf5

I am trying to install the WinXP version of PyTables which requires
hdf5 (from http://hdf.ncsa.uiuc.edu/HDF5/) as a pre-requisite.
However, I am at a loss as to how to install hdf5 - I have downloaded
the zipped version of hdf5 and unzipped it using WinZip but get a mass
of .exe and other files and have no clue as to how to proceed further.
Thanks in advance for any help.
Jul 18 '05 #1
5 8000
Ajith Prasad wrote:
I am trying to install the WinXP version of PyTables which requires
hdf5 (from http://hdf.ncsa.uiuc.edu/HDF5/) as a pre-requisite.
However, I am at a loss as to how to install hdf5 - I have downloaded
the zipped version of hdf5 and unzipped it using WinZip but get a mass
of .exe and other files and have no clue as to how to proceed further.
Thanks in advance for any help.


I assume you downloaded the pre-compiled binary from
ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/bin/windows/

Unpack the zip to a temp-dir and copy all the data inside the
5-163-winxp-net directory to say c:\hdf5. Then look in COMPILE.TXT in the
DLL section to find the following instruction for compiling HDF-enabled
programs:

DLLs:
----
Copy the hdf5dll.dll, hdf5_cppdll.dll, zlib.dll, and szlibdll.dll files
from the location in the HDF5, szip, zlib binary distributions to the
WINNT\SYSTEM directory.

Bring up MSVC++ .NET.

Select File->New->Projects->"Visual C++ Projects". Then select
"Managed C++ Empty Project" and enter a name.

Select Project->Properties->Linker->Input
Enter "hdf5dll.lib hdf5_cppdll.lib zlib.lib szlibdll.lib" at the
beginning of the "Additional Dependencies" line.

Select Project->Properties->C/C++->Preprocessor
Under Preprocessor Definitions, add: _HDF5USEDLL_
For C++ DLLs, add: HDF5CPP_USEDLL

Select Project->Properties->C/C++->Code Generation->Runtime Library,
and choose "multi-threaded DLL"

Select Tools->Options->Projects->VC++ Directories.
Select "Include Files" under "Show directories for".
Enter the paths for the HDF5, szlib and zlib include files.
Then select "Library Files" under "Show directories for".
Enter the paths for the HDF5, szlib and zlib DLL exported libraries.

Select Build->Compile <program>. (C or C++ program)
Select Build->Build <xxx.exe>.
Select Build->Execute <xxx.exe>.
Copying the dll's is essential for installing PyTables, but I don't know how
the PyTables installer works under Windows.

HTH, Maarten
--
================================================== =================
Maarten van Reeuwijk Thermal and Fluids Sciences
Phd student dept. of Multiscale Physics
www.ws.tn.tudelft.nl Delft University of Technology
Jul 18 '05 #2
Ajith Prasad wrote:
I am trying to install the WinXP version of PyTables which requires
hdf5 (from http://hdf.ncsa.uiuc.edu/HDF5/) as a pre-requisite.
However, I am at a loss as to how to install hdf5 - I have downloaded
the zipped version of hdf5 and unzipped it using WinZip but get a mass
of .exe and other files and have no clue as to how to proceed further.
Thanks in advance for any help.


You are after *.dll files only:
After unzipping:
ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/hdf...P-patch.tar.gz
find hdf5.dll and copy it to system32 directory.
Do the same with this files:
ftp://ftp.ncsa.uiuc.edu/HDF/szip/bin...l/szlibdll.dll
ftp://ftp.ncsa.uiuc.edu/HDF/gzip/bin...4/dll/zlib.dll

Run the tests from PyTables to confirm that they pass with this versions
of *.dll

Waldemar.
Jul 18 '05 #3
Thanks, Maareten. It certainly looks a formidable undertaking for a
non-programmer! I hope there will be a fully compiled version that
could be installed using a typical Windows installer.

Maarten van Reeuwijk <maarten@remove_this_ws.tn.tudelft.nl> wrote in message news:<cn**********@news.tudelft.nl>...
Ajith Prasad wrote:
I am trying to install the WinXP version of PyTables which requires
hdf5 (from http://hdf.ncsa.uiuc.edu/HDF5/) as a pre-requisite.
However, I am at a loss as to how to install hdf5 - I have downloaded
the zipped version of hdf5 and unzipped it using WinZip but get a mass
of .exe and other files and have no clue as to how to proceed further.
Thanks in advance for any help.


I assume you downloaded the pre-compiled binary from
ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/bin/windows/

Unpack the zip to a temp-dir and copy all the data inside the
5-163-winxp-net directory to say c:\hdf5. Then look in COMPILE.TXT in the
DLL section to find the following instruction for compiling HDF-enabled
programs:

DLLs:
----
Copy the hdf5dll.dll, hdf5_cppdll.dll, zlib.dll, and szlibdll.dll files
from the location in the HDF5, szip, zlib binary distributions to the
WINNT\SYSTEM directory.

Bring up MSVC++ .NET.

Select File->New->Projects->"Visual C++ Projects". Then select
"Managed C++ Empty Project" and enter a name.

Select Project->Properties->Linker->Input
Enter "hdf5dll.lib hdf5_cppdll.lib zlib.lib szlibdll.lib" at the
beginning of the "Additional Dependencies" line.

Select Project->Properties->C/C++->Preprocessor
Under Preprocessor Definitions, add: _HDF5USEDLL_
For C++ DLLs, add: HDF5CPP_USEDLL

Select Project->Properties->C/C++->Code Generation->Runtime Library,
and choose "multi-threaded DLL"

Select Tools->Options->Projects->VC++ Directories.
Select "Include Files" under "Show directories for".
Enter the paths for the HDF5, szlib and zlib include files.
Then select "Library Files" under "Show directories for".
Enter the paths for the HDF5, szlib and zlib DLL exported libraries.

Select Build->Compile <program>. (C or C++ program)
Select Build->Build <xxx.exe>.
Select Build->Execute <xxx.exe>.
Copying the dll's is essential for installing PyTables, but I don't know how
the PyTables installer works under Windows.

HTH, Maarten

Jul 18 '05 #4
Hi Maarten,
I am completely new to VC++ environment and trying to learn HDF5
format.
I copied the entire directory from
ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/bin/windows/ and also
ftp://ftp.ncsa.uiuc.edu/HDF/lib-external/zlib/and
ftp://ftp.ncsa.uiuc.edu/HDF/lib-external/szip/
I have followed all the steps that was explained in COMPILE.txt for
static libraries.But still, I am getting the following error...

Linking...
LINK : fatal error LNK1104: cannot open file "libm.lib"
Error executing link.exe.

Please let me know what else I have to do...

The steps I followed(copy-pasted from COMPILE.txt)

Bring up your Intel C++ or Fortran compiler under the Visual Studio
6.0 development environment.

Select File->New. Then select to create a "Win32 Console
Application"
and enter a name.

Select File->Open, and open up a C/C++/F90 program.

Select Project->Settings->Link
Enter the HDF5, ZLIB, and SZIP libraries at the beginning of the
"Object/library modules". These are the libraries:
hdf5.lib - HDF5 C Library
hdf5_cpp.lib - HDF5 C++ Library (optional)
hdf5_fortran.lib - HDF5 Fortran Library (optional)
zlib.lib szlib.lib - ZLIB and SZIP Libraries

Select Tools->Options->Directories.
Select "Include Files" under "Show directories for".
Enter the paths for the HDF5, szip, and zlib include files.
Then select "Library Files" under "Show directories for".
Enter the paths for the HDF5, szip, and zlib libraries.

Select Build->Compile <program>. (C, C++, F90 program)
Select Build->Build <xxx.exe>.
Select Build->Execute <xxx.exe>.

Thanks
Jul 18 '05 #5
prashna wrote:
Hi Maarten,
I am completely new to VC++ environment and trying to learn HDF5
format.
I copied the entire directory from
ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/bin/windows/ and also
ftp://ftp.ncsa.uiuc.edu/HDF/lib-external/zlib/and
ftp://ftp.ncsa.uiuc.edu/HDF/lib-external/szip/
I have followed all the steps that was explained in COMPILE.txt for
static libraries.But still, I am getting the following error...

Linking...
LINK : fatal error LNK1104: cannot open file "libm.lib"
Error executing link.exe.


Dunno have no recent experience with VC++. Just google on "libm visual c++"
and follow the first link.

Maarten

--
================================================== =================
Maarten van Reeuwijk Thermal and Fluids Sciences
Phd student dept. of Multiscale Physics
www.ws.tn.tudelft.nl Delft University of Technology
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Debian User | last post by:
Hi, I'm trying to discover a memory leak on a program of mine. I've taken several approaches, but the leak still resists to appear. First of all, I've tried to use the garbage collector to...
5
by: martijn | last post by:
H!, I'm testing things with Python with databases. But I have one big question. What is the 'fastest' database for the internet in combination with Python ? - with +/- 15 GB data. - fast...
7
by: Enigma Curry | last post by:
I need to store a large number of files in an archive. From Python, I need to be able to create an archive, put files into it, modify files that are already in it, and delete files already in it. ...
57
by: Chris Foote | last post by:
Hi all. I have the need to store a large (10M) number of keys in a hash table, based on a tuple of (long_integer, integer). The standard python dictionary works well for small numbers of keys,...
1
by: py_genetic | last post by:
I have an H5 file with one group (off the root) and two large main tables and I'm attempting to aggragate my data into 50+ new groups (off the root) with two tables per sub group. sys info:...
2
by: jsaacmk | last post by:
Has anyone had success installing the pyhdf library with python 2.4 under linux 2.6.18 (debian)? I have installed the HDF library and development package from apt and have downloaded the pyhdf...
18
by: Jens | last post by:
I'm starting a project in data mining, and I'm considering Python and Java as possible platforms. I'm conserned by performance. Most benchmarks report that Java is about 10-15 times faster than...
3
by: Sean Davis | last post by:
I have a set of numpy arrays which I would like to save to a gzip file. Here is an example without gzip: b=numpy.ones(1000000,dtype=numpy.uint8) a=numpy.zeros(1000000,dtype=numpy.uint8) fd =...
16
by: Steven D'Aprano | last post by:
On Tue, 09 Sep 2008 14:59:19 -0700, castironpi wrote: You've created a solution to a problem which (probably) only affects a very small number of people, at least judging by your use-cases....
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.