Marcus, Thank you. I ran the 'INSTALL' target in Visual Studio and it installed FindUHD.cmake successfully. Previously I had generated an installer with the NSIS tool and I don't think it installed FindUHD.cmake.
CMake now finds UHD. Is it normal that I cannot Debug a UHD client program in Visual Studio? The init_usrp sample application works in Release configuration but crashes in Debug. Exception thrown at 0x00007FFAA1C02075 (uhd.dll) in init_usrp.exe: 0xC0000005: Access violation reading location 0x0000004620900000 Thanks for your help, Martin Klingensmith On Fri, Dec 7, 2018 at 12:36 PM Marcus Müller <[email protected]> wrote: > Dear Mr. Klingensmith, > > puh, it's been a while since I worked under Windows with CMake, but do > try > cmake -DCMAKE_MODULE_PATH=/path/to/where/FindUHD.cmake .. > > or using ccmake to add that path to the CMAKE_MODULE_PATH list. > > > Best regards, > Marcus > > On Thu, 2018-12-06 at 16:29 -0500, Martin K via USRP-users wrote: > > I just built UHD for my version of Visual Studio (15.5 == 2017) > > the examples, such as uhd_usrp_probe, execute normally. > > > > I am trying to make a new project and build the init_usrp example. > > The CMake GUI for Windows cannot find UHD: > > > > CMake Error at CMakeLists.txt:33 (find_package): > > By not providing "FindUHD.cmake" in CMAKE_MODULE_PATH this project > > has > > asked CMake to find a package configuration file provided by "UHD", > > but > > CMake did not find one. > > > > Could not find a package configuration file provided by "UHD" > > (requested > > version 3.8.0) with any of the following names: > > > > UHDConfig.cmake > > uhd-config.cmake > > > > Add the installation prefix of "UHD" to CMAKE_PREFIX_PATH or set > > "UHD_DIR" > > to a directory containing one of the above files. If "UHD" > > provides a > > separate development package or SDK, be sure it has been installed. > > > > > > I tried setting UHD_DIR, UHD_INCLUDE_DIRS, UHD_LIBRARIES in the CMake > > cache without any improvements. > > > > What is the best way to get CMake to find UHD on Windows? > > > > Thank you, > > -- > > Martin Klingensmith > > > > _______________________________________________ > > USRP-users mailing list > > [email protected] > > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com > > -- Martin K.
_______________________________________________ USRP-users mailing list [email protected] http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
