Thanks for the reply Josh! That definitely seems to have solved part of
my problem. I did still have to include the ${UHD_INCLUDE_DIRS} directly
(added include_directories(/usr/local/include/uhd/types) to my
CMakeLIsts.txt). If you have a suggestion that might make this
unnecessary I will give it a shot but this I can live with. I am now
able to compile the Module containing my Block successfully. However,
when I run another block from the module or try to compile my C++
flowgraphs I get the same errors. Any thoughts? I can't rule out an
error in my code but this wouldn't explain the GRC error.
--
Dan
Error from GRC
> Executing: "/home/daniel/top_block.py"
>
> Traceback (most recent call last):
> File "/home/daniel/top_block.py", line 15, in <module>
> import DL_Hitemp_Blocks
> File
> "/usr/local/lib/python2.7/dist-packages/DL_Hitemp_Blocks/__init__.py",
> line 45, in <module>
> from DL_Hitemp_Blocks_swig import *
> File
> "/usr/local/lib/python2.7/dist-packages/DL_Hitemp_Blocks/DL_Hitemp_Blocks_swig.py",
> line 26, in <module>
> _DL_Hitemp_Blocks_swig = swig_import_helper()
> File
> "/usr/local/lib/python2.7/dist-packages/DL_Hitemp_Blocks/DL_Hitemp_Blocks_swig.py",
> line 22, in swig_import_helper
> _mod = imp.load_module('_DL_Hitemp_Blocks_swig', fp, pathname,
> description)
> ImportError: /usr/local/lib/libgnuradio-DL_Hitemp_Blocks.so: undefined
> symbol: _ZN3uhd14tune_request_tC1Ed
Error after running make my C++ flowgraph
> Scanning dependencies of target top_block
> [100%] Building CXX object CMakeFiles/top_block.dir/top_block.o
> /home/daniel/gnuradio/gnuradio_projects/Flowgraphs/c++/Interrogator_Routine/top_block.cc:
> In function 'int main(int, char**)':
> /home/daniel/gnuradio/gnuradio_projects/Flowgraphs/c++/Interrogator_Routine/top_block.cc:114:99:
> error: expected primary-expression before '(' token
> /home/daniel/gnuradio/gnuradio_projects/Flowgraphs/c++/Interrogator_Routine/top_block.cc:114:124:
> error: expected primary-expression before 'double'
> /home/daniel/gnuradio/gnuradio_projects/Flowgraphs/c++/Interrogator_Routine/top_block.cc:117:2:
> error: expected ',' or ';' before 'tb'
> make[2]: *** [CMakeFiles/top_block.dir/top_block.o] Error 1
> make[1]: *** [CMakeFiles/top_block.dir/all] Error 2
> make: *** [all] Error 2
On 07/19/2012 02:09 PM, Josh Blum wrote:
> You will want to include this in your package
> http://gnuradio.org/cgit/gnuradio.git/tree/cmake/Modules/FindUHD.cmake
> and call FindPackage(UHD)
>
> You want include_directories(${UHD_INCLUDE_DIRS})
>
> Make sure ${UHD_LIBRARIES} is also used in your list of library linking
> targets
>
> You can also see how gr-uhd uses this find script and variables.
>
> -josh
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment