Hello, I got 2 problems with installing wxWebKit. I'm trying to install on Redhat EL4.
Problem 1 (I already fixed it)
When I start the script: /build-webkit --wx wxgc I get the following error:
WebKitTools/wx/build-wxwebkit: line 153: [: /home/richard/Downloads/WebKit/WebKitTools/wx: binary operator expected
After some debugging, I discovered I have to make the following change to 'WebKit/WebKitTools/wx/build-wxwebkit:
diff build-wxwebkit build-wxwebkit-orig
34,35c34
< cd $(dirname $0)
< scriptDir="$(pwd)"
---
> scriptDir="$(cd $(dirname $0);pwd)"
This is because the result of the original expression gives the wrong result. When I do an ECHO $scriptDir I get this:
/home/richard/Downloads/WebKit/WebKitTools/wx /home/richard/Downloads/WebKit/WebKitTools/wx
I don't understand why but the result is duplicated. Anyhow the above fix solves this problem. Perhaps it should be included in the codebase.
Problem 2
I get the following error:
$ ./build-webkit --wx wxgc
<module 'posixpath' from '/usr/lib/python2.3/posixpath.pyc'>
Traceback (most recent call last):
File "/usr/bin/bakefile_gen", line 45, in ?
import subprocess
ImportError: No module named subprocess
I've tried debugging bakefile_gen (my python isn't that good).
Because I'm using python 2.3 it should include py25modules in the module search path. For some reason it takes the wrong path.
In config.py there's a line:
progdir = os.path.dirname(os.path.realpath(sys.argv[0]))
And in bakefile_gen.py there is:
if sys.version_info < (2,5):
import config
sys.path.append(os.path.join(config.progdir, 'py25modules'))
The value of config.progdir is /home/richard/Downloads/WebKit/WebKit/lib/bakefile
While the location of py25modules is /usr/lib/bakefile
I tried to hard-code the path, but then something else goes wrong which looks like a related problem elsewhere.
Perhaps these two problems are related and perhaps something is wrong with my system setup?
I'm also trying to build wxWebKit on OSX. The first problem happend there as well, and I fixed it as described above. The second problem did not occur. It's still building.
Perhaps someone can help me with this second problem so I can also build it on Linux.
Cheers, Richard