# Problem compiling tiled 0.12 on Ubuntu 15.04

**URL:** <https://discourse.mapeditor.org/t/problem-compiling-tiled-0-12-on-ubuntu-15-04/599>\
**Category:** Questions\
**Created:** [June 22, 2015, 2:11pm UTC](https://discourse.mapeditor.org/t/problem-compiling-tiled-0-12-on-ubuntu-15-04/599 "2015-06-22T14:11:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oawad79](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/oawad79/32/4959_2.png) [@oawad79](https://discourse.mapeditor.org/u/oawad79)\
**Post date:** [June 22, 2015, 2:11pm UTC](https://discourse.mapeditor.org/t/problem-compiling-tiled-0-12-on-ubuntu-15-04/599/1 "2015-06-22T14:11:27Z")

</div>

Hello,

Keep getting this when I try to compile tiled on Ubuntu 15.04

```auto
cd src/ && make -f Makefile 
make[1]: Entering directory '/home/user/Downloads/tiled-0.12.3/src'
cd libtiled/ && make -f Makefile 
make[2]: Entering directory '/home/user/Downloads/tiled-0.12.3/src/libtiled'
make[2]: Nothing to be done for 'first'.
make[2]: Leaving directory '/home/user/Downloads/tiled-0.12.3/src/libtiled'
cd tiled/ && make -f Makefile 
make[2]: Entering directory '/home/user/Downloads/tiled-0.12.3/src/tiled'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.6/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.8.6/include/QtCore -I/usr/local/Trolltech/Qt-4.8.6/include/QtGui -I/usr/local/Trolltech/Qt-4.8.6/include/QtOpenGL -I/usr/local/Trolltech/Qt-4.8.6/include -I../libtiled -I../qtpropertybrowser/src -I/usr/X11R6/include -I. -I. -o main.o main.cpp
In file included from main.cpp:24:0:
mainwindow.h:89:21: error: ‘QSessionManager’ has not been declared
     void commitData(QSessionManager &manager);
                     ^
Makefile:20324: recipe for target 'main.o' failed
make[2]: *** [main.o] Error 1
make[2]: Leaving directory '/home/user/Downloads/tiled-0.12.3/src/tiled'
Makefile:80: recipe for target 'sub-tiled-make_default-ordered' failed
make[1]: *** [sub-tiled-make_default-ordered] Error 2
make[1]: Leaving directory '/home/user/Downloads/tiled-0.12.3/src'
Makefile:40: recipe for target 'sub-src-make_default-ordered' failed
make: *** [sub-src-make_default-ordered] Error 2

```

any idea what is going on ?

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [June 22, 2015, 2:31pm UTC](https://discourse.mapeditor.org/t/problem-compiling-tiled-0-12-on-ubuntu-15-04/599/2 "2015-06-22T14:31:26Z")

</div>

You seem to be using a self-compiled Qt, and it seems to have been built without session management support. Could that be your problem?

---

<div class="post-metadata">

**Author:** ![oawad79](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/oawad79/32/4959_2.png) [@oawad79](https://discourse.mapeditor.org/u/oawad79)\
**Post date:** [June 22, 2015, 5:30pm UTC](https://discourse.mapeditor.org/t/problem-compiling-tiled-0-12-on-ubuntu-15-04/599/3 "2015-06-22T17:30:12Z")

</div>

thanks dude, thats did it for me.

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [June 22, 2015, 6:40pm UTC](https://discourse.mapeditor.org/t/problem-compiling-tiled-0-12-on-ubuntu-15-04/599/4 "2015-06-22T18:40:58Z")

</div>

Nice to hear it helped!

Btw, note that there are daily builds available for Ubuntu at the [mapeditor.org PPA](https://launchpad.net/~mapeditor.org/+archive/ubuntu/tiled). Install the `tiled-daily` package if you just want the latest version.
