[Nexus] NeXus on Vista64

Pedro Vicente pedro.vicente at space-research.org
Thu Jul 1 16:51:56 BST 2010


Brian

The NeXus development repository

https://svn.nexusformat.org/code/trunk

has a Visual Studio 2008 solution that builds the library, the C++ bindings
and applications.

The root has a document

README.VS2008.pdf

that explains how to build. I tried linking  with HDF5 1.8.4.

Basically, you just have to define these environment variables to link with
HDF5, zlib, and szip (2 libraries needed by HDF5)

$(LIB_HDF5) $(LIB_ZLIB) $(LIB_SZIP)

For example

LIB_HDF5 = C:\hdf5-1.8.4\proj\hdf5\Debug\hdf5d.lib

which is the location built by the HDF5 project.

For any specific issues regarding building HDF5 1.8.5 , there is a hdf
mailing list at

Hdf-forum at hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

that you have to subscribe before posting

Pedro

----------------------
Pedro Vicente
pedro.vicente at space-research.org
http://www.space-research.org/

----- Original Message ----- 
From: "Brian Tieman" <tieman at aps.anl.gov>
To: <freddie.akeroyd at stfc.ac.uk>
Cc: <nexus at nexusformat.org>
Sent: Thursday, July 01, 2010 9:10 AM
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
> 



More information about the NeXus mailing list