[Qt-interest] [SOLVED] Building Qt with WebKit (Mac OS X)
Israel Brewster
israel at frontierflying.com
Fri Nov 27 19:50:35 CET 2009
On Nov 26, 2009, at 2:54 PM, Neville Dastur wrote:
> The QTextEdit class does a good job of displaying and interacting with
> html files. Can you not use this to display help files?
>
After many fruitless hours of googling (using the wrong search terms,
apparently) and about half a dozen two-hour-long failed rebuilds of
Qt, I finally discovered the problem with building webkit had to do
with the MySQL include files - specifically, MySQL has a plugin.h that
conflicts with WebKits plugin.h - when building, it includes the wrong
one. I removed the plugin.h file from the mysql include path, and the
build was happy, at least for release (debug build failed when it ran
out of memory). Probably a better approach would have been to edit the
WebKit make files to remove the MySQL include line, as WebKit doesn't
need mysql. So I now have webkit working, and it displays the help
file properly.
I'm curious about your approach though. I would assume to use a
QTextEdit, one would have to load the HTML page into memory and then
use the setHTML function on the QTextEdit. How does that work with
links though, especially relative links? Would it just assume the
"current location" as the executable location? Obviously with this
method it doesn't know where the file it is displaying resides, so it
couldn't use that. Or is there some other load function that would
work well here to make such things work? Thanks.
> 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
> _______________________________________________
> 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
-----------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 417 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091127/c1b74f6b/attachment.bin
-------------- next part --------------
More information about the Qt-interest-old
mailing list