google-code-export / pywebkitgtk

Automatically exported from code.google.com/p/pywebkitgtk
Other
1 stars 0 forks source link

which version is the best match of webkit? #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using centos5.2 to install pywebkitgtk, and my webkit version is 1.1.10, 
when I build pywebkitgtk, there are some errors like:
webkit/webkit.c: In function '_wrap_webkit_web_frame_get_security_origin':
webkit/webkit.c:1235: error: 'WebKitSecurityOrigin' undeclared (first use in 
this function)
webkit/webkit.c:1235: error: (Each undeclared identifier is reported only once
webkit/webkit.c:1235: error: for each function it appears in.)
webkit/webkit.c:1235: error: 'ret' undeclared (first use in this function)
webkit/webkit.c: In function '_wrap_webkit_web_frame_get_data_source':
webkit/webkit.c:1247: error: 'WebKitWebDataSource' undeclared (first use in 
this function)
webkit/webkit.c:1247: error: 'ret' undeclared (first use in this function)
webkit/webkit.c: In function '_wrap_webkit_web_frame_get_network_response':
webkit/webkit.c:1259: error: 'WebKitNetworkResponse' undeclared (first use in 
this function)
webkit/webkit.c:1259: error: 'ret' undeclared (first use in this function)
webkit/webkit.c: In function 
'_wrap_webkit_web_frame_get_provisional_data_source':
webkit/webkit.c:1271: error: 'WebKitWebDataSource' undeclared (first use in 
this function)
webkit/webkit.c:1271: error: 'ret' undeclared (first use in this function)
webkit/webkit.c: In function '_wrap_webkit_network_response_get_uri':
webkit/webkit.c:2759: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_security_origin_get_host':
webkit/webkit.c:2830: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_security_origin_get_protocol':
webkit/webkit.c:2844: warning: assignment makes pointer from integer without a 
cast
./webkit/webkit.override: In function 
'_wrap_webkit_security_origin_get_all_web_databases':
./webkit/webkit.override:136: warning: assignment makes pointer from integer 
without a cast
webkit/webkit.c: In function '_wrap_webkit_web_database_get_security_origin':
webkit/webkit.c:2985: error: 'WebKitSecurityOrigin' undeclared (first use in 
this function)
webkit/webkit.c:2985: error: 'ret' undeclared (first use in this function)
webkit/webkit.c: In function '_wrap_webkit_web_database_get_name':
webkit/webkit.c:3000: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_web_database_get_display_name':
webkit/webkit.c:3014: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_web_database_get_filename':
webkit/webkit.c:3050: warning: assignment makes pointer from integer without a 
cast
./webkit/webkit.override: In function '_wrap_webkit_web_resource_get_data':
./webkit/webkit.override:285: warning: assignment makes pointer from integer 
without a cast
webkit/webkit.c: In function '_wrap_webkit_web_resource_get_uri':
webkit/webkit.c:3160: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_web_resource_get_mime_type':
webkit/webkit.c:3174: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_web_resource_get_encoding':
webkit/webkit.c:3188: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_web_resource_get_frame_name':
webkit/webkit.c:3202: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_web_data_source_get_web_frame':
webkit/webkit.c:3299: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_web_data_source_get_initial_request':
webkit/webkit.c:3311: warning: assignment makes pointer from integer without a 
cast
webkit/webkit.c: In function '_wrap_webkit_web_data_source_get_request':
webkit/webkit.c:3323: warning: assignment makes pointer from integer without a 
cast
=====================================================
I think these errors could be due to low version of webkit. 

any advice for me? thanks so much!

Original issue reported on code.google.com by gebing8...@gmail.com on 25 Apr 2013 at 12:38

GoogleCodeExporter commented 9 years ago
I searched WebKitSecurityOrigin, WebKitWebDataSource and WebKitNetworkResponse, 
from source code, I seem these structs are since webkit-1.1.14, so I install 
the webkit-1.1.15, and there are no errors any more!

Original comment by gebing8...@gmail.com on 25 Apr 2013 at 6:16

GoogleCodeExporter commented 9 years ago
I use webkit-1.1.15 and install pywebkitgtk successfully, but still error, when 
I try to import webkit in python, it says:
>>> import webkit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/python/lib/python2.7/site-packages/webkit/__init__.py", line 21, in <module>
    import webkit
ImportError: /usr/local/python/lib/python2.7/site-packages/webkit/webkit.so: 
undefined symbol: webkit_web_frame_get_network_response
==============================================================
I google webkit_web_frame_get_network_response, and find this is since 
webkit-1.1.18, and I install webkit-1.7.1 now, but I don't know whether there 
is any mistake!!!

Original comment by gebing8...@gmail.com on 27 Apr 2013 at 6:49