[Qt-interest] Building Qt with WebKit (Mac OS X)

Neville Dastur qt at dastur.me.uk
Fri Nov 27 00:54:20 CET 2009


The QTextEdit class does a good job of displaying and interacting with 
html files. Can you not use this to display help files?

Israel Brewster wrote:
> I just tried this on a different (10.6)  machine, with the same 
> results. The only unusual thing I did during the build was to use the 
> -qt-sql flags, and the -system-sqlite flag. I wouldn't think this 
> would cause problems with WebKit, but I still get the same error. Am I 
> missing something in my build environment? Perhaps a library path I 
> need to include? I notice that the error appears to be specifically 
> related to the Java Script components of WebKit - might I need the JDK 
> installed or something? Or is there a way to simple disable the java 
> script components of webkit? I just need to display some simple 
> HTML/CSS pages, so I don't need JavaScript for anything (at least not 
> yet). Thank you for any help you can provide - this is driving me nuts :)
>
> On Nov 25, 2009, at 2:00 PM, Israel Brewster wrote:
>
>> Thanks for the response.
>> On Nov 25, 2009, at 1:19 PM, Garth Dahlstrom wrote:
>>
>>>
>>> Have you investigated using the MacPorts Qt build (then its just 
>>> sudo port install qt-mac)?   It made things pretty easy when I was 
>>> getting started with Qt on OSX.
>>
>> As would installing the pre-built binary packages. But there is one, 
>> maybe two, problems with this approach. First, I need it compiled 
>> with the -system-sqlite flag, as a bug in the Qt SQLite library 
>> prevents SQLite from working with databases on a network drive. 
>> Secondly, I want a universal binary, so my apps can run on both intel 
>> and PPC hardware - I see no reason to limit it to just intel at this 
>> point, as I am not doing anything intel specific. I don't know if the 
>> pre-built binaries are universal or not, but I'd be surprised if they 
>> were compiled with the -system-sqlite flag. Of course, if I'm wrong 
>> about this, all the better!
>>
>>>
>>> If you want to build QtWebkit specifically, you might take a look 
>>> at: http://trac.webkit.org/wiki/BuildingQtOnOSX
>>
>> No, I need all of Qt - webkit is just a small portion of my app. 
>> Actually, I've gotten by just fine without it up till now, but I 
>> can't think of a better way to display my (html) help files at the 
>> moment (see other thread).
>>
>>>
>>>
>>> Also you might want to look at the Webkit Qt port
>>>
>>> On 2009-11-25, at 4:46 PM, Israel Brewster wrote:
>>>> I am attempting to build Qt 4.5.3 with webkit on Mac OS X 10.5.8, but
>>>> it always fails with the error: "lipo: can't open input file: /var/
>>>> folders/Lg/LggL-xyyFn4Hw9+4rA7ZhE+++TU/-Tmp-//ccGEqxlU.out (No such
>>>> file or directory)". If I specify -no-webkit in configure, Qt builds,
>>>> but, of course, without Webkit. How can I fix this error? The full
>>>> text of the compile error (cutting out all the normal compile output)
>>>> is shown below. Thanks!
>>>>
>>>> bindings/js/JSPluginCustom.cpp: In static member function ?static bool
>>>> WebCore::JSPlugin::canGetItemsForName(JSC::ExecState*,
>>>> WebCore::Plugin*, const JSC::Identifier&)?:
>>>> bindings/js/JSPluginCustom.cpp:32: error: invalid use of undefined
>>>> type ?struct WebCore::Plugin?
>>>> generated/JSPlugin.h:30: error: forward declaration of ?struct
>>>> WebCore::Plugin?
>>>> bindings/js/JSPluginCustom.cpp: In static member function ?static
>>>> JSC::JSValuePtr WebCore::JSPlugin::nameGetter(JSC::ExecState*, const
>>>> JSC::Identifier&, const JSC::PropertySlot&)?:
>>>> bindings/js/JSPluginCustom.cpp:38: error: invalid use of undefined
>>>> type ?struct WebCore::Plugin?
>>>> generated/JSPlugin.h:30: error: forward declaration of ?struct
>>>> WebCore::Plugin?
>>>> bindings/js/JSPluginCustom.cpp: In static member function ?static bool
>>>> WebCore::JSPlugin::canGetItemsForName(JSC::ExecState*,
>>>> WebCore::Plugin*, const JSC::Identifier&)?:
>>>> bindings/js/JSPluginCustom.cpp:32: error: invalid use of undefined
>>>> type ?struct WebCore::Plugin?
>>>> generated/JSPlugin.h:30: error: forward declaration of ?struct
>>>> WebCore::Plugin?
>>>> bindings/js/JSPluginCustom.cpp: In static member function ?static
>>>> JSC::JSValuePtr WebCore::JSPlugin::nameGetter(JSC::ExecState*, const
>>>> JSC::Identifier&, const JSC::PropertySlot&)?:
>>>> bindings/js/JSPluginCustom.cpp:38: error: invalid use of undefined
>>>> type ?struct WebCore::Plugin?
>>>> generated/JSPlugin.h:30: error: forward declaration of ?struct
>>>> WebCore::Plugin?
>>>> lipo: can't open input file: /var/folders/Lg/LggL-xyyFn4Hw9+4rA7ZhE++
>>>> +TU/-Tmp-//ccGEqxlU.out (No such file or directory)
>>>> make[1]: *** [.obj/release-static/JSPluginCustom.o] Error 1
>>>> make: *** [release] Error 2
>>>
>>
>> -----------------------------------------------
>> Israel Brewster
>> Computer Support Technician II
>> Frontier Flying Service Inc.
>> 5245 Airport Industrial Rd
>> Fairbanks, AK 99709
>> (907) 450-7250 x293
>> -----------------------------------------------
>>
>> <Israel Brewster.vcf>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> -----------------------------------------------
> Israel Brewster
> Computer Support Technician II
> Frontier Flying Service Inc.
> 5245 Airport Industrial Rd
> Fairbanks, AK 99709
> (907) 450-7250 x293
> -----------------------------------------------
>
> ------------------------------------------------------------------------
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest



More information about the Qt-interest-old mailing list