# Out-of-tree module build fails for lack of Doxygen, despite -DENABLE\_DOXYGEN=OFF

**URL:** <https://www.ruby-forum.com/t/out-of-tree-module-build-fails-for-lack-of-doxygen-despite-denable-doxygen-off/228005>\
**Category:** GNU Radio\
**Created:** [April 5, 2013, 10:41pm UTC](https://www.ruby-forum.com/t/out-of-tree-module-build-fails-for-lack-of-doxygen-despite-denable-doxygen-off/228005 "2013-04-05T22:41:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monahan-MitchellS\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Monahan-MitchellS\_T](https://www.ruby-forum.com/u/Monahan-MitchellS_T)\
**Post date:** [April 5, 2013, 10:41pm UTC](https://www.ruby-forum.com/t/out-of-tree-module-build-fails-for-lack-of-doxygen-despite-denable-doxygen-off/228005/1 "2013-04-05T22:41:14Z")

</div>

I first used gr\_modtool.py to successfully create my out-of-tree module  
on an Ubuntu 12.04 LTS x86 system (GNU Radio 3.6.4.1).

I am now building my module on an Ubuntu system that does not have  
/usr/bin/doxygen (the new system is based on 12.04 LTS for Arm).

Despite specifying -DENABLE\_DOXYGEN=OFF, the build fails thusly:

# cmake -DENABLE\_DOXYGEN=OFF …/

– Build type not specified: defaulting to release.  
– Configuring done  
– Generating done  
– Build files have been written to: /src/gr-mymodule/build

# make

[5%] Built target gnuradio-mymodule  
[16%] Built target test-mymodule  
[22%] Built target \_mymodule\_swig\_doc\_tag  
[27%] Built target \_mymodule\_swig\_swig\_tag  
[33%] Generating doxygen xml for mymodule\_swig\_doc docs  
/bin/sh: 1: /usr/bin/doxygen: not found  
make[2]: \*\*\* [swig/mymodule\_swig\_doc\_swig\_docs/xml/index.xml] Error 127  
make[1]: \*\*\* [swig/CMakeFiles/\_mymodule\_swig.dir/all] Error 2  
make: \*\*\* [all] Error 2

I have duplicated the above failure on the Ubuntu 12.04 LTS x86 machine  
by first doing “sudo mv /usr/bin/doxygen /usr/bin/doxygen\_tmp” to  
simulate no doxygen installed.

I am trying the same experiment on the gnuradio tree (3.6.4.1) on Ubuntu  
12.04 LTS x86; if it builds, maybe I can compare various files to see  
the difference.

But maybe one of you can beat me to the solution or a work-around 🙂

Thanks in advance,  
Tim Monahan-Mitchell

---

<div class="post-metadata">

**Author:** ![Monahan-MitchellS\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Monahan-MitchellS\_T](https://www.ruby-forum.com/u/Monahan-MitchellS_T)\
**Post date:** [April 5, 2013, 11:58pm UTC](https://www.ruby-forum.com/t/out-of-tree-module-build-fails-for-lack-of-doxygen-despite-denable-doxygen-off/228005/2 "2013-04-05T23:58:59Z")

</div>

> an Ubuntu 12.04 LTS x86 system (GNU Radio 3.6.4.1).  
> – Build files have been written to: /src/gr-mymodule/build  
> make: \*\*\* [all] Error 2
> 
> I have duplicated the above failure on the Ubuntu 12.04 LTS x86 machine by  
> first doing “sudo mv /usr/bin/doxygen /usr/bin/doxygen\_tmp” to simulate  
> no doxygen installed.
> 
> I am trying the same experiment on the gnuradio tree (3.6.4.1) on Ubuntu  
> 12.04 LTS x86; if it builds, maybe I can compare various files to see the  
> difference.

The gnuradio tree build was able to handle this test, so that is good.

> But maybe one of you can beat me to the solution or a work-around 🙂

I found a work-around by a hostile takeover of the FindDoxygen module of  
Cmake:

(with sudo as needed)

# echo ‘set(DOXYGEN\_FOUND “NO”)’

> /usr/share/cmake-2.8/Modules/FindDoxygen.cmake

# echo ‘set(DOXYGEN\_DOT\_FOUND “NO”)’

> > /usr/share/cmake-2.8/Modules/FindDoxygen.cmake

I will leave it to the smarter people of this list to find a better  
solution. Cheers!

---

<div class="post-metadata">

**Author:** ![Monahan-MitchellS\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@Monahan-MitchellS\_T](https://www.ruby-forum.com/u/Monahan-MitchellS_T)\
**Post date:** [April 6, 2013, 3:51pm UTC](https://www.ruby-forum.com/t/out-of-tree-module-build-fails-for-lack-of-doxygen-despite-denable-doxygen-off/228005/3 "2013-04-06T15:51:01Z")

</div>

On Fri, Apr 5, 2013 at 5:56 PM, Monahan-Mitchell, Tim  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > an Ubuntu 12.04 LTS x86 system (GNU Radio 3.6.4.1).  
> > – Build files have been written to: /src/gr-mymodule/build  
> > make: \*\*\* [all] Error 2
> 
> > But maybe one of you can beat me to the solution or a work-around 🙂
> 
> I found a work-around by a hostile takeover of the FindDoxygen module of Cmake:
> 
> (with sudo as needed)
> 
> # echo ‘set(DOXYGEN\_FOUND “NO”)’ \>/usr/share/cmake-2.8/Modules/FindDoxygen.cmake
> 
> # echo ‘set(DOXYGEN\_DOT\_FOUND “NO”)’
> 
> > /usr/share/cmake-2.8/Modules/FindDoxygen.cmake
> 
> I will leave it to the smarter people of this list to find a better solution.  
> Cheers!

Hi Tim,

Can you open up a ticket on the [gnuradio.org](http://gnuradio.org) wiki with this  
information? That will help us track it better.

Tom
