Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have recently become interested in Eidete Screencaster, and I am trying to compile it from source on Ubuntu 12.04.1 LTS.

After running bzr branch lp:eidete, I navigated into the ~/eidete directory and found an INSTALL file with the following contents:

Dependencies:
    gtk+-3.0
    libwnck-3.0
    gstreamer-interfaces-0.10
    gstreamer-0.10
    gstreamer-pbutils-0.10
    granite
    xtst
    gdk-x11-3.0

Installation:
    bzr branch lp:eidete
    cd eidete
    mkdir build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX=/usr
    make
    sudo make install

After some investigation, I believe I have correctly satisfied all package dependencies, as I no longer get complaints about that when I run the cmake .. -DCMAKE_INSTALL_PREFIX=/usr step. However, when I then try to run make, the build fails with the following output:

christopher@XyzPrecise:~/eidete/build$ make
[  7%] Generating src/eidete.c, src/Widgets/countdown.c, src/Widgets/keyview.c, src/Widgets/selectionarea.c, src/Widgets/end_dialog.c, src/desktop_launcher.c, build/src/Config.c
error: Package `granite' not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 1 error(s), 0 warning(s)
make[2]: *** [src/eidete.c] Error 1
make[1]: *** [CMakeFiles/eidete.dir/all] Error 2
make: *** [all] Error 2

The step before that previously complained that I didn't have the necessary version of Vala installed, so I installed it from the Vala PPA and didn't get the warning from cmake anymore after that. All other packages required I installed from the Ubuntu Precise repositories, including libgranite-dev.

So, why is make complaining about granite, and how do I correct this so I can build Eidete successfully?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

The problem is likely that you have an old version of libgranite. To get the latest version, you might have to add the elementary daily PPA as follows:

sudo add-apt-repository ppa:elementary-os/daily
sudo apt-get update
sudo apt-get install libgranite-dev

Alternatively, you get can the latest deb's from https://launchpad.net/~elementary-os/+archive/daily/+packages.

Please note that in that PPA there are daily builds of Eidete, so compiling from source would be unnecessary.

Also, if you'd like it to be easily removable through apt, you can nest the debian/ directory of lp:~elementary-os/eidete/deb-packaging into the root of your Eidete source directory. You can simply copy the files there once they've been branched. Also, note that the packages devscripts and dpkg-dev are needed to create Debian packages.

share|improve this answer
1  
Yep, the problem appeared to be an out-of-date libgranite-dev. Thanks! –  WarriorIng64 Oct 7 '12 at 17:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.