Building SCOPY on Windows

Building SCOPY on Windows (notes)

In the paragraph “Installing the Dependencies” it seems that the correct operations would be:

source ../CI/appveyor/set_build_env_msys.sh

../CI/appveyor/install_msys_deps.sh

Is it correct to ignore the following errors?

error: '/c/old_msys_deps_mingw64/mingw-w64-x86_64-libusb-1.0.21-2-any.pkg.tar.xz': could not find or read package

error: '/c/old_msys_deps_mingw64/mingw-w64-x86_64-breakpad-git-r1680.70914b2d-1-any.pkg.tar.xz': could not find or read package

 

In the 32-bit Windows discussion, the sentence beginning with “The file is should be …”, delete “is” (or “should be”).

When executing the following:

cmake -GNinja $SCOPY_CMAKE_OPTS $CMAKE_OPTS ../

, I ran into an issue with the execution of the file CMakeLists.txt. In particular, this process fails at line 348 when the default option CLONE_IIO_EMU is set to the default value “ON”  on line 341.

What is the correct method to get around this error (other than setting this option to OFF)?

If I do set the option CLONE_IIO_EMU to “OFF”, I am able to get to the ninja command, but the build fails (near the end):

[267/273] Building RC object CMakeFiles/scopy.dir/resources/properties.rc.res

FAILED: CMakeFiles/scopy.dir/resources/properties.rc.res

x86_64-w64-mingw32-windres -O coff -DBOOST_ALL_DYN_LINK -DGLOG_NO_ABBREVIATED_SEVERITIES -DGOOGLE_GLOG_DLL_DECL=__declspec(dllimport) -DGOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS=__declspec(dllimport) -DHAS_CONSTEXPR=1 -DHAVE_WINDOWS_H -DLIBM2K_ENABLE_LOG -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT=1 -DQT_NO_KEYWORDS -DQT_QML_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DUSING_WINSOCK -DWIN32_LEAN_AND_MEAN -I C:/msys64/home/pvatk/scopy/build -I C:/msys64/home/pvatk/scopy -I C:/msys64/home/pvatk/scopy/build/scopy_autogen/include -I C:/msys64/mingw64/include/glib-2.0 -I C:/msys64/mingw64/lib/glib-2.0/include -I C:/msys64/mingw64/include/python3.8 -I C:/msys64/mingw64/include/glibmm-2.4 -I C:/msys64/mingw64/lib/glibmm-2.4/include -I C:/msys64/mingw64/include/sigc++-2.0 -I C:/msys64/mingw64/lib/sigc++-2.0/include -I C:/msys64/home/pvatk/scopy/src -I /breakpad -I C:/msys64/home/pvatk/scopy/iio-emu -I C:/msys64/mingw64/include -I C:/msys64/mingw64/include/QtWidgets -I C:/msys64/mingw64/include/QtGui -I C:/msys64/mingw64/include/QtCore -I C:/msys64/mingw64/share/qt5/mkspecs/win32-g++ -I C:/msys64/mingw64/include/QtConcurrent -I C:/msys64/mingw64/include/QtQml -I C:/msys64/mingw64/include/QtNetwork -I C:/msys64/mingw64/include/QtUiTools -I C:/msys64/mingw64/include/QtSvg -I C:/msys64/mingw64/include/QtXml  C:/msys64/home/pvatk/scopy/build/resources/properties.rc CMakeFiles/scopy.dir/resources/properties.rc.res

CreateProcess failed: The system cannot find the file specified.

ninja: fatal: GetOverlappedResult: The handle is invalid.

 

How can this error be resolved?

 

Thank You for your kind consideration.

 

Paul