[Nexus] NeXus on Vista64
freddie.akeroyd at stfc.ac.uk
freddie.akeroyd at stfc.ac.uk
Thu Jul 1 16:48:38 BST 2010
Brian,
I'm using Visual Studio 2005 with the pre-build HDF5 1.8 binaries and
H5_USE_16_API
_HDF5USEDLL_
HDF5
pre-processor symbols defined - I'm not sure how "H5_USE_16_API" and
"H5_USE_16_API_DEFAULT" differ but could that be the cause of the
problem?
Regards,
Freddie
-----Original Message-----
From: nexus-bounces at nexusformat.org
[mailto:nexus-bounces at nexusformat.org] On Behalf Of Brian Tieman
Sent: 01 July 2010 15:10
To: Akeroyd, Freddie (STFC,RAL,ISIS)
Cc: nexus at nexusformat.org
Subject: Re: [Nexus] NeXus on Vista64
Freddie,
I'm using Visual Studio 2008. I'm trying to use HDF5-1.8.5. I had to
download the sources for 1.8.5 because I couldn't get the pre-built
binaries to link. I was able to get the hdf5dll project to build
without too much difficulty but some of the hdf5 tools failed to build
do to linker errors. The tools that did build work fine. I've tried
H5dumpdll, H5debugdll and H5diffdll--all of which use the dll I'm trying
to link into napi and all of which work as expected.
Since I'm trying to build against 1.8.5 and it looks like napi wants to
use the 1.6 calls, I had to set H5_USE_16_API_DEFAULT to get napi to
build. Could this be the problem? The NXDir application fails at the
line
NXstatus NX5open(CONSTCHAR *filename, NXaccess am, NXhandle* pHandle)
...
fapl = H5Pcreate(H5P_FILE_ACCESS);
...
in napi5.c. HP5create is *not* one of the HDF5 calls whose interface
changed between 1.6 and 1.8. I do have working 32 bit code but it's
built against napi 3.0 and HDF5 1.6.5.
Are you able to build against the HDF5 prebuilt 64 bit binaries? If so,
and you're using VS2008, maybe you could send me your project file for
building napi?
Otherwise, I think I'll try stepping back to HDF5 1.6.5 and see if that
helps...
Thanks!
Brian
On 7/1/2010 3:19 AM, freddie.akeroyd at stfc.ac.uk wrote:
> Brian,
>
> We run 64 bit NeXus / HDF5 on Vista as part of our instrument control
> system - I have currently only compiled the library and not the
> applications for 64 bit, but the resulting files can be read by 32bit
> NeXus applications. I used Visual Studio to compile for 64 bit - are
you
> using that or MinGW? Can you read your HDF5 generated NeXus files with
a
> 32bit rather than 64bit NeXus application?
>
> Regards,
>
> Freddie
>
> -----Original Message-----
> From: nexus-bounces at nexusformat.org
> [mailto:nexus-bounces at nexusformat.org] On Behalf Of Brian Tieman
> Sent: 30 June 2010 23:14
> To: nexus at nexusformat.org
> Subject: [Nexus] NeXus on Vista64
>
> Has anyone built napi for 64 bit windows? I think I've managed to do
it
>
> but I'm getting errors when trying to open HDF5 files from napi.
>
> As a test, I built NXDir for 64 bit. If I pass it an HDF4 file, it
> works fine. If I pass it an HDF5 file I get the error "ERROR: cannot
> open file: test.h5" I'm 90% certain my HDF5 build is OK. H5dump
works
> without error and it's functionally doing the same thing as NXDir.
I've
>
> never used NXDir before so I went on to build my own code which calls
> napi and I get the same results--HDF4 works fine, HDF5 fails in the
same
>
> manner.
>
> I've tried both napi 4.2.0 and 4.2.1 and both fail the same way.
>
> Does anyone use napi 4.2.1 with HDF5? Maybe there's a bug in napi?
>
> Any help would be greatly appreciated.
>
> Thanks!
>
> Brian
> _______________________________________________
> NeXus mailing list
> NeXus at nexusformat.org
> http://lists.nexusformat.org/mailman/listinfo/nexus
>
_______________________________________________
NeXus mailing list
NeXus at nexusformat.org
http://lists.nexusformat.org/mailman/listinfo/nexus
--
Scanned by iCritical.
More information about the NeXus
mailing list