title: fatal error: webkit2/webkit2.h: No such file or directory
body: <p>On Arch Linux, after upgrading to Gnome 3.14, I have several troubles with Webkit2Gtk.</p>
  
  <p><strong>Vala:</strong>
  Consider the following vala test:</p>
  
  <pre><code>using Gtk;
  using WebKit;
  
  public class ValaWebkit : Window {
  
      private WebView web_view;
  
      public ValaWebkit(){
          this.title = "Testing youtube";
          set_default_size (800, 600);
  
          web_view = new WebView();
          add(web_view);
  
          //this.web_view.open ("http://www.youtube.com/");
          this.web_view.load_uri ("https://www.youtube.com/");
      }
  
      public static int main (string[] args) {
          Gtk.init (ref args);
  
          new ValaWebkit().show_all();
          Gtk.main();
  
          return 0;
      }
  }
  </code></pre>
  
  <p>Before upgrading to Gnome 3.14, I could copile like this <code>valac --pkg gtk+-3.0 --pkg webkit2gtk-3.0 --vapidir . valawebkit.vala</code> (I'm not pasting here webkit2gtk-3.0.vapi because it's too long). Now with gnome 3.14 if I try to compile i get</p>
  
  <pre><code>/home/luca/Sources/vala/webkit test/valawebkit.vala.c:8:29: fatal error: webkit2/webkit2.h: No such file or directory
   #include &lt;webkit2/webkit2.h&gt;
                               ^
  compilation terminated.
  error: cc exited with status 256
  Compilation failed: 1 error(s), 0 warning(s)
  </code></pre>
  
  <p>Also, If I try to run the binary that I had compiled BEFORE upgrading to Gnome 3.14, I get this error:</p>
  
  <pre><code>./valawebkit: error while loading shared libraries: libwebkit2gtk-3.0.so.25: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>2) GJS / Eclipse / Java (SWT):
  If I run either <a href="https://developer.gnome.org/gnome-devel-demos/stable/hellognome.js.html.en" rel="nofollow">this gjs example</a>, or eclipse (luna) or any other swt 4.4 based app, I get the following:</p>
  
  <pre><code>No bp log location saved, using default.
  [000:000] Cpu: 6.58.9, x4, 2600Mhz, 7847MB
  [000:000] Computer model: Not available
  [000:000] Browser XEmbed support present: 1
  [000:000] Browser toolkit is Gtk2.
  [000:004] Using Gtk2 toolkit
  [000:004] Warning(optionsfile.cc:47): Load: Could not open file, err=2
  [000:004] No bp log location saved, using default.
  </code></pre>
  
  <p>I have the feeling that it is a kind of packaging issue on ArchLinux and Gnome 3.14. Does anyone is having the same issue? Is there a workaround both to compile and run against webkit2gtk?</p>
  
  <p><strong>EDIT</strong>
  I made a little progress: I discovered that headers files I need are now under <code>/usr/include/webkitgtk3.0</code> and <code>/usr/include/libsoup-2.4</code>. Now, compiling like this:</p>
  
  <pre><code>valac --pkg gtk+-3.0 --pkg webkit2gtk-3.0 --vapidir . --Xcc="-I/usr/include/webkitgtk-3.0" --Xcc "-I/usr/include/libsoup-2.4" --thread valawebkit.vala
  </code></pre>
  
  <p>works, but it sill fails on linker:</p>
  
  <pre><code>/tmp/ccQGhB3b.o: In function `vala_webkit_construct':
  valawebkit.vala.c:(.text+0x6e): undefined reference to `webkit_web_view_new'
  valawebkit.vala.c:(.text+0x101): undefined reference to `webkit_web_view_load_uri'
  collect2: error: ld returned 1 exit status
  error: cc exited with status 256
  Compilation failed: 1 error(s), 0 warning(s)
  </code></pre>