[Moved] compile 32bit app on 64bit qt on snow leopard webkit problem



  • I want to run html5 pages on my webview.
    if I run my QT + qml app it runs que qmak and build with no problem but it can't run html5 at least videos on http://html5demos.com/video

    and I get this errors on my console:

    @
    Error loading /Library/Internet Plug-Ins/iPhotoPhotocast.plugin/Contents/MacOS/iPhotoPhotocast: dlopen(/Library/Internet Plug-Ins/iPhotoPhotocast.plugin/Contents/MacOS/iPhotoPhotocast, 262): no suitable image found. Did find: /Library/Internet Plug-Ins/iPhotoPhotocast.plugin/Contents/MacOS/iPhotoPhotocast: no matching architecture in universal wrapper
    @

    for lots of plugins, including flash etc.

    if I run the webview only in a qml project the same page plays the video but I get lots of erros also in the console and sometimes the app crashes.
    errors example:

    @
    Wed Apr 6 00:53:03 marcomartins.lan QMLViewer35572 <Error>: CGContextSaveGState: invalid context 0×0
    Wed Apr 6 00:53:03 marcomartins.lan QMLViewer35572 <Error>: CGContextTranslateCTM: invalid context 0×0
    Wed Apr 6 00:53:03 marcomartins.lan QMLViewer35572 <Error>: CGContextScaleCTM: invalid context 0×0
    Wed Apr 6 00:53:03 marcomartins.lan QMLViewer35572 <Error>: CGContextAddRect: invalid context 0×0
    Wed Apr 6 00:53:03 marcomartins.lan QMLViewer35572 <Error>: doClip: invalid context 0×0
    Wed Apr 6 00:53:03 marcomartins.lan QMLViewer35572 <Error>: CGContextRestoreGState: invalid context 0×0
    @

    and sometimes i get no errors and the app runs the html5 video and crashes after some time!

    what i understand is that the internet plugins are for 32bit and my app is in 64bit but inserting on the qmake linux-g++-32 does nothing.

    and i don’t understand how the qml project can run the video despite the errors and crashes!

    please help!

    [EDIT: code formatting for log output, Volker]



  • no one? :(

    there is no support for qt? =/



  • Please be patient! Crying that there is no answer after little more than 10 hours, is very unpolite and may make user to not reply at all!

    EDIT: And double posting in another thread does not help either. Please stick to one forum. No problem is so urgent that it needs to be spread on multiple subforums.

    Regarding one of your problems: Many plugins are only available as 32 bit versions. This holds definitely for the Flash plugin. You cannot use this in 64bit apps. A preview of 64 bit Flash is available at "adobe labs":http://labs.adobe.com/downloads/flashplayer10_square.html.

    To compile your program as 32 bit application add to your .pro file:

    @
    CONFIG -= x86_64 ppc64
    CONFIG *= x86 ppc
    @

    For the rest, please open a separate thread. Mixing topics leads to confusion.



  • thanks for your help.

    well with that I can't even build the app.

    lots of errors like this:
    @
    :-1: warning: in /Users/marcomartins/Library/QtSDK/Desktop/Qt/472/gcc/lib/QtDeclarative.framework/QtDeclarative, file was built for unsupported file format which is not the architecture being linked (ppc)
    @

    btw my html5 problem isn't related with the plugins right?

    thanks



  • Then leave out the ppc in the last line.

    First make the plugins work, the go ahead to the next issue. There's no good in doing two things at the same time.



  • it works! :D thanks a lot Volker!

    i get this warnings:
    @
    bjc[40871]: Class MPSlider is implemented in both /Library/Internet Plug-Ins/VeetleTVPlayer-0.9.16/Contents/MacOS/Veetle-VLC and /Library/Internet Plug-Ins/VeetleBroadcast-0.9.16/Contents/MacOS/Veetle-VLC. One of the two will be used. Which one is undefined.
    objc[40871]: Class VLCMain is implemented in both /Library/Internet Plug-Ins/VeetleTVPlayer-0.9.16/Contents/MacOS/Veetle-VLC and /Library/Internet Plug-Ins/VeetleBroadcast-0.9.16/Contents/MacOS/Veetle-VLC. One of the two will be used. Which one is undefined.
    @

    and html5 video still don't play

    btw will i notice a big performance drop between 32bt vs 64bit app?



  • I personally would just try to remove one of the two...

    Anyways, that's something you should ask in the support forum for that plugin(s), as it's unrelated to Qt. You might get a more detailed answer there, regarding the plugins mixing up.

    How would you? I seriously doubt that the code in your application does any number crunching - as opposed to the plugins, which are 32bit anyways.



  • yes my code won't do much number crunching but will be mainly for interfaces and it is a demand that they run flawless :)

    any guess about the html 5 volker?



  • The GUI stuff runs ok with 32 bit.

    No clue about the HTML5 stuff. That's subject do debugging once the preconditions are met (read: your app is starting up without library mismatch/duplication errors)



  • beside the warnings about duplicate plugins these are the other warnings:

    @
    WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
    -- GetMIMETypeList() called
    @

    btw, just for curiosity, this internet plugins are from safari webkit or came with qt?



  • The error message leads you directly to a search on google on how to fix it. I leave it for you as an exercise to type it in.

    The plugins are neither from Qt nor from Safari directly. They are addons that you must have installed some time ago. On the Mac they live in a central directory, where Safari, Firefox and other browsers are looking for.



  • error solved, still can't play movie in html5 :(



  • ok, i've just created an html page locally with a video and it worked :)

    maybe on the example it was some js conflict.

    once more: thanks a lot Volker!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.