I have a similar problem as described in https://lists.gnu.org/archive/html/discuss-gnuradio/2015-05/msg00195.html.
When I try to run tests (with Python), I get: *Traceback (most recent call last):* * File "python/myblock.py", line 12, in <module>* * from myproj.myproj_swig import mitigation_source* * File "/home/user/gr/lib/python2.7/site-packages/myproj/myproj_swig.py", line 28, in <module>* * _myproj_swig = swig_import_helper()* * File "/home/user/gr/lib/python2.7/site-packages/myproj/myproj_swig.py", line 24, in swig_import_helper* * _mod = imp.load_module('_myproj_swig', fp, pathname, description)* *ImportError: /home/user/gr/lib/libgnuradio-myproj-1.0.0git.so.0.0.0: undefined symbol: _ZN3uhd11time_spec_tC1Eld* I did add "UHD" to the line starting with "set(GR_REQUIRED_COMPONENTS" (in my root CMakeLists.txt) so I get the output of *Checking for GNU Radio Module: UHD* *-- Checking for module 'gnuradio-uhd'* *-- Found gnuradio-uhd, version 3.7.11.1-as* * * INCLUDES=/home/user/gr/include* * * LIBS=/home/user/gr/lib/libgnuradio-uhd.so;/home/user/gr/lib/libgnuradio-runtime.so;/home/user/gr/lib/libgnuradio-pmt.so;/usr/lib/liblog4cpp.so* *-- Found GNURADIO_UHD: /home/user/gr/lib/libgnuradio-uhd.so;/home/user/gr/lib/libgnuradio-runtime.so;/home/user/gr/lib/libgnuradio-pmt.so;/usr/lib/liblog4cpp.so * *GNURADIO_UHD_FOUND = TRUE* I also have in my lib/CMakeLists.txt file ${GNURADIO_ALL_LIBRARIES} in both target_link_libraries() lists. I have "#include <uhd/types/time_spec.hpp>" in my header file. But for some reason, it doesn't seem to link gnuradio-uhd: *readelf -d /home/user/gr/lib/libgnuradio-myproj-1.0.0git.so.0.0.0* * 0x0000000000000001 (NEEDED) Shared library: [libboost_system.so.1.58.0]* * 0x0000000000000001 (NEEDED) Shared library: [libgnuradio-runtime-3.7.11.1-as.so.0.0.0]* * 0x0000000000000001 (NEEDED) Shared library: [libgnuradio-pmt-3.7.11.1-as.so.0.0.0]* * 0x0000000000000001 (NEEDED) Shared library: [liblog4cpp.so.5]* * 0x0000000000000001 (NEEDED) Shared library: [libgnuradio-filter-3.7.11.1-as.so.0.0.0]* * 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]* * 0x0000000000000001 (NEEDED) Shared library: [libm.so.6]* * 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]* * 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]* * 0x000000000000000e (SONAME) Library soname: [libgnuradio-myproj-1.0.0git.so.0.0.0]*
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio