<div dir="ltr">Hello,<div><br></div><div>I'm creating a GNU Radio OOT module in C++ language, in which I instantiate an osmosdr source. The syntax is : osmosdr::source ::sptr m_source = osmosdr::source::make();</div><div>I also implement other blocks in my design.</div><div><br></div><div>In CMakeLists.txt file, I specify all these components:</div><div>set(GR_REQUIRED_COMPONENTS RUNTIME BLOCKS FFT OSMOSDR)</div><div>find_package(Gnuradio-osdmosdr REQUIRED)</div><div>include_directories(</div><div>...</div><div>${GNURADIO_OSMOSDR_INCLUDE_DIRS}</div><div>)</div><div>link_directories(</div><div>...</div><div>${GNURADIO_OSMOSDR_LIBRARY_DIRS}  <br></div><div>)</div><div><br></div><div>In cmake/Modules folder, I copied the FindGnuradio-osmosdr.cmake file from gqrx project.</div><div><br></div><div>The logs of cmake command show that the osmosdr library is found:</div><div>-- checking for module 'gnuradio-osmosdr'</div><div>-- Found gnuradio-osmosdr, version v0.1.4-127-g4d83c606</div><div>-- Found GNURADIO_OSMOSDR: /usr/local/lib/libgnuradio-osmosdr.so </div><div><br></div><div>After compiling the module (cmake .. -> make -> make install -> ldconfig), I got the error 'AttributeError: 'module' object has no attribute 'test'. I analysed the undefined symbol, and it was due to osmosdr module.</div><div><br></div><div>Any suggestion to solve this problem?</div><div><br></div><div>PS:</div><div>- I'm working on Ubuntu 16.04 (VM), gnuradio 3.7.9, cmake 3.5.1</div><div>- In GRC, the osmosdr source and sink work fine</div><div><br></div><div>Thanks.</div></div>