Commit Graph

917 Commits

Author SHA1 Message Date
Scott Wegner
1f4ee5485e [svn-r15313] Purpose: Support Visual Studio 2008 on Windows
Description:
Write documentation for building HDF5 with the latest version of Visual Studio, 2008.  The process is very similar to building with Visual Studio 2005, but with an automatic project-file conversion beforehand.

Also adapt commandline build scripts for Visual Studio 2008 as well.

Tested:
VS2008 on WinXP
2008-07-02 14:49:20 -05:00
Scott Wegner
0c0e746ce7 [svn-r15302] Purpose: Support Intel Visual Fortran 10.1 from Visual Studio and Windows command line
Description:
Modify Windows documentation to support Intel Visual Fortran 10.1.  We have tested it in our Virtual machines, and have fixed the problems we were encountering.

Also, add a new parameter to the hdf5build.BAT and hdf5bt.BAT build scripts to support IVF 10.1.
2008-06-30 14:19:11 -05:00
Scott Wegner
372af0302f [svn-r15289] Purpose: Project Cleanup / Support directories with spaces
Description:
On Windows, we manage dynamically-generated code through "post-build" steps in Visual Studio.  However, the command for it wasn't checking to see if the code already existed, so it was re-generating in each build (and thus re-generating all dependencies).  To overcome, we simply check if the source file exists before generating it.

Also, put all paths inside quotes so we can handle directory names with spaces.

Tested:
VS2005 on WinXP
2008-06-27 11:55:02 -05:00
Scott Wegner
0dd254246c [svn-r15287] Purpose: Fix project settings for Intel Fortran 10.1
Description:
A typo in the project output file name was causing Intel Fortran 10.1 to crash.  The output file was set to "$(OutDir)\hdf5_fortranddll.dll   " (three trailing spaces).  IVF 9.1 ignored this error and continued gracefully.  However, IVF 10.1 would simply crash.  With this fix, we can now build on IVF 10.1 (so far..)

Tested:
VS2008 w/ IVF 10.1 on WinXP
2008-06-27 11:26:41 -05:00
Neil Fortner
11b12d8f96 [svn-r15284] Fixed bug 1155, added fillval.c back to windows test file, other minor cleanup in fillval.c.
Tested: kagiso
Same fix in trunk: kagiso (parallel), smirom, linew
2008-06-26 11:18:22 -05:00
Scott Wegner
c3a26ef402 [svn-r15272] Purpose: Disable fillval test on Windows
Description:
The fillval test uses random input to test various fill cases.  Certain boundary cases cause the test to fail, which produces sporadic errors on Windows.  There is a bug filed for the issue here:
http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1155

We will disable the test until the bug is fixed.

Tested:
None, simply disabled.
2008-06-25 10:12:39 -05:00
Scott Wegner
6df2bbd6e9 [svn-r15181] Purpose: _WIN32 macro cleanup
Description:
As part of our Windows cleanup, we try to remove windows-specific tweaks in the source code.  There are many instances where Windows code is introduces via ifdef's.  We re-evaluate whether they are still required, and found that many of them are not.  Others we change to "feature"-specific code, rather than Windows-specific.

Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagisopp, smirom, linew)
2008-06-09 12:31:22 -05:00
Scott Wegner
0b5f34bfa6 [svn-r15160] Purpose: Separate Windows function macro definitions to win32defs.h
Description:
In library code, we try not to use system calls directly, but instead use the HD{function} macro instead.  This way, we can map special versions of the call on particular systems.  Previously, it was all done in H5private.h.  However, in an effort to clean up platform-specific definitions, we move all of the Windows macros into a separate file, win32defs.h.  This way, we can use the non-Posix versions that Visual Studio sends warnings about.

Some macros are set specifically in the platform-specific header files.  Then, any macros left unset will be set by the "default" implementation in H5private.h.

This checkin also cleans up various source files to use the HD* macros when possible.

Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagiso, linew, smirom)
2008-06-05 16:39:30 -05:00
Scott Wegner
1c63211301 [svn-r15152] Purpose: Add testhdf5_1_8fortran[dll] Windows projects as dependencies to all_fortran
Description:
The projects testhdf5_1_8fortran[dll] which test the new fortran features in HDF5 1.8 were not registered as dependencies to the "all_fortran" pseudo-project.  As a result, the projects would not be built if you simply build all_fortran in Visual Studio, rather than "Build Solution".  This is a very minor cleanup, but is neccessary to be consistent in our projects.

Tested:
VS2005 on WinXP x64
2008-06-05 14:56:23 -05:00
Scott Wegner
7e8df66a0e [svn-r15144] Purpose: Add new h5ls test to Windows
Description:
A new test case was added to the general testh5ls script.  This update adds the test to Windows as well.

Tested:
VS2005 on WinXP
2008-06-05 10:10:23 -05:00
Scott Wegner
73fe712356 [svn-r15125] Purpose: Cleanup unneeded Windows source
Description:
Previously, we maintained some source files that are commonly generated dynamically on other systems.  Now, we also generate them on Windows as well.  We should remove them from the repository so old versions are not accidentally used.

Also, clean up the project files to organize generator programs.

Tested:
VS2005 on WinXP
VS2005 on WinXP x64
VS.NET on WinXP
2008-06-02 14:59:45 -05:00
Scott Wegner
f1bfdda38c [svn-r15121] Purpose: Support Visual Studio .NET builds from command-line
Description:
In our Windows command-line build script, we now support building with Visual Studio .NET, although VS2005 is still the default.  Building with VS.NET still imposes the same feature restrictions as through the IDE:
-- 64-bit builds are unsupported
-- Fortran is unsupported

Tested:
VS.NET on WinXP
VS2005 on WinXP
2008-06-02 11:17:49 -05:00
Scott Wegner
8953ecfe9d [svn-r15120] Purpose: Ignore Windows POSIX-Depreciation warnings in Visual Studio 2005
Description:
On Windows, we receive many compiler warnings because Microsoft has implemented many "security-enhanced" versions of POSIX functions.  However, the old versions still exist, so the warnings can be ignored.  By setting a preprocessor definition, we can disable many of these warnings.  On a typical HDF5 build, this reduces the number of warnings from ~1500 to ~600

Tested:
VS2005 on WinXP
2008-06-02 11:14:56 -05:00
Scott Wegner
c65d5ffe8d [svn-r15118] Purpose: Backport Windows project cleanup from trunk: remove ignored system library, standardize program debug information, and unify Windows h5tinit
Description:
These changes are made via a user's suggestion, bugzilla bug #1164.  These have all been tested in the trunk, and are stable/favorable changes.

In many of our project files on Windows, we have our linker setting set to ignore old link libraries-- either libc.lib or libcd.lib.  This is a relic from converting project files from old versions of Visual Studio to newer ones, and is unnecessary.  We remove the ignored library from the project files.  This actually makes no difference in the output binaries.

In our debug project configurations, many of the projects were generating debug information for "Program Database and Edit & Continue".  Other projects were using different settings, or none at all. We standardize to use "Program Database" setting, because it generates much smaller .obj files and cuts out unnecessary debug information.

Previously, there was Windows-dependent code inside H5detect.c, because not all projects could access the gethostname() function.  However, we standardize our project-files to link with WS2_32.lib, so now this function is available.  Thus, the Windows-specific code has been removed from H5detect.c.

Tested:
VS2005 on WinXP
VS.NET on WinXP
2008-06-02 10:36:55 -05:00
Scott Wegner
454b061aa6 [svn-r15107] Purpose: Provide better fix for h5dump xml test failure on Windows
Description:
Shortly before the release, we noticed that one of our h5dump xml Windows tests failed when used with a release tarball.  This is because of the Unix-style EOL characters in the expected output.  For the release, we simply skipped the test.  However, we can instead convert the expected output to Windows EOL format, and run the test.  This is a backport from the HDF5 trunk.

Tested:
VS2005 on WinXP
2008-05-30 14:15:08 -05:00
Scott Wegner
92fe8775dd [svn-r15077] Purpose: Comment out one Windows test that fails in release tarball
Description:
On test fails from the release tarball.  Specifically, the h5diff xml test for tsaf.h5.xml.  For some reason, fc (Windows diff utility) detects differences from the expected output if the file has unix-style end-of-line characters.  It only happens for this test.  I suspect it is because the file is so long, but it's too late to debug for the release.  Simply comment it out until we can fix it.

Tested:
VS2005 on WinXP (32- and 64-bit)
2008-05-27 15:25:15 -05:00
Scott Wegner
85608c722a [svn-r15055] Purpose: Update Windows h5repack test script
Description:
Add a function to test old h5repack syntax, as well as a new test case for it.

Tested:
VS2005 on WinXP
2008-05-21 10:28:43 -05:00
Scott Wegner
d11a2b8ba6 [svn-r15039] Purpose: Update h5repack test script
Description:
1 new test added for command-line syntax compatibility

Tested:
VS2005 on WinXP
2008-05-19 10:32:15 -05:00
Scott Wegner
4261982ea1 [svn-r14994] Purpose: Add support for building 64-bit Windows binaries from command line
Description:
We can dynamically detect the host architecture using the PROCESSOR_ARCHITECTURE variable.  This allows us to setup our build paths accordingly and build 64-bit Windows binaries from the command line.  This allows us to run autotests on 64-bit Windows as well.

Tested:
VS2005 on WinXP x64
VS2005 on WinXP x86
2008-05-14 09:54:21 -05:00
Scott Wegner
475ce84ae6 [svn-r14986] Purpose: Add Windows fixes for new Fortran code.
Description:
There were a number of small tweaks we needed to make to add the new fortran_1_8 code on Windows.  We create new project files, add new source to them, add the test to our test suite, and fix a few typos in the Windows-specific source code.

Tested:
VS2005 on WinXP
2008-05-12 16:31:45 -05:00
Scott Wegner
8380b1827e [svn-r14983] Purpose: Update h5dump test script on Windows
Description:
One test has been added to h5dump test for custom output formats.  This adds the test on Windows as well.

Tested:
VS2005 on WinXP
2008-05-12 15:47:31 -05:00
Scott Wegner
c954ba63a4 [svn-r14868] Purpose: Add new source files to Windows projects
Description:
Two new source files have been added, H5Dchunk.c and H5Dscatgath.c.  This checkin adds the files to the Windows project files as well.

Tested:
VS.NET on WinXP
2008-04-28 09:09:50 -05:00
Scott Wegner
ed32d8e900 [svn-r14858] Purpose: Fix typo in Windows test script
Description:
A small typo in the main Windows test script was causing the C++ library tests not to run by default.

Tested:
VS2005 on WinXP x64
2008-04-21 13:05:34 -05:00
Scott Wegner
e3e9bbafce [svn-r14856] Purpose: Fix error message when with Windows pthreads
Description:
When building HDF5 with thread safety on Windows, the err_compat test was failing because our output was being parsed incorrectly.  Rather than having a thread number in the error stack trace, there will be the string "some thread: no way to know the thread (IDs): from pthread on windows:".  This checkin now takes this into account, and modifies the output accordingly.

Tested:
VS2005 on WinXP with Pthreads
2008-04-21 12:35:25 -05:00
Scott Wegner
b6fc679940 [svn-r14844] Purpose: Fix link input in Windows HL Fortran examples
Description:
Previously, our Windows projects for HL Fortran examples were using outdated library names for our cstub code.  As a result, they wouldn't build correctly.  This checkin brings them up-to-date.

Also, add hdf5_hl.lib as a dependency to hdf5_hl_fortran.lib.  This goes un-noticed when building the complete VS solution, but should be required when only building hdf5_hl_fortran.lib

Tested:
VS2005 on WinXP
2008-04-14 16:32:39 -05:00
Scott Wegner
8fb201dd65 [svn-r14842] Purpose: Fix Windows Fortran examples runtime libraries
Description:
In the Windows Fortran example projects, the runtime library used for linking static-debug version was set incorrectly.  This was a result of the project being upgraded from VS6 where we used Single-threaded libraries.  Those libraries are no longer supported, so we use [Debug] Multithreaded [DLL] now instead.

Tested:
VS2005 on WinXP
2008-04-14 12:13:10 -05:00
Scott Wegner
af355e20a4 [svn-r14840] Purpose: Add new Windows macro for links test
Description:
Many new path-specific tests have been added via the "links" test.  Because Windows' path format is non-standard, we need a special macro defined to handle it specially.  Note that 2 tests still fail with this macro defined, but it should be fixed soon.

Tested:
VS2005 on WinXP
2008-04-14 10:47:49 -05:00
Scott Wegner
ac378bcfb1 [svn-r14837] Purpose: Remove ohdr_gentst from Windows projects
Description:
The ohdr_gentst project exists in order to re-create test input files that are distributed with the source.  These projects aren't built by default on most platforms, and the source isn't distributed in release builds.  To avoid confusion and bloat, we remove the Windows version of this project.

Tested:
None, only removed
2008-04-14 10:15:03 -05:00
Scott Wegner
e622c634d5 [svn-r14835] Purpose: Remove English-specific code from Windows test scripts
Description:
In previous versions of Windows, the builtin 'FC' command (diff equivalent) didn't return proper exit status.  As a work-around, we parsed the message returned to check status.  This relies on English return messages.

In current Windows XP and Windows Vista, FC will return exit status as expected, so we can remove this workaround.  Older platforms where we would need this workaround are no longer supported.

Tested:
VS2005 on Windows XP
Small test on Windows Vista
2008-04-14 09:59:52 -05:00
Scott Wegner
b4bae33f23 [svn-r14820] Purpose: Disable ohdr_gentst project by default on Windows.
Description:
The ohdr_gentst project exists to dynamically generate the test files for ohdr test, which also exist in the repository.  The test is only run on other platforms when the configure flag --enable-build-all is specified.  Moreover, the source code ohdr_gentst.c is marked as _DO_NO_DISTRIBUTE_ in the MANIFEST.

As a result, there was a problem in the release tarball that the Windows projects would fail when trying to build this project.  To correct this, we no longer build this by default.  We will also need to release a FAQ/patch for the HDF5 1.8.0 release.

Tested:
VS2005 on WinXP
2008-04-08 15:10:41 -05:00
Scott Wegner
d8dfc1fb3f [svn-r14769] Purpose: Remove spurious szip link directory in h5repack debug project
Description:
As pointed out by a user, we added an un-needed link directory for szip which is machine-dependent and, in his case, problematic.  We can safely remove this reference because we already include the szip link directory elsewhere.

Tested:
None, simply removed
2008-03-24 13:04:36 -05:00
Scott Wegner
c635149be5 [svn-r14696] Purpose: Backport typo fix from trunk
Description:
A small typo in the recent update to installhdf5lib.bat caused the C++ header files not to be installed for the debug version of the libraries.  This corrects the issue.

Tested:
VS2005 on WinXP
2008-03-03 14:45:13 -05:00
Scott Wegner
fd50c1ae9b [svn-r14674] Purpose: Backport Windows updates from trunk
Description:
Allow building Fortran libraries from the Windows commandline

Tested:
VS2005 on WinXP
2008-02-25 15:50:21 -05:00
Scott Wegner
acfc6ce5ba [svn-r14669] Purpose: Remove old project files and folders to bring MANIFEST up-to-date
Description:
Somehow these folders didn't get deleted in a previous checkin.  This should bring things up-to-date
2008-02-25 12:07:45 -05:00
Scott Wegner
dd7dcb5b07 [svn-r14668] Purpose: Backport of added Windows HL examples from trunk
Description:
The Windows suite of examples for HL C was a very small subset of the examples that exist for other platforms.  Now we have all of the HL C examples-- integrated into the VS projects files, and batch test scripts.
2008-02-25 11:46:02 -05:00
Scott Wegner
711f06f2ea [svn-r14604] Purpose: Backport of Windows project updates from trunk
Description:
Add hdf5 library as a dependency to hdf5_hl library in Windows project files

For some reason, the hdf5_hl library didn't have hdf5 listed as a dependency.  This isn't normally a problem, because building "all" will build hdf5 library.  However, when a user tries to build only hdf5_hl, hdf5 library wouldn't be built.

Although not technically required for compiling the library code, the hdf5 library is needed for linking any applications, so it's a natural dependency.

Tested:
VS2005 on WinXP
VNET on WinXP
2008-02-18 13:26:29 -05:00
Scott Wegner
bce180dd5c [svn-r14600] Purpose: Backport of Windows typo fix from the trunk
Description:
Purpose: Fix very minor typo in Windows h5import test script
Single-letter typo in the Windows test script was causing us to return the wrong error code in some cases.

Tested:
VS2005 on WinXP
2008-02-18 11:49:57 -05:00
Scott Wegner
728e308764 [svn-r14597] Purpose: Backport Windows cleanup checkins from trunk
Description:
Make the Windows copy_hdf.bat a little cleaner/safer, and produce useful output in installhdf5lib.bat

Previously, all of our build output would simply go to stdout/stderr for command-line builds.  We can pipe this into a log file as a whole, but the complete logfile becomes very large very quickly.  Instead, we give the user an option to place build results and test results into separate logs (or even the same).  This will help keeping track of results in our automated testing.

Tested:
VS2005 on WinXP
2008-02-18 10:48:34 -05:00
Scott Wegner
b746d34dc7 [svn-r14459] Purpose: Small patch to Windows install script
Description:
A user pointed out that one of our Fortran dependencies wasn't getting installed correctly due to a wrong path in our install file.  After reviewing, I've applied the patch that he's proposed.
2008-01-25 17:09:22 -05:00
Scott Wegner
70c30abe02 [svn-r14447] Purpose: Fix output directory for h5reparttst project
Description:
For some reason, the h5reparttst output folder wasn't set correcty for 64-bit Windows.  This may have gotten accidentally changed with other intermediate project file changes.

Tested:
VS2005 on WinXP x64
2008-01-21 11:44:56 -05:00
Scott Wegner
506d25b5f2 [svn-r14443] Purpose: Update Windows h5dump test scriptPurpose: Update Windows h5dump test script
Description:
There was another update to the main h5dump test script.  This checkin brings those edits to the Windows script as well.

Tested:
VS2005 w/ WinXP
2008-01-18 17:18:13 -05:00
Scott Wegner
63e111fb51 [svn-r14433] Purpose: Fix reference in the Windows batch-build script
Description:
In the Windows command line build script, there was a reference to the "typegen" project, which generates h5detect before HDF5 is built.  Now, we integrate h5detect into the overall build process, and typegen has been removed.  This checkin removes the reference in the batch script.  This fixes bugzilla bug 1021.
2008-01-16 09:26:40 -05:00
Scott Wegner
7246c763de [svn-r14426] Purpose: Update Windows h5dump test script
Description:
There were a number of updates to the main h5dump test script.  This checkin brings those edits to the Windows script as well.

Tested:
VS2005 w/ WinXP
2008-01-16 08:11:22 -05:00
Scott Wegner
6a5cb6a480 [svn-r14416] Purpose: Add source files to Windows projects
Description:
This catches up Windows to most of the new source files that have been added.  Specifically, H5FDpkg.h and H5FDspace.c have been added to the library projects, and tcoords.c has been added to testhdf5.  This goes for VS2005 and VS6 project files.

Tested:
Only built, VS2005
2008-01-15 10:48:07 -05:00
Scott Wegner
3b33bd982c [svn-r14331] Purpose: Update Windows h5ls test script
Details:
We no longer need to parse the h5ls output to remove "Modified" tags.  This makes it much easier to test on Windows, because we don't need to emulate `sed`.

Tested:
VS2005 on WinXP
2007-12-10 08:46:53 -05:00
Scott Wegner
529d974dff [svn-r14319] Purpose: Update error handling in h5ls, uncomment test
Description:
Larry was able to track down the bug in the h5ls test script and change it around to check for an expected error code for each test.  With this, we are now able to uncomment the broken test on Windows.

Tested:
VS2005 on WinXP
2007-12-04 08:55:40 -05:00
Scott Wegner
967c186011 [svn-r14315] Purpose: Update Windows h5repack test script
Description:
Added new test for long switch names, which was added to the general test script a few days ago.

Tested:
VS2005 on WinXP
2007-12-03 10:46:52 -05:00
Scott Wegner
bba104b0a0 [svn-r14303] Purpose: Update h5ls test script on Windows.
Description:
The h5ls test script was recently updated on Linux.  This makes the same changes on Windows.  Also, we had to comment out one of our tests, because h5ls returns an error-code that is giving false-positives.

Tested:
VS2005 on WinXP
2007-11-29 09:14:18 -05:00
Scott Wegner
30d4db8912 [svn-r14302] Purpose: Update Windows test scripts for recent changes
Description:
Minor changes were recently made in the linux test scripts for h5diff and h5repack.  This brings Windows up-to-date.

Note: I am still working on updates to testh5ls.bat-- there is one test that is failing, but should be ready soon.

Tested:
VS2005 on WinXP
2007-11-29 08:36:57 -05:00
Scott Wegner
586ac517a1 [svn-r14301] Purpose: Remove references to deleted source file from Windows project files.
Description:
h5repack_list.c was deleted from the repository recently.  This check-in also removes references in the Windows library.

Tested:
Built with VS2005
2007-11-29 08:32:47 -05:00