# Slicer -r26813 produces 4.9 lib

**URL:** <https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379>\
**Category:** Development\
**Created:** [March 20, 2018, 6:22pm UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379 "2018-03-20T18:22:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)\
**Post date:** [March 20, 2018, 6:22pm UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379/1 "2018-03-20T18:22:42Z")

</div>

Operating system:Ubuntu  
Slicer version:4.8.1  
Expected behavior: it should produce 4.8  
Actual behavior: 4.9 is produced

I used 26813 which is the source of the stable version 4.8.1

```
   Checked out revision 26813.

```

I just noticed that my Slicer-build/lib has a folder Slicer-4.9 instead of Slicer-4.8

Did I do something wrong or this is normal?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 20, 2018, 7:13pm UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379/2 "2018-03-20T19:13:15Z")

</div>

SVN revision does not identify the branch (trunk or 4.8). To get source code of Slicer-4.8, switch to [http://svn.slicer.org/Slicer4/branches/Slicer-4-8](http://svn.slicer.org/Slicer4/branches/Slicer-4-8).

---

<div class="post-metadata">

**Author:** ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)\
**Post date:** [March 20, 2018, 7:29pm UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379/3 "2018-03-20T19:29:04Z")

</div>

thanks, i was following the instructions [here](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions) so probably it needs an update?

```
 svn co http://svn.slicer.org/Slicer4/branches/Slicer-4-8 src
 Checked out revision 27089.

```

Notice that the revision is not the same as in the link above

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 20, 2018, 7:54pm UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379/4 "2018-03-20T19:54:18Z")

</div>

Thanks for the feedback. The page has been updated to clarify:

[https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build\_Instructions/CheckoutSourceCode#CHECKOUT\_slicer\_source\_files](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions/CheckoutSourceCode#CHECKOUT_slicer_source_files)

Let us know what you think

---

<div class="post-metadata">

**Author:** ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)\
**Post date:** [March 20, 2018, 8:17pm UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379/5 "2018-03-20T20:17:00Z")

</div>

I am still confused. Which one is correct for the 4.8.1 option a or option b? or they are the same?

option a:

```
   svn co http://svn.slicer.org/Slicer4/trunk src -r 26813
   Checked out revision 26813.

```

option b:

```
  svn co http://svn.slicer.org/Slicer4/branches/Slicer-4-8 src
  Checked out revision 27089.

```

I tried option a but the lib was 4.9 after build. Option b produces the correct lib 4.8 but I see the revision is different.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 20, 2018, 8:44pm UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379/6 "2018-03-20T20:44:12Z")

</div>

Thanks for your patience.

The page has been updated to describe both the _marker_ and the _svn revision_. Now it should make more sense.

```nohighlight
svn co http://svn.slicer.org/Slicer4/<MARKER> Slicer-r<SVNREVISION> -r <SVNREVISION>

```

---

<div class="post-metadata">

**Author:** ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)\
**Post date:** [March 22, 2018, 11:49am UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379/7 "2018-03-22T11:49:58Z")

</div>

Thanks for the effort. I used

```
svn co http://svn.slicer.org/Slicer4/branches/Slicer-4-8 Slicer-r26813 -r 26813

```

After build using this source I found

```
Slicer-build/lib/Slicer-4.9

```

Why I don’t get theSlicer-4.8?

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 22, 2018, 11:56am UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379/8 "2018-03-22T11:56:08Z")

</div>

You have to make sure to do a clean build or explicitly set the version variables:

> <https://github.com/Slicer/Slicer/blob/master-48/CMakeLists.txt#L45-L54>

Failing to do so, the module would be generated in `lib/Slicer-4.9`.

Now, in the context of your local build, may be it doesn’t really matter.

---

<div class="post-metadata">

**Author:** ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)\
**Post date:** [March 22, 2018, 2:19pm UTC](https://discourse.slicer.org/t/slicer-r26813-produces-4-9-lib/2379/9 "2018-03-22T14:19:43Z")

</div>

it works now, thanks again.
