Hello everyone,
I created an OOT block,decoder, using gr-modtool but I get the following Attribute error when I run my flowgraph. I guess there is a problem with the external libraries linking against to the implementation.
File "/home/bugratulay/workarea-gnuradio/TRC_WORK/gr-ieee802-11/examples/wifi_loopback.py", line 191, in __init__
self.asn_decoder_0 = asn.decoder()
AttributeError: 'module' object has no attribute 'decoder'
My decoder_imp.cc includes 'J2735_2016.h' and some other headers related to external libs. I put the headers and 'J2735_2016.cpp' in the lib folder and I changed
the following lines of CMakeLists.txt (the one in the lib folder) to find the external libs.
list(APPEND asn_sources
decoder_impl.cc
J2735_2016.cpp
)
list(APPEND asn_libs
cppsoed
cpptoed
osscpp
${Boost_LIBRARIES}
${GNURADIO_ALL_LIBRARIES}
${LOG4CPP_LIBRARIES}
)
add_library(gnuradio-asn SHARED ${asn_sources})
target_link_libraries(gnuradio-asn ${Boost_LIBRARIES} ${asn_libs})
set_target_properties(gnuradio-asn PROPERTIES DEFINE_SYMBOL "gnuradio_asn_EXPORTS")
Inside /usr/local/lib, I run ldd command and I saw that the external libs are linked against to the .so file.
-ldd libgnuradio-asn.so
libcppsoed.so => /usr/local/lib/libcppsoed.so (0x00007fe0229af000)
libcpptoed.so => /usr/local/lib/libcpptoed.so (0x00007fe0226b5000)
libosscpp.so => /usr/local/lib/libosscpp.so (0x00007fe02247c000)
I've never done such linking before. Am I doing something wrong ? or what might be the other possibilities for this Attribute Error?
Best,
-Bugra