build failed, can't find vala.h

Asked by moragos

I'm trying to build Scratch.
When I try to build Scratch it fails because it can't find vala.h
I've run "sudo apt-get build-dep scratch" and have valac 0.26.2 and 0.28 installed.

Build log:
shy@shy-elemntry:~/software/sourcecode/scratch/build$ make
[ 21%] Built target scratch-text-editor
[ 42%] Built target scratchcore
[ 44%] Built target contractor
[ 47%] Built target pastebin
[ 53%] Built target filemanager
[ 58%] Built target folder-manager
[ 62%] Built target terminal
[ 65%] Built target browser-preview
[ 67%] Built target strip-trailing-save
[ 70%] Built target open-with
[ 72%] Built target brackets-completion
[ 76%] Built target word-completion
[ 78%] Built target source-tree
[ 80%] Building C object plugins/outline/CMakeFiles/outline.dir/ValaProcessing/ComparisonHelper.c.o
/home/shy/software/sourcecode/scratch/build/plugins/outline/ValaProcessing/ComparisonHelper.c:10:18: fatal error: vala.h: No such file or directory
 #include <vala.h>
                  ^
compilation terminated.
make[2]: *** [plugins/outline/CMakeFiles/outline.dir/ValaProcessing/ComparisonHelper.c.o] Error 1
make[1]: *** [plugins/outline/CMakeFiles/outline.dir/all] Error 2
make: *** [all] Error 2

My OS details are:
shy@shy-elemntry:~/software/sourcecode/scratch/build$ lsb_release -a
No LSB modules are available.
Distributor ID: elementary OS
Description: elementary OS Freya
Release: 0.3
Codename: freya
shy@shy-elemntry:~/software/sourcecode/scratch/build$ uname -a
Linux shy-elemntry 3.16.0-34-generic #47~14.04.1-Ubuntu SMP Fri Apr 10 17:49:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Question information

Language:
English Edit question
Status:
Answered
For:
Scratch Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

do you have libvala-dev installed?

Revision history for this message
moragos (moragos) said :
#2

I have libvala-0.28-dev installed

Revision history for this message
moragos (moragos) said :
#3

any update?

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

In your original posting you wrote that you have valac 0.26.2 installed. that might require libvala-0.26-dev

Maybe there is a configure script that you might have to run, or is there a readme file in the source package for scratch?

What is the output of the terminal commands

sudo updatedb
locate vala.h

Revision history for this message
moragos (moragos) said :
#5

In my triels to make I installed both 0.26-dev and 0.28, so I have them both.

Output:
shy@shy-elemntry:~/software/sourcecode/scratch/build$ sudo updatedb
shy@shy-elemntry:~/software/sourcecode/scratch/build$ locate vala.h
/usr/include/vala-0.26/vala.h
/usr/include/vala-0.28/vala.h

The README file states the following dependencies:
 - libgtk-3.0-dev
 - libgtksourceview-3.0-dev
 - libgranite >= 0.3.0
 - libgconf-2.0-dev
 - libzeitgeist-2.0

I installed all of them

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

I assume you have to run some kind of configure script to tell the compiler where to search for #include <vala.h>

Can you help with this problem?

Provide an answer of your own, or ask moragos for more information if necessary.

To post a message you must log in.