[Gammaray-interest] Compiling Gammaray without having webkit

Allen Winter allen.winter at kdab.com
Thu Mar 29 23:25:19 CEST 2012


On Thursday 29 March 2012 01:44:51 PM Adam Light wrote:
> Hi
> 
> I'm trying to compile GammaRay on Macintosh. We use a custom build of
> Qt 4.8.1 which does not include webkit (we use the -no-webkit
> configuration option for Qt).
> 
For now, you can comment out the line "add_subdirectory(webinspector)" in tools/CMakeLists.txt
But you won't get the webinspector tool, obviously.

clearly we need to handle the case when webkit is not found.

Question: Do you have webkit installed in another location on your system?
If so, we might be able to use that one instead of the one that comes with Qt.

-Allen


> I followed the GammaRay build instructions and got this:
> 
> Scanning dependencies of target gammaray_webinspector_plugin
> [ 99%] Building CXX object
> tools/webinspector/CMakeFiles/gammaray_webinspector_plugin.dir/webinspector.cpp.o
> In file included from
> /Users/aclight/Documents/gammaray/GammaRay/tools/webinspector/webinspector.cpp:24:
> /Users/aclight/Documents/gammaray/GammaRay/tools/webinspector/webinspector.h:29:22:
> error: qwebpage.h: No such file or directory
> In file included from
> /Users/aclight/Documents/gammaray/GammaRay/tools/webinspector/webinspector.cpp:24:
> /Users/aclight/Documents/gammaray/GammaRay/tools/webinspector/webinspector.h:49:
> error: ‘QWebPage’ was not declared in this scope
> /Users/aclight/Documents/gammaray/GammaRay/tools/webinspector/webinspector.h:49:
> error: template argument 1 is invalid
> In file included from
> /Users/aclight/Documents/gammaray/GammaRay/tools/webinspector/webinspector.cpp:62:
> /Users/aclight/Documents/gammaray/GammaRay/build/tools/webinspector/webinspector.moc:
> In member function ‘virtual void*
> GammaRay::WebInspectorFactory::qt_metacast(const char*)’:
> /Users/aclight/Documents/gammaray/GammaRay/build/tools/webinspector/webinspector.moc:146:
> error: invalid static_cast from type ‘GammaRay::WebInspectorFactory*’
> to type ‘GammaRay::StandardToolFactory<QWebPage,
> GammaRay::WebInspector>*’
> /Users/aclight/Documents/gammaray/GammaRay/build/tools/webinspector/webinspector.moc:148:
> error: invalid static_cast from type ‘GammaRay::WebInspectorFactory*’
> to type ‘GammaRay::ToolFactory*’
> make[2]: *** [tools/webinspector/CMakeFiles/gammaray_webinspector_plugin.dir/webinspector.cpp.o]
> Error 1
> make[1]: *** [tools/webinspector/CMakeFiles/gammaray_webinspector_plugin.dir/all]
> Error 2
> make: *** [all] Error 2
> 
> Is it possible to configure GammaRay to not build the webinspector plugin?
> 
> For what it's worth, I have never used cmake before, so please forgive
> me if this is a stupid question.
> 
> Thanks
> Adam
> _______________________________________________
> Gammaray-interest mailing list
> Gammaray-interest at mail.kdab.com
> https://mail.kdab.com/mailman/listinfo/gammaray-interest
-- 
Allen Winter | allen.winter at kdab.com | Software Engineer
KDAB (USA), LLC, a KDAB Group company
Tel. USA +1-866-777-KDAB(5322), Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3631 bytes
Desc: not available
URL: <http://mail.kdab.com/pipermail/gammaray-interest/attachments/20120329/bcce6513/attachment.bin>


More information about the Gammaray-interest mailing list