Hi Fred - In the top-level BUILD directory there will be a file
"CMakeCache.txt" where you can track down the exact variable names you need
to use for including the GR CMake variables. I think these are consistent
between different GR versions, but I really don't recall any longer & I'm
not famility with GR 3.9's CMake -- just up through GR 3.8. In that file
you can search for "GNURADIO_BLOCKS" and you'll see the "INCLUDE_DIR" or
"INCLUDE_DIRS" and "LIBRARIES" or "LIBRARY" and others. You then use the
correct CMake commands in your OOT to use those variables. If you're using
GR's modtool to create the OOT those commands should be added
automatically. Sorry I can't be more precise ... I don't have the info in
front of me, but I know that the above is what I would do so that's easy to
write :) - MLD


On Tue, May 11, 2021 at 9:35 AM COURANT Frederique - Contractor via
USRP-users <usrp-users@lists.ettus.com> wrote:

> I have tried to add ${GNURADIO_BLOCKS_INCLUDE_DIRS} and
> ${GR_BLOCKS_INCLUDE_DIRS} without any success.
>
> Anyone could give an example of CMakeList that use uhd and gnuradio module
> please ?
>
> Thanks.
>
> Regards.
>
> Fred
>
> -----Message d'origine-----
> De : Discuss-gnuradio <discuss-gnuradio-bounces+frederique.courant=
> external.thalesgroup....@gnu.org> De la part de COURANT Frederique -
> Contractor
> Envoyé : mardi 11 mai 2021 13:55
> À : Marcus Müller <muel...@kit.edu>; discuss-gnura...@gnu.org
> Objet : RE: Reference indefined
>
> Sorry I would like to say 3.7.11.
>
> If I have understand I need to add ${GNURADIO_BLOCKS_INCLUDE_DIRS} in my
> CMakeFiles that's all ?
>
> Thank you very much for your help.
>
> Regards.
>
> Fred
>
> -----Message d'origine-----
> De : Discuss-gnuradio <discuss-gnuradio-bounces+frederique.courant=
> external.thalesgroup....@gnu.org> De la part de Marcus Müller Envoyé :
> mardi 11 mai 2021 13:39 À : discuss-gnura...@gnu.org Objet : Re:
> Reference indefined
>
> Hi Fred,
>
> indeed, your link_directories need to include the BLOCKS library, not just
> RUNTIME, when you're linking against any code in gr::blocks.
>
> I might be a bit behind on current GNU Radio developments, but GNU Radio
> 3.11 isn't even in development yet, far as I can tell. Is it possible
> you're referring to 3.10.0.git?
>
> Best regards,
> Marcus
>
> On 11.05.21 13:30, COURANT Frederique - Contractor wrote:
> > Hello Users,
> >
> >
> >
> > I try to develop my own program in C++ with UHD3.14 and gnuradio 3.11.
> >
> > I have no problem to compile blocks that are including in uhd but when
> > I want to compile with a sig_source or magphase_to_complex blocks
> > that are including in Gnuradio blocks I have the following error :
> >
> > Main.cpp(.text+0x1351) : référence indefinite vers "
> > gr::analog::sig_source_c::make(double, gr::analog::gr_waveform_t, double
> int) "
> >
> > Main.cpp(.text+0x1351) : référence indefinite vers "
> > gr::blocks::magphase_to_complex::make(double, gr::analog::gr_waveform_t,
> double int) "
> >
> >
> >
> > In think I forgot something in my CMakeFiles, I have
> > include_directories(${GNURADIO_ALL_INCLUDE_DIRS}) and
> > link_directories(${GNURADIO_RUNTIME_LIBRARY_DIRS})
> >
> >
> >
> > Someone could help me please or give an example of CMakeFiles that are
> > using UHD and Gnuradio for compile a program.
> >
> >
> >
> > Thanks for your help.
> >
> >
> >
> > Regards.
> >
> >
> >
> > Fred
> >
> >
> >
>
> _______________________________________________
> USRP-users mailing list -- usrp-users@lists.ettus.com
> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
>
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to