Re: [USRP-users] MSVC + CMake

2018-12-08 Thread Marcus Müller via USRP-users
Hi Martin,

I'll simply answer although I'm definitely not a Windows developer, so
from my very small and selective set of windows dev experiences:

Oh, that sounds like the problem that you can't link release
executables to debug libraries, or vice versa. I was very surprised by
that, and it still bewilders me that it's a problem and MSVC doesn't
scream by itself. 

Hope that somehow helps; if someone more versed in MSVC could jump in,
I'd greatly appreciate that!

Best regards,
Marcus

On Fri, 2018-12-07 at 14:43 -0500, Martin K wrote:
> 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 0x7FFAA1C02075 (uhd.dll) in init_usrp.exe:
> 0xC005: Access violation reading location 0x00462090
> 
> Thanks for your help,
> Martin Klingensmith
> 
> 
> 
> 
> On Fri, Dec 7, 2018 at 12:36 PM Marcus Müller <
> marcus.muel...@ettus.com> 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
> > > USRP-users@lists.ettus.com
> > > 
> > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> > 
> 
> 


___
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


Re: [USRP-users] MSVC + CMake

2018-12-07 Thread Martin K via USRP-users
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 0x7FFAA1C02075 (uhd.dll) in init_usrp.exe:
0xC005: Access violation reading location 0x00462090

Thanks for your help,
Martin Klingensmith




On Fri, Dec 7, 2018 at 12:36 PM Marcus Müller 
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
> > USRP-users@lists.ettus.com
> > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
>

-- 
Martin K.
___
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


Re: [USRP-users] MSVC + CMake

2018-12-07 Thread Marcus Müller via USRP-users
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
> USRP-users@lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


___
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


[USRP-users] MSVC + CMake

2018-12-06 Thread Martin K via USRP-users
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
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com