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 <https://github.com/gnuradio/gnuradio>/gr-qtgui > <https://github.com/gnuradio/gnuradio/tree/master/gr-qtgui>/examples > <https://github.com/gnuradio/gnuradio/tree/master/gr-qtgui/examples>/c++/ > display_qt.cc > <https://github.com/gnuradio/gnuradio/blob/master/gr-qtgui/examples/c%2B%2B/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