Giter Site home page Giter Site logo

qtmozembed's People

Contributors

coderus avatar freemangordon avatar marmistrz avatar martyone avatar rainemak avatar rojkov avatar romaxa avatar siteshwar avatar sletta avatar tmeshkova avatar tworaz avatar veskuh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qtmozembed's Issues

QtMozEmbed requires the app to link against libQtDeclarative

When building this [1] source, which doesn't use QtDeclarative at all, an linking error occurs.

libqtembedwigdet doesn't link to libQtDeclarative at all (checked with ldd). Although, when build with with qmake && make the following error occurs:

/usr/lib/libqtembedwidget.so: undefined reference to `QDeclarativeItem::~QDeclarativeItem()'

(and a lot of similar ones).

Adding QT += declarative is a fix, but causes additional and useless RAM usage

Potential fix - separate the non-Declarative and Declarative parts and make separate libraries of them.

[1] http://marmistrz.net63.net/public/qtmozembed/microbe.1.tar.bz2

Cannot compile

Hello.
I tried to compile qtmozembed without any success.
First of all, are there any build instructions (with prerequisites)?
I tried to build gecko-dev first, but I got build error and then compile errors.

The build error caused this error at compile time:

../../dist/system_wrappers/gtk/gtk.h:3.26: fatal error: gtk/gtk.h: no
such file or directory
#include_next <gtk/gtk.h>

I've fixed it by adding this line in /gecko-dev/embedding/embedlite/moz.build:

CXXFLAGS += CONFIG['TK_CFLAGS']

Then, I get the following error:

Unified_c_media_libvorbis0.o
In file included from
/path/to/Source/mozembed/gecko-dev/embedding/embedlite/embedthread/EmbedLiteCompositorParent.cpp:8:0:
/path/to/Source/mozembed/gecko-dev/embedding/embedlite/embedthread/EmbedLiteCompositorParent.h:19:7: error: cannot derive from ‘final’ base ‘mozilla::layers::CompositorParent’ in derived type ‘mozilla::embedlite::EmbedLiteCompositorParent’
class EmbedLiteCompositorParent : public mozilla::layers::CompositorParent
In the directory  /path/to/Source/mozembed/gecko-dev/obj-x86_64-unknown-linux-gnu/embedding/embedlite

If I remove the MOZ_FINAL, I get other errors.

What can I do to fix all the issues?

I tried to build gecko-dev since I get the following error when I try to compile qtmozembed:

fatal error: mozilla-config: no such file or directory

but I don't know if I am on the right track.

I tried on both ArchLinux and Linux Mint Debian Edition.

By the way, is there any 64-bit binary for Linux for this library?
And is this library stable?

Thanks for your help.

crash [@ QGraphicsMozViewPrivate::UpdateViewSize]

run qmlMozEmbedTest on N9
tap on urlbar
close

crashes [@ QGraphicsMozViewPrivate::UpdateViewSize] when accessing destroyed EmbedLiteView

didn't get the complite bt, just some weird bit:

#0 0x411a87fc in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:45 #1 0x3c37d554 in nsProfileLock::FatalSignalHandler (signo=11, info=0xaeb51c60, context=0xaeb51ce0)
at objdir-arm/toolkit/profile/nsProfileLock.cpp:180

#2
#3 0x0002e274 in ?? () from /usr/lib/libicui18n.so.44
#4 0x000294b0 in QGraphicsMozView::setGeometry (this=0x30d318, rect=...) at qgraphicsmozview.cpp:475
#5 0x4259aad4 in qt_resource_data () from /usr/lib/libQtGui.so.4
#6 0x4259aad4 in qt_resource_data () from /usr/lib/libQtGui.so.4

Backtrace stopped: previous frame identical to this frame (corrupt stack?)

QmlMozView fails to render two active QmlMozViews

Bisected master and SHA1 064fdac that added QOepnGLExtension_OES_EGL_image broke rendering of two active QmlMozViews. See example below.

Actual outcome:
Both views have content of m.engadget.com

Expected outcome:
Top most view has www.google.com and the one below it has m.engadget.com.

MainPageQuickSf.qml of qmlmozbrowser
...
import QtQuick 2.0
import Sailfish.Silica 1.0
import Qt5Mozilla 1.0

Page {
    id: browserPage

    QmlMozView {
        width: parent.width
        height: 200
        active: true
        clip: true

        onViewInitialized: {
            loadFrameScript("chrome://embedlite/content/embedhelper.js")
            load("http://www.google.com")
        }
    }

    QmlMozView {
        y: 200
        width: parent.width
        height: 200
        active: true
        clip: true

        onViewInitialized: {
            loadFrameScript("chrome://embedlite/content/embedhelper.js")
            load("http://m.engadget.com")
        }
    }
}
...

Note that when running on Jolla device you need to have in /home/nemo/.mozilla/mozembed/prefs.js:

user_pref("gfx.qt.rgb16.force", false);

Making QObjects known to JavaScript?

Hi, i just wanted to ask if this project supports exposure of QObjects to the JS Enviroment like good ol' Webkit did?
See QWebFrame::addToJavaScriptWindowObject()

Expose page default background color

Move/remove the palette.setColor code from QGraphicsMozViewPrivate::SetBackgroundColor into a different function and expose mBgColor to the outside world with QColor getPageDefaultBackgroundColor()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.