Alembic for windows compilation, hdf5 error

260 views
Skip to first unread message

Kamil Hepner

unread,
Nov 15, 2011, 4:16:09 PM11/15/11
to alembic-d...@googlegroups.com
Hi! Guys

In my current company we tried to compile Alembic under win64... but we are stuck... we have a problem with hdf5 compilation. We are mostly working on Linux and we don't have experience with compiling stuff on windows. But I believe there is some one who will be able help us.
We compiled zlib and boost using Peter Segal guide, and we have got following when we try compile hdf5 errors:

C:\output\alembic\i64\hdf5>cmake -G "Visual Studio 9 2008 Win64" -D HDF5_BUILD_HL_LIB:BOOL=ON -D CMAKE_C_FLAGS=" /MT " -D CMAKE_CXX_FLAGS=" /MT " C:\source\alembic\contrib\
hdf5-1.8.5-patch1
-- Configure Checks that still need to be implemented
--   GetConsoleScreenBufferInfo function for Windows
-- Configuring done
-- Generating done
-- Build files have been written to: C:/output/alembic/i64/hdf5
 
C:\output\alembic\i64\hdf5>vcbuild /nologo       HDF5.sln "RelWithDebInfo|x64"
Build started: Project: ZERO_CHECK, Configuration: RelWithDebInfo|x64
ZERO_CHECK - up-to-date
Build started: Project: H5detect, Configuration: RelWithDebInfo|x64
Compiling...
Project : error PRJ0002 : Error result -1073741701 returned from 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64\cl.exe'.
Build log was saved at "file://c:\output\alembic\i64\hdf5\src\H5detect.dir\RelWithDebInfo\BuildLog.htm"
H5detect - 1 error(s), 0 warning(s)
Build started: Project: H5make_libsettings, Configuration: RelWithDebInfo|x64
Compiling...
Project : error PRJ0002 : Error result -1073741701 returned from 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64\cl.exe'.
Build log was saved at "file://c:\output\alembic\i64\hdf5\src\H5make_libsettings.dir\RelWithDebInfo\BuildLog.htm"
H5make_libsettings - 1 error(s), 0 warning(s)
Build started: Project: hdf5, Configuration: RelWithDebInfo|x64
Generating ../H5Tinit.c
Project : error PRJ0019: A tool returned an error code from "Generating ../H5Tinit.c"
Build log was saved at "file://c:\output\alembic\i64\hdf5\src\hdf5.dir\RelWithDebInfo\BuildLog.htm"
hdf5 - 1 error(s), 0 warning(s)
Build started: Project: hdf5_hl, Configuration: RelWithDebInfo|x64
Compiling...
Project : error PRJ0002 : Error result -1073741701 returned from 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64\cl.exe'.
Build log was saved at "file://c:\output\alembic\i64\hdf5\hl\src\hdf5_hl.dir\RelWithDebInfo\BuildLog.htm"
hdf5_hl - 1 error(s), 0 warning(s)
Build started: Project: ALL_BUILD, Configuration: RelWithDebInfo|x64
ALL_BUILD - up-to-date
Skipped building project C:\output\alembic\i64\hdf5\INSTALL.vcproj for solution configuration RELWITHDEBINFO|X64. This project is excluded from build for this solution configuration.
 
Build complete: 2 Projects succeeded, 4 Projects failed, 1 Projects skipped

Thanks for any help!
Kamil

brian leair

unread,
Nov 15, 2011, 4:50:53 PM11/15/11
to alembic-d...@googlegroups.com
Hi Kamil,

I'm sorry I don't have a complete list of steps to tell you to follow for building HDF5 on windows.
I can tell you that I downloaded the HDF5 tarball, and then I read through release_docs/INSTALL_Windows.txt and followed a few of the steps to rename the hdf5 folder and I ran \hdf5\windows\copy_hdf.bat.

Once I did that I was able to use the visual studio solution file in windows\proj\all.sln.  This solutions has a lot of separate projects. I built hdf5 and hdf5_dll and hdf5_hl.    I didn't actually use cmake to build the hdf5 lib and dll files. I just used the solution and then I copied the files out.

I hope that helps you get further.  Building Alembic (and it's dependent libraries) on windows It isn't as smooth or easy as I'd like, but it is possible :).

cheers,
-brian

--
You received this message because you are subscribed to the Google
Groups "alembic-discussion" group.
To post to this group, send email to alembic-d...@googlegroups.com
To unsubscribe from this group, send email to
alembic-discuss...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/alembic-discussion?hl=en
 
For RSS or Atom feeds related to Alembic, see:
 
http://groups.google.com/group/alembic-dev/feeds
 
http://groups.google.com/group/alembic-discussion/feeds

colasf

unread,
Nov 17, 2011, 1:46:49 PM11/17/11
to alembic-discussion
Hi brian,
can you share the compiled version of alembic for windows ?

cheers
colas
Reply all
Reply to author
Forward
0 new messages