-
Notifications
You must be signed in to change notification settings - Fork 32
Building libm2k on Windows
AlexandraTrifan edited this page Jun 4, 2019
·
3 revisions
libiio
- Download the libiio zip from this page.
- Choose a location and extract libiio.
CMake
- Install CMake using an installer from the official page.
Swig
- Download the SWIG zip from this page.
- Choose a location and extract SWIG.
Python3
- Download and install Python3 from the official page.
- Set path to program files or C:\Python37.
- Clone libm2k or download zip and extract it.
- Use the CMake-gui and open libm2k/CMakeLists.txt. At startup, select platform x64.
-
Press the Configure button. Some of the parameters will be set to their correct value.
-
Browse the location where you extracted libiio and set IIO_LIBRARIES to libiio/MS64/libiio.lib and IIO_INCLUDE libiio/MS64/libiio.lib.
-
Press the Configure button again.
-
Set the PYTHON_EXECUTABLE to have the python install folder (Python37/python.exe).
-
Press the Configure button again.
-
Browse the location where you extracted SWIG and the SWIG_DIR to that location.
-
Press the Configure button again.
-
If no errors, click Generate button in CMake-gui
-
Click Open Project in CMake-gui - this will open Visual Studio.
Build solution in visual studio
If you want to install the library in the system:
- Open a Command Prompt in the libiio folder and copy all the .dll files in C:\Windows\System32 .
- Open a Command Prompt in the build folder and copy libm2k.dll in C:\Windows\System32 .
- In the build folder run pip install wheel and python setup.py bdist_wheel in order to build and install the Python Bindings.
A Windows installer will be provided soon.