[josm-dev] webkit-image on Mac OS X

Stefan Bethke stb at lassitu.de
Sun Apr 19 21:25:19 BST 2009


Hi,

I'm currently trying to get webkit-image to work on 10.5.6.

I've googled around, but can't really find any info on how to make it  
work, and the one pre-compiled binary requires an installed Qt.

I've downloaded and installed Qt, and then compiled webkit-image.cpp.   
However, trying to get ymap.html rendered only produces white images  
with the Yahoo logo.

At first I thought that the loadFinished signal might be firing too  
early, but it now looks like JPEG support is missing, since other web  
pages are missing their JPGs (but not PNGs and GIFs).

Here's what I've done so far:

$ ftp http://get.qtsoftware.com/qt/source/qt-mac-opensource-src-4.5.0.tar.gz
$ tar xzf qt-mac-opensource-src-4.5.0.tar.gz
$ cd qt-mac-opensource-src-4.5.0
$ ./configure -static -qt-libtiff -qt-libmng -qt-libjpeg -no-framework  
-arch x86
$ gmake
$ sudo gmake install

Then in wmsplugin:
$ export PKG_CONFIG_PATH=/usr/local/Trolltech/Qt-4.5.0/lib/pkgconfig
$ make

When I run webkit-image with a ymap.html (copied from josm's output),  
I get a PNG file:
$ ./webkit-image 'file:////Users/stb/.josm/plugins/wmsplugin/ymap.html?bbox=10.0198859,53.5736738,10.0211370,53.5749249&srs=EPSG:4326&width=499&height=499' 
  >a
oc:~/Downloads/josm$ file a
a: PNG image data, 116 x 196, 8-bit/color RGBA, non-interlaced

Looking at the code, the image should be saved as a JPEG. Any hints on  
what I'm doing wrong?


Thanks,
Stefan

-- 
Stefan Bethke <stb at lassitu.de>   Fon +49 151 14070811








More information about the josm-dev mailing list