Reputation: 53
I wanted to use ADTF library in my visual studio project. Do i need to build the library from my machine to use it? The instructions provided with the library are not clear to me since i haven't used cmake build before.
Any help in this regard is greatly appreciated.
Upvotes: 1
Views: 454
Reputation: 51
The following instructions are for ADTF File Library 0.7:
Linux
First build a_util
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=<any-install-dir> -Da_util_cmake_enable_documentation=OFF -Da_util_cmake_enable_integrated_tests=OFF . && make && make install
Then build ddl
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=<any-install-dir> -Da_util_DIR=<a_util-install-dir-given-above> -Dddl_cmake_enable_documentation=OFF -Dddl_cmake_enable_tests=OFF -Dddl_cmake_enable_generator_tools=OFF -Dddl_cmake_enable_installation=ON . && make && make install
Then build ifhd
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=<any-install-dir> -Da_util_DIR=<a_util-install-dir-given-above> -Dddl_DIR=<ddl-install-dir-given-above> -Difhd_cmake_enable_documentation=OFF -Difhd_cmake_enable_integrated_tests=OFF . && make && make install
Windows cmake steps remain the same. It will generate visual studio solution that you can use to build and edit.
Upvotes: 1
Reputation: 311
To be fair, the documentation is grab and outdated. Also the repository is not up to date mirrored from internal development. But you do not have to compile the package by yourself, you can access the ADTF File Library / IFHD directly as prebuild package, either standalone or within ADTF delivery. All you need to know you will find here. The current version is 0.9.0 and has been released yesterday for VS2019 VC142, gcc7 (x86_64 and aarch64).
Upvotes: 1