• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1              libiio Windows binary snapshot - README
2
3   *********************************************************************
4   *  The latest version of this snapshot can always be downloaded at: *
5   *               https://github.com/analogdevicesinc/libiio          *
6   *********************************************************************
7
8In this archive, you should find the following directories:
9o ./include : Common include files
10o ./MinGW32 : 32-bit binaries compiled by the MinGW toolchain
11o ./MinGW64 : 64-bit binaries compiled by the MinGW toolchain
12o ./MS32    : 32-bit binaries compiled by the MicroSoft toolchain
13o ./MS64    : 364bit binaries compiled by the MicroSoft toolchain
14
15o Visual Studio:
16  - Open existing or create a new project for your application
17  - Copy iio.h, from the include\ directory, into your project and make sure that
18    the location where the file reside appears in the 'Additional Include
19    Directories' section (Configuration Properties -> C/C++ -> General).
20  - Copy the relevant .lib file from MS32\ or MS64\ and add 'libiio.lib' to
21    your 'Additional Dependencies' (Configuration Properties -> Linker -> Input)
22    Also make sure that the directory where libiio.lib resides is added to
23    'Additional Library Directories' (Configuration Properties -> Linker
24    -> General)
25  - If you use the static version of the libiio library, make sure that
26    'Runtime Library' is set to 'Multi-threaded DLL (/MD)' (Configuration
27    Properties -> C/C++ -> Code Generation).
28  - Compile and run your application. If you use the DLL version of libiio,
29    remember that you need to have a copy of the DLL either in the runtime
30    directory or in system32
31
32o WDK/DDK:
33  - The following is an example of a sources files that you can use to compile
34    a libiio 1.0 based console application. In this sample ..\libiio\ is the
35    directory where you would have copied libiio.h as well as the relevant
36    libiio.lib
37
38	TARGETNAME=your_app
39	TARGETTYPE=PROGRAM
40	USE_MSVCRT=1
41	UMTYPE=console
42	INCLUDES=..\libiio;$(DDK_INC_PATH)
43	TARGETLIBS=..\libiio\libiio.lib
44	SOURCES=your_app.c
45
46o MinGW/cygwin
47  - Copy libiio.h, from include/ to your default include directory,
48    and copy the MinGW32/ or MinGW64/ .a files to your default library directory.
49    Or, if you don't want to use the default locations, make sure that you feed
50    the relevant -I and -L options to the compiler.
51  - Add the '-liio' linker option when compiling.
52
53o Additional information:
54  - The libiio API documentation can be accessed at:
55    http://analogdevicesinc.github.io/libiio/
56  - For some libiio samples (including source), please have a look in examples/
57    and tests/ directories
58  - The MinGW and MS generated DLLs are fully interchangeable, provided that you
59    use the import libs provided or generate one from the .def also provided.
60  - If you find any issue, please visit
61    http://analogdevicesinc.github.io/libiio/
62    and check the Issues section
63