win build foundation.h issue

340 views
Skip to first unread message

imflove_craft

unread,
Jan 30, 2012, 5:31:32 PM1/30/12
to alembic-d...@googlegroups.com
hello, i'm trying to build windows version using helge scripts modified for my enviroment( win7 visual studio 2008 express + windows 7 sdk net3.5 for x64 compiler) but after running build_alembic i'm getting folowing error :

Compiling...
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.
cl /I "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include" /I "C:\Users\Igor\Documents\alembic_helge\out\i64\boost\include\boost-1_42" /I "C:\Users\Igor\Documents\alembic_helge\out\i64\IlmBase\include" /I "C:\Users\Igor\Documents\alembic_helge\out\i64\hdf5\include" /I "C:\Users\Igor\Documents\alembic_helge\lib" /D "BOOST_ALL_NO_LIB=1" /D "NDEBUG=1" /D "PLATFORM_WINDOWS" /D "PLATFORM=WINDOWS" /D "CMAKE_INTDIR=\"RelWithDebInfo\"" /D "_MBCS" /FD /EHsc /MT /Fo"AlembicUtil.dir\RelWithDebInfo\\" /Fd"C:\Users\Igor\Documents\alembic_helge\out\i64\lib\Alembic\Util\RelWithDebInfo/AlembicUtil.pdb" /c /TP   /U _DEBUG /U _DEBUG -UDEBUG
   ..\..\..\..\..\lib\Alembic\Util\Murmur3.cpp
   ..\..\..\..\..\lib\Alembic\Util\TokenMap.cpp
Murmur3.cpp
C:\Users\Igor\Documents\alembic_helge\lib\Alembic/Util/Foundation.h(51) : fatal error C1083: Cannot open include file: 'half.h': No such file or directory
TokenMap.cpp
C:\Users\Igor\Documents\alembic_helge\lib\Alembic/Util/Foundation.h(51) : fatal error C1083: Cannot open include file: 'half.h': No such file or directory
Generating Code...

Build log was saved at "file://c:\Users\Igor\Documents\alembic_helge\out\i64\lib\Alembic\Util\AlembicUtil.dir\RelWithDebInfo\BuildLog.htm"
AlembicUtil - 2 error(s), 0 warning(s)

if anyone could suggest anything i would really appreciate, thanks in advance,

Igor,

btw, i can provide more info if necessary

 

Nicholas Yue

unread,
Jan 30, 2012, 5:35:49 PM1/30/12
to alembic-d...@googlegroups.com

Hi Igor,

Looking at the compiler command line option

/I "C:\Users\Igor\Documents\alembic_helge\out\i64\IlmBase\include"

I assume your are building ILMBase yourself.

You may find that the Half.h file is actually inside a subdirectory
"OpenEXR" i.e. the following may help

/I "C:\Users\Igor\Documents\alembic_helge\out\i64\IlmBase\include\OpenEXR"

Regards
--
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue

Ravi Jagannadhan

unread,
Jan 30, 2012, 5:36:00 PM1/30/12
to alembic-d...@googlegroups.com
On the face of it, the issue seems to be that your include paths in
your Visual Studio project aren't set to allow the compiler to find
the .h files it says it's missing.

> --
> 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

--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

imflove_craft

unread,
Feb 1, 2012, 3:18:55 AM2/1/12
to alembic-d...@googlegroups.com
hello Nicholas and Ravi, sorry for late reply, i was busy (still am) so haven't had time to go back to alembic, but you are onto something cause although i don't have openexr folder nor half.h in ilmbase\include but i will investigate scripts or manual copy it, then try again, thanks for help, i'll post my progress here

cheers,

Igor

imflove_craft

unread,
Feb 2, 2012, 8:28:14 AM2/2/12
to alembic-d...@googlegroups.com
ok, builds nicely now, thanks for your help Nicholas, script just copied elut.h and tofloat.h from ilmbase build into include you pointed out, had to modify the script to copy all headers, now onto 1.0.4 source, thanks maybe i'll put my winbuild clone onto code.google so other can look at it
Reply all
Reply to author
Forward
0 new messages