I followed the GNOME guid to setup Vala on Ubuntu. and try the first GEE sample.
$ valac --pkg gee-0.8 gee-list.vala
gee-list.vala.c:8:10: fatal error: gee.h: No such file or directory
#include <gee.h>
^~~~~~~
compilation terminated.
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
I have all dev packages are installed and the header is a /usr/include/gee-0.8/gee.h
. Is there something else I have to setup?
I am using Ubuntu 18.04 and the Pantheon desktop.
- Update more info about my environment:
~$ echo | gcc -Wp,-v -x c++ - -fsyntax-only
ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/7"
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/7/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/7
/usr/include/x86_64-linux-gnu/c++/7
/usr/include/c++/7/backward
/usr/lib/gcc/x86_64-linux-gnu/7/include
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
$ echo | gcc -Wp,-v -x c - -fsyntax-only
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/7/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-linux-gnu/7/include
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
Some general compiling tips about missing header files:
From mail archive there are some tips that might be useful:
Thanks again,
Ralf
Ralf Ganswindt [email protected]
On Thu, Jan 25, 2018 at 12:03 PM, Al Thomas wrote:
>
vala-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/vala-list
Additionally I read somewhere that
build-essentials
should be installed as well.