title: Installing the webp plugin for gimp on Ubuntu linux
body: <p>I'm a linux novice and I'm trying to install the webp plugin for gimp on an Ubuntu desktop. I have downloaded the tarball from the download site of gimp and extracted it. I followed the instructions in the readme, but it doesn't work.</p>
  
  <p>It says I first need to install the webp library from google. It can be found here:</p>
  
  <p><a href="http://code.google.com/speed/webp/download.html" rel="nofollow">http://code.google.com/speed/webp/download.html</a></p>
  
  <p>But I have no idea how to install it. It's probably something trivial, but being a novice I have no idea what to do next.</p>
  
  <p>I also went to the Ubuntu Software Center and found the same package there and clicked the install button. That seemed to have worked so I think it is installed now.</p>
  
  <p>The readme tells me to issue the following commands:</p>
  
  <pre><code>export LIBS=-lwebp
  gimptool-2.0 --install file-webp.c
  </code></pre>
  
  <p>And this gives me the following result:</p>
  
  <pre><code>gcc  -pthread -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -I/usr/include/gimp-2.0   -o /home/pascal/.gimp-2.8/plug-ins/file-webp file-webp.c  -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype   -lwebp
  /usr/bin/ld: cannot find -lwebp
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>I also tried using -libwebp instead of -lwebp, but that gives me the same error message.</p>
  
  <p><strong>update</strong></p>
  
  <p>I installed libwebp-dev as well and tried the same command. It solved the error, but now gives me another error:</p>
  
  <pre><code>gcc  -pthread -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -I/usr/include/gimp-2.0   -o /home/pascal/.gimp-2.8/plug-ins/file-webp file-webp.c  -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype   -lwebp
  /tmp/cchf3eQS.o: In function `run':
  file-webp.c:(.text+0x1b2): undefined reference to `read_webp'
  file-webp.c:(.text+0x281): undefined reference to `export_dialog'
  file-webp.c:(.text+0x2b5): undefined reference to `write_webp'
  collect2: error: ld returned 1 exit status
  </code></pre>