Dear, Marcus.
Thanks, it's very helpful. But, stil somethings
unresolved.
What I've done is:
In CMakeLists.txt of root:
find_package(DVBT)
if (NOT DVBT_FOUND) /* ommited */ endif()
include_directories(
/* omitted */
${DVBT_INCLUDE_DIR}
)
Add cmake/Modules/[FindDVBT.cmake](
https://gist.github.com/gsongsong/49ec2cf84d7907c7ceb0).
It's quite long.
And I found that shared object (so) is
libgnuradio-dvbt.so.
In lib/CMakeLists.txt:
target_link_libraries(gnuradio-mymodule
${DVBT_LIBRARIES})
A result of build and installation is:
pkg_check_modules(PC_DVBT gnuradio-dvbt): returns
package 'gnuradio-dvbt' not found
Although I've changed gnuradio-dvbt to gr-dvbt, dvbt
gnuradio_dvbt, gr_dvbt, libgnuradio-dvbt and other possible
combinations, nothings different.
But DVBT_LIBRARY returns
/usr/local/lib/libgnuradio-dvbt.so and DVBT_INCLUDE_DIR
returns /usr/local/include.
I think this part is correct.
And in python:
>>> import mymodule
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python2.7/dist-packages/myOOTmodule/__init__.py",
line 51, in <module>
from myOOTmodule_swig import *
File
"/usr/local/lib/python2.7/dist-packages/myOOTmodule/myOOTmodule_swig.py",
line 28, in <module>
_myOOTmodule_swig = swig_import_helper()
File
"/usr/local/lib/python2.7/dist-packages/myOOTmodule/myOOTmodule_swig.py",
line 24, in swig_import_helper
_mod = imp.load_module('_myOOTmodule_swig', fp,
pathname, description)
ImportError: /usr/local/lib/libgnuradio-myOOTmodule.so:
undefined symbol: _ZN2gr4dvbt12reed_solomonC1Eiiiiiiii
It is the same as the previous.
.........
After some googling and searching, I found that gr-dvbt
is not present in 'pkg-config --list-all'.
I think it would be a bit relevant to this problem.
If it is the case, I'd better think to use IT++ Reed
Solomon.
I'll let you know if I have further progress.
Regards,