Thank you very much! I have read your code. It's helpful.
Actually, the problem I met is in here 
https://lists.gnu.org/archive/html/discuss-gnuradio/2018-03/msg00004.html
when I use qt5's library to compile, it will exit code 139 (interrupt by signal 
11: SIGSEGV). The error is showed in the last picture of that question. And I 
also try to compile it by qt4 and it's normal except for some messy code.
I am very curious about why you not met the question when you compile program 
by qt5 libraries.
Thanks again!






------------------ 原始邮件 ------------------
发件人: "Håkon Vågsether"<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 compile GNU Radio with gr-qtgui. So 
the executable should have the following path:


gnuradio/build/gr-qtgui/examples/c++/display_qt


If you want to rewrite CMakeLists.txt to compile it alone, I believe I can help 
with that. :) I'm not an expert in CMake, but I can point you to a 
CMakeLists.txt that I've used for the same purpose.


I have uploaded it at: 
https://gist.github.com/haakov/7561494f3eaf77d4259d5abea33c0c4e


Hope this helps!


Best regards

Håkon Vågsether


Den lør. 3. mar. 2018, 11.34 skrev ruiy <2997215...@qq.com>:

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 
CMakeLists.txt. However, I fail...So if anyone know how to compile the 
display_qt.cc or how to rewrite the CMakeLists.txt, please teach me. Thanks 
very much!
_______________________________________________
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to