discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] mytx.cpp


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] mytx.cpp
Date: Tue, 13 May 2014 14:01:40 -0400

On Tue, May 13, 2014 at 1:00 PM, xianda <address@hidden> wrote:
Hello
          Thank you for your patience.
          And i run 3 steps:
          1.copy mytx.cpp to the uhd/host/example
          2.change the CMakeLists.txt on the uhd/host/example,and just:
SET(example_sources
    benchmark_rate.cpp
    network_relay.cpp
    rx_multi_samples.cpp
    rx_samples_to_file.cpp
    rx_samples_to_udp.cpp
    rx_timed_samples.cpp
    test_dboard_coercion.cpp
    test_messages.cpp
    test_pps_input.cpp
    test_timed_commands.cpp
    transport_hammer.cpp
    tx_bursts.cpp
    tx_samples_from_file.cpp
    tx_timed_samples.cpp
    tx_waveforms.cpp
    txrx_loopback_to_file.cpp
    latency_test.cpp
    fpgpio.cpp
    mytx.cpp
)
       3. cd build
           cmake ..
           make
   This is right?

Another question:
           If i just write a cpp,what is the most convenient to run my .cpp document?To do something like up examples or by other ways?
Thank you very much.You help me a lot.
Best regards


Glad we could help, but you're really asking questions about compiling, code management, and cmake, which are not specific to GNU Radio. If someone here can help you and has the time to, great, but there's a ton of resources on the internet to help you understand these things.

Tom


 
At 2014-05-14 00:32:37,"Martin Braun" <address@hidden> wrote:
>On 13.05.2014 17:31, xianda wrote:
>> Hello
>> Thank you a lot.
>> 1.But now the header document in my tx.cpp is same as the
>> tx_waveforms.cpp.Now what should i do?How to change the CMakeList.txt?
>
>It's just a text file. Add your own file in there.
>
>> 2.I try to test.I copy the tx_waveforms.cpp to other catalogue.I try to
>> use the g++ to test,but it go wrong?Must i use the cmake?
>
>It definitely helps. If you manually compile, you might forget a -L or
>-I or whatever.
>
>M
>> Thank you.
>> Best regards
>>
>> 在 2014-05-13 22:47:34,"Tom Rondeau" <address@hidden> 写道:
>>
>>     On Tue, May 13, 2014 at 9:24 AM, xianda <address@hidden
>>     <mailto:address@hidden>> wrote:
>>
>>         Hello
>>                    Thank you for your reply.
>>                    1.Because i just know a little about the cmake.If i
>>         put my document into another folder,maybe i should write the
>>         CMakeLists.txt.But if i put my document into the
>>         uhd/host/examples,maybe i change a little of the
>>         CMakeLists.txt.Is <http://CMakeLists.txt.Is> it right?
>>
>>
>>     Yes, cribbing from an existing file is an easy way to get started.
>>     But this is really now a cmake issue, not a GNU Radio one. If
>>     modifying an existing cmake file doesn't work or you need more help,
>>     you'll have to study cmake a bit to work with it.
>>
>>                    2.Can you give me some advices  about my new transmit
>>         document,namely,mytx.cpp?
>>                    3.What is the difference between gr-uhd and
>>         uhd?Gr-uhd is just a part of UHD?Is it right?
>>                    Thank you very much.
>>
>>
>>     gr-uhd is the wrapper around the library that allows it to fit into
>>     and be used by GNU Radio. UHD is the external driver for the OS to
>>     talk to USRP devices.
>>
>>     Tom
>>
>>         Best regards
>>         在 2014-05-13 16:02:57,"Martin Braun" <address@hidden
>>         <mailto:address@hidden>> 写道:
>>          >On 13.05.2014 09:35, 王先达 wrote:
>>          >>   Hello all
>>          >>                I write a c++ document mytx.cpp and i place
>>         it into the
>>          >> uhd/host/build/examples.And then what should i do to let it
>>         run?Should i
>>          >> type the "make" command in the shell or do other
>>         things?Thank you.
>>          >> Best regards,
>>          >> Xianda
>>          >
>>          >You don't have to put it in examples, but you can use the
>>         CMakeLists.txt
>>          >file in this directory to figure out how to set up a build
>>         environment.
>>          >
>>          >The usual flow of cmake, make will compile your program then.
>>          >
>>          >Martin
>>          >
>>          >
>>          >_______________________________________________
>>          >Discuss-gnuradio mailing list
>>          >address@hidden <mailto:address@hidden>
>>          >https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>         _______________________________________________
>>         Discuss-gnuradio mailing list
>>         address@hidden <mailto:address@hidden>
>>         https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>
>
>_______________________________________________
>Discuss-gnuradio mailing list
>address@hidden
>https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]