Can't find Alembic/Util/Config.h

60 views
Skip to first unread message

jiang fan

unread,
May 11, 2022, 5:21:03 AM5/11/22
to alembic-discussion
Hello, I'm using alembic as a library in my project on windows.  I've built it by using  : cmake -DALEMBIC_SHARED_LIBS=OFF -DImath_DIR:PATH="D:\dev\vcpkg\vcpkg\installed\x64-windows\share\imath" -G "Visual Studio 16 2019"  ..

And the Alembic.sln and some .vcxproj files are generated correctly. 

but when i tried to include <Alembic/Abc/All.h> in my project, it says :
alembic-master\lib\Alembic\Util\Foundation.h(39,10): fatal error C1083: Impossible to open the  fichier include : 'Alembic/Util/Config.h' : No such file or directory

I've checked in the Alembic/Util/,  there is no Config.h but a Config.h.in.

Could someone tell me how to solve the problem?
Thanks.

Lucas Miller

unread,
May 12, 2022, 3:04:47 PM5/12/22
to alembic-discussion
Are you building in your source location?

I usually create a separate build directory: 

Lets say:  D:\dev\build\alembic

Then do:

cd D:\dev\alembic

cmake -DALEMBIC_SHARED_LIBS=OFF -DImath_DIR:PATH="D:\dev\vcpkg\vcpkg\installed\x64-windows\share\imath" -G "Visual Studio 16 2019" D:\dev\alembic_source

cmake --build . 

If Alembic/Util/Config.h isn't created in your Alembic build directory, then something likely failed to configure.

Hope this helps,

Lucas


Reply all
Reply to author
Forward
0 new messages