Altug, If you are using Visual Studio, the easiest thing to do is to create a new C++ Win32 Console project (or whatever project you need). From there you can add code files, write new ones or do whatever you need to do. At this point if the code compiles you will get an executable output.
You will have to add UHD and boost as "Additional Includes" and "Additional Libraries" in the C++ setting page for the application project and libraries in the Linker setting page. If you get stuck with this Google "visual studio use external libraries" and you should be able to find some help. Regards. ----------------------------- Jacob Knoles On Mon, Jul 10, 2017 at 8:30 AM, altuğ kaya <altugkaya1...@gmail.com> wrote: > Edit: > I copied the target (rx_samples_to_file) c++ code to the directory > uhd_release_003_009_002/examples/init_usrp and modified CMakeLists file > for rx_samples_to_file. What is next? > > Sincerely, > Altug > > On Mon, Jul 10, 2017 at 2:43 PM, altuğ kaya <altugkaya1...@gmail.com> > wrote: > >> Dear Derek and Jacob, >> >> Thank you for your time and effort, appreciated. >> >> I followed the instructions (https://kb.ettus.com/Building >> _and_Installing_the_USRP_Open_Source_Toolchain_(UHD_and_GNU_ >> Radio)_on_Windows) step by step, mimicked what it is told, and >> successfully finished the building process. >> >> Now, how can I generate an executable from a modified c++ code? >> >> I am looking forward to your answer, >> Altug >> >> On Thu, Jul 6, 2017 at 5:25 PM, Derek Kozel <derek.ko...@ettus.com> >> wrote: >> >>> Hi Altug and Jacob, >>> >>> Yes, the most recent Visual Studio we are actively supporting is 2015. >>> We will support 2017 with an upcoming release but as you note Jacob, Boost >>> and other dependencies are still catching up themselves. >>> >>> Jacob, Boost 1.64 is not officially supported but great to hear it is >>> working. We'll be checking compatibility with it as well. >>> >>> Regards, >>> Derek >>> >>> On Thu, Jul 6, 2017 at 4:01 PM, Jacob Knoles <knole...@gmail.com> wrote: >>> >>>> Altug, >>>> >>>> Certainly cannot skip boost as UHD requires it. I have tried doing the >>>> compilation using VS 2017 and could not get it to work, I believe that the >>>> Ettus team will is working on 2017 support but as of right now, to my >>>> knowledge, you will need to use VS 2015. As for boost, I am using 1.64.0 >>>> and it works just fine. >>>> >>>> ----------------------------- >>>> Jacob Knoles >>>> >>>> >>>> On Thu, Jul 6, 2017 at 5:49 AM, altuğ kaya via USRP-users < >>>> usrp-users@lists.ettus.com> wrote: >>>> >>>>> First of all, thank you Derek. >>>>> >>>>> According to some forums on the net Visual Studio 2017 is not >>>>> supported by Boost. Should I close my ears and download 1.64.0, or should >>>>> I >>>>> just skip boost? >>>>> >>>>> I am looking forward to your reply, >>>>> Altug >>>>> >>>>> On Thu, Jul 6, 2017 at 1:18 PM, Derek Kozel <derek.ko...@ettus.com> >>>>> wrote: >>>>> >>>>>> Hello Altug, >>>>>> >>>>>> We have a guide for building UHD on Windows in the Knowledge Base. It >>>>>> includes building and installing the library as well as examples. >>>>>> https://kb.ettus.com/Building_and_Installing_the_USRP_Open_S >>>>>> ource_Toolchain_(UHD_and_GNU_Radio)_on_Windows >>>>>> >>>>>> Regards, >>>>>> Derek >>>>>> >>>>>> On Thu, Jul 6, 2017 at 11:23 AM, altuğ kaya via USRP-users < >>>>>> usrp-users@lists.ettus.com> wrote: >>>>>> >>>>>>> Hello everyone, >>>>>>> >>>>>>> I downloaded the uhd-master folder (https://github.com/EttusResea >>>>>>> rch/uhd/tree/master) and I would like to edit one of the example, >>>>>>> called rx_samples_to_file. However when I try to compile it by using >>>>>>> cygwin >>>>>>> on a windows machine, it cannot find the necessary libraries, such as >>>>>>> tune_request, etc. >>>>>>> >>>>>>> How can I generate an executable from rx_samples_to_file.cpp? >>>>>>> >>>>>>> Sincerely, >>>>>>> Altug >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com