# Building 3.5.1 release with Cmake

**URL:** <https://www.ruby-forum.com/t/building-3-5-1-release-with-cmake/216068>\
**Category:** GNU Radio\
**Created:** [January 24, 2012, 1:32pm UTC](https://www.ruby-forum.com/t/building-3-5-1-release-with-cmake/216068 "2012-01-24T13:32:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 24, 2012, 1:32pm UTC](https://www.ruby-forum.com/t/building-3-5-1-release-with-cmake/216068/1 "2012-01-24T13:32:09Z")

</div>

I would like to use Cmake to build the 3.5.1 release, however the  
tarball has no CMakeLists.txt files.  
The project AFAICT seems generally to be Cmake enabled, is there a  
reason for excluding the tarballs?  
Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![aramisbear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f17d59/32.png) [@aramisbear](https://www.ruby-forum.com/u/aramisbear)\
**Post date:** [January 24, 2012, 3:06pm UTC](https://www.ruby-forum.com/t/building-3-5-1-release-with-cmake/216068/2 "2012-01-24T15:06:46Z")

</div>

On Tue, Jan 24, 2012 at 7:30 AM, Barry J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I would like to use Cmake to build the 3.5.1 release, however the tarball  
> has no CMakeLists.txt files.  
> The project AFAICT seems generally to be Cmake enabled, is there a reason  
> for excluding the tarballs?  
> Any help would be appreciated.

Barry,

GNU Radio as of 3.5 is still officially an autotools build project. The  
cmake is technically an experimental build, so we don’t package it up  
with  
the releases. You can use git and checkout the v3.5.1 tag to get the  
latest  
stable version with cmake.

We should be moving over to cmake-only when we release 3.6.

---

<div class="post-metadata">

**Author:** ![aramisbear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f17d59/32.png) [@aramisbear](https://www.ruby-forum.com/u/aramisbear)\
**Post date:** [January 24, 2012, 4:05pm UTC](https://www.ruby-forum.com/t/building-3-5-1-release-with-cmake/216068/3 "2012-01-24T16:05:05Z")

</div>

On 24/01/12 14:05, Tom R. wrote:

> Barry,

Tom,  
Many thanks - that is just what I need.

This seems to do the job, but please confirm that I have it right, and  
that there is not a simpler way, as I’m not conversant with git 😉

#!/bin/bash  
ver=“3.5.1”  
name=“gnuradio”  
git clone http://${name}.org/git/${name}.git  
cd ${name}  
git checkout v${ver}  
git archive --format=tar --prefix=${name}-${ver}/ v${ver} |   
gzip \> ../${name}-${ver}.tar.gz

Barry

---

<div class="post-metadata">

**Author:** ![aramisbear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f17d59/32.png) [@aramisbear](https://www.ruby-forum.com/u/aramisbear)\
**Post date:** [January 24, 2012, 4:16pm UTC](https://www.ruby-forum.com/t/building-3-5-1-release-with-cmake/216068/4 "2012-01-24T16:16:14Z")

</div>

On Tue, Jan 24, 2012 at 10:03 AM, Barry J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > –  
> > #!/bin/bash  
> > ver=“3.5.1”  
> > name=“gnuradio”  
> > git clone http://${name}.org/git/${name}\*\*.git  
> > cd ${name}  
> > git checkout v${ver}  
> > git archive --format=tar --prefix=${name}-${ver}/ v${ver} |   
> > gzip \> ../${name}-${ver}.tar.gz
> 
> Barry

That looks like it should work. I actually have our Jenkins system auto  
build and package up the master branch weekly. You can find them under  
the  
“Development” heading here:  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/Download](http://gnuradio.org/redmine/projects/gnuradio/wiki/Download)

I use pretty much the same thing you did to tarballs. Just remember that  
these ones here are based of the latest git HEAD version, not any tagged  
version, which is why they are development builds.

---

<div class="post-metadata">

**Author:** ![aramisbear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f17d59/32.png) [@aramisbear](https://www.ruby-forum.com/u/aramisbear)\
**Post date:** [January 24, 2012, 4:39pm UTC](https://www.ruby-forum.com/t/building-3-5-1-release-with-cmake/216068/5 "2012-01-24T16:39:15Z")

</div>

For building from HEAD, there’s always “build-gnuradio” – for  
Ubuntu and Fedora.

On Tue, 24 Jan 2012 10:14:32 -0500, Tom R.  
wrote:

> On Tue, Jan 24, 2012 at 10:03 AM, Barry J. wrote:
> 
> >

On 24/01/12 14:05, Tom R. wrote:

> > > On Tue, Jan 24, 2012 at  
> > > 7:30 AM, Barry J. \> wrote:
> > > 
> > > I would like to use Cmake to  
> > > build the 3.5.1 release, however the  
> > > tarball has no CMakeLists.txt  
> > > files.  
> > > The project AFAICT seems generally to be Cmake enabled, is  
> > > there a  
> > > reason for excluding the tarballs?  
> > > Any help would be  
> > > appreciated.
> > > 
> > > Barry,
> > > 
> > > GNU Radio as of 3.5 is still  
> > > officially an autotools build project. The  
> > > cmake is technically an  
> > > experimental build, so we don’t package it up  
> > > with the releases. You  
> > > can use git and checkout the v3.5.1 tag to get  
> > > the latest stable  
> > > version with cmake.
> > > 
> > > We should be moving over to cmake-only when  
> > > we release 3.6.
> > > 
> > > –  
> > > Tom
> > 
> > Tom,  
> > Many thanks - that is  
> > just what I need.
> > 
> > This seems to do the job, but please confirm  
> > that I have it right, and that there is not a simpler way, as I’m not  
> > conversant with git 😉
> > 
> > #!/bin/bash  
> > ver=“3.5.1”

name=“gnuradio”

> > git clone http://${name}.org/git/${name}.git  
> > cd  
> > ${name}  
> > git checkout v${ver}  
> > git archive --format=tar  
> > –prefix=${name}-${ver}/ v${ver} |  
> > gzip \>  
> > ../${name}-${ver}.tar.gz
> > 
> > Barry
> 
> That looks like it should  
> work. I actually have our Jenkins system auto build and package up the  
> master branch weekly. You can find them under the “Development” heading  
> here:
> 
> [http://gnuradio.org/redmine/projects/gnuradio/wiki/Download](http://gnuradio.org/redmine/projects/gnuradio/wiki/Download)  
> [3]
> 
> ## I use pretty much the same thing you did to tarballs. Just remember that these ones here are based of the latest git HEAD version, not any tagged version, which is why they are development builds.

> Tom

Links:
