usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Building UHD on Windows

JB
Joel Bratin
Thu, Nov 26, 2015 2:47 PM

Hi,

I built UHD from source on Windows 7 with MSVC using the guide provided online: http://files.ettus.com/manual/page_build_guide.html
I downloaded and used the latest boost Prebuilt Windows Binary from here: http://www.boost.org/users/download/

I run CMAKE and can generate the project but when I build the uhd project from the MSVC IDE I get a link error because it cannot find some of the Boost libraries. It's able to find the Boost headers files but not the libraries. I have to manually add the boost library path to the uhd project properties to build the uhd project. This is fine when I'm only building the uhd library but does not help me if I want to do an ALL_BUILD.

Did I miss a step while making the project with CMAKE? Is there an easy way to add the boost library path to all the projects or do I have to manually configure each one?

Thanks,
Joel Bratin

Hi, I built UHD from source on Windows 7 with MSVC using the guide provided online: http://files.ettus.com/manual/page_build_guide.html I downloaded and used the latest boost Prebuilt Windows Binary from here: http://www.boost.org/users/download/ I run CMAKE and can generate the project but when I build the uhd project from the MSVC IDE I get a link error because it cannot find some of the Boost libraries. It's able to find the Boost headers files but not the libraries. I have to manually add the boost library path to the uhd project properties to build the uhd project. This is fine when I'm only building the uhd library but does not help me if I want to do an ALL_BUILD. Did I miss a step while making the project with CMAKE? Is there an easy way to add the boost library path to all the projects or do I have to manually configure each one? Thanks, Joel Bratin
JB
Joel Bratin
Thu, Nov 26, 2015 3:15 PM

Got it!

I added a Boost_LIBRARY_DIRS entry that pointed to my library path before I configured the project in CMAKE.

Thanks,
Joel

From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Joel Bratin via USRP-users
Sent: Thursday, November 26, 2015 9:48 AM
To: usrp-users@lists.ettus.com
Subject: [USRP-users] Building UHD on Windows

Hi,

I built UHD from source on Windows 7 with MSVC using the guide provided online: http://files.ettus.com/manual/page_build_guide.html
I downloaded and used the latest boost Prebuilt Windows Binary from here: http://www.boost.org/users/download/

I run CMAKE and can generate the project but when I build the uhd project from the MSVC IDE I get a link error because it cannot find some of the Boost libraries. It's able to find the Boost headers files but not the libraries. I have to manually add the boost library path to the uhd project properties to build the uhd project. This is fine when I'm only building the uhd library but does not help me if I want to do an ALL_BUILD.

Did I miss a step while making the project with CMAKE? Is there an easy way to add the boost library path to all the projects or do I have to manually configure each one?

Thanks,
Joel Bratin

Got it! I added a Boost_LIBRARY_DIRS entry that pointed to my library path before I configured the project in CMAKE. Thanks, Joel From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Joel Bratin via USRP-users Sent: Thursday, November 26, 2015 9:48 AM To: usrp-users@lists.ettus.com Subject: [USRP-users] Building UHD on Windows Hi, I built UHD from source on Windows 7 with MSVC using the guide provided online: http://files.ettus.com/manual/page_build_guide.html I downloaded and used the latest boost Prebuilt Windows Binary from here: http://www.boost.org/users/download/ I run CMAKE and can generate the project but when I build the uhd project from the MSVC IDE I get a link error because it cannot find some of the Boost libraries. It's able to find the Boost headers files but not the libraries. I have to manually add the boost library path to the uhd project properties to build the uhd project. This is fine when I'm only building the uhd library but does not help me if I want to do an ALL_BUILD. Did I miss a step while making the project with CMAKE? Is there an easy way to add the boost library path to all the projects or do I have to manually configure each one? Thanks, Joel Bratin