# Using VOLK in a new gr-block

**URL:** <https://www.ruby-forum.com/t/using-volk-in-a-new-gr-block/230786>\
**Category:** GNU Radio\
**Created:** [July 4, 2014, 9:30pm UTC](https://www.ruby-forum.com/t/using-volk-in-a-new-gr-block/230786 "2014-07-04T21:30:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [July 4, 2014, 9:30pm UTC](https://www.ruby-forum.com/t/using-volk-in-a-new-gr-block/230786/1 "2014-07-04T21:30:59Z")

</div>

Hi,  
I am trying to use VOLK in a new module that will have some new fast  
blocks (hopefully). Being new to the cmake system, I have some  
difficulty in including the volk headers and linking it.  
Specifically, I am trying to figure out what changes to make to the  
CMakeLists.txt in the directory. I tried adding the  
following lines :

include(GrComponent)  
GR\_REGISTER\_COMPONENT(“gr-fastblocks” ENABLE\_VOLK)

but still, the build process complains about volk functions being  
undeclared. I am trying to understand the cmake system to figure out a  
way, but any help in the meantime would be greatly appreciated.

Abhishek B…

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 4, 2014, 11:58pm UTC](https://www.ruby-forum.com/t/using-volk-in-a-new-gr-block/230786/2 "2014-07-04T23:58:01Z")

</div>

On 07/04/2014 09:29 PM, Abhishek B. wrote:

> but still, the build process complains about volk functions being  
> undeclared. I am trying to understand the cmake system to figure out a  
> way, but any help in the meantime would be greatly appreciated.

Hey Abhishek,

have a look at other OOTs that use VOLK, such as gr-dvbt.  
([GitHub - BogdanDIA/gr-dvbt: DVB-T implementation in gnuradio · GitHub](https://github.com/BogdanDIA/gr-dvbt)).

M

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 6, 2014, 3:59pm UTC](https://www.ruby-forum.com/t/using-volk-in-a-new-gr-block/230786/3 "2014-07-06T15:59:55Z")

</div>

On Fri, Jul 4, 2014 at 5:56 PM, Martin B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > GR\_REGISTER\_COMPONENT(“gr-fastblocks” ENABLE\_VOLK)  
> > M

Abhishek,  
In particular, look at the lib/CMakeLists.txt file for adding libraries  
to  
build against.

Tom
