This version (30 May 2016 10:30) was approved by pcercuei.The Previously approved version (24 Nov 2014 12:39) is available.Diff

Building libiio in Visual Studio

  • Launch CMake, and specify the location of the source code, and the directory where the build will occur.
    Enable the Grouped and Advanced options (optional).
  • Then click on Configure.
    CMake will ask you what generator to use for the project. Select Use default native compilers and the generator that matches your version of Visual Studio.
  • CMake will most likely throw an error, as the libxml2 library is not in the compiler's default search paths:
  • Set the correct paths to LIBXML2_INCLUDE_DIR, LIBXML2_LIBRARIES and LIBXML2_XMLLINT_EXECUTABLE as shown below. Then, click again on Configure; the errors should disappear.
  • Click on Generate.
    Now, CMake generated a Visual Studio solution file in the build directory, named “iio.sln”. You can open this file with Visual Studio to build the project.
resources/tools-software/linux-software/building_libiio_for_windows.txt · Last modified: 30 May 2016 10:30 by pcercuei