[Discuss-gnuradio] A question about source code of the "File Source" Block

2018-04-08 Thread ruiy
Hello I am reading the source code of the "File Source" Block and have a question about the source code. In the source code, it firstly opens file by using the d_new_fp variable, then update by using the d_fp variable to replace it. Why not using the d_fp variable to open the file directly

[Discuss-gnuradio] How to link OOT module in CMakeLists.txt

2018-03-04 Thread ruiy
Now I create a OOT module named slave_demo, and I have installed it. And I can find the dynamic lib in /usr/local/lib/libgnuradio-slave-demo.so. So I link it in my CMakeLists.txt by writing like this: target_link_libraries(target ... /usr/local/lib/libgnuradio-slave-demo.so ...). I suppose

[Discuss-gnuradio] 回复: How to compile the example alone?

2018-03-03 Thread ruiy
quot;<hauk...@gmail.com>; 发送时间: 2018年3月3日(星期六) 晚上7:24 收件人: "ruiy"<2997215...@qq.com>; 抄送: "discuss-gnuradio"<discuss-gnuradio@gnu.org>; 主题: Re: [Discuss-gnuradio] How to compile the example alone? Hello ruiy! The display_qt example is compiled when you com

[Discuss-gnuradio] How to compile the example alone??

2018-03-03 Thread ruiy
I discover a example about how to compile the qtgui in c++. The example's path is "gnuradio/gr-qtgui/examples/c++/display_qt.cc"(The website is https://github.com/gnuradio/gnuradio/tree/master/gr-qtgui/examples/c%2B%2B). But I don't know how to compile it singlely. I try to rewrite the