Confirmed users
180
edits
| (7 intermediate revisions by the same user not shown) | |||
| Line 31: | Line 31: | ||
embedapp->Start(EmbedLiteApp::EMBED_THREAD/PROCESS); | embedapp->Start(EmbedLiteApp::EMBED_THREAD/PROCESS); | ||
[https://github.com/ | [https://github.com/tmeshkova/gecko-dev/blob/embedlite/embedding/embedlite/tests/embedLiteCoreInitTest.cpp Core Embed Initialization example] | ||
6. After EmbedLiteAppListener[Derived] received "Initialized" notification, new EmbedLiteView can be created with: | 6. After EmbedLiteAppListener[Derived] received "Initialized" notification, new EmbedLiteView can be created with: | ||
| Line 38: | Line 38: | ||
view->SetListener(MyEmbedLiteViewListener); | view->SetListener(MyEmbedLiteViewListener); | ||
[https://github.com/ | [https://github.com/tmeshkova/gecko-dev/blob/embedlite/embedding/embedlite/tests/embedLiteViewInitTest.cpp View Embed Initialization example] | ||
| Line 51: | Line 51: | ||
== [https://bugzilla.mozilla.org/show_bug.cgi?id=746800 BMO Bug 746800(OMTC)] == | == [https://bugzilla.mozilla.org/show_bug.cgi?id=746800 BMO Bug 746800(OMTC)] == | ||
== Build instructions: == | == Development Build instructions: == | ||
Clone repository with submodules structure | |||
<pre> | |||
git clone git://github.com/tmeshkova/xulrunner-package.git | |||
</pre> | |||
Build it with simple script run: | |||
<pre> | |||
cd xulrunner-package | |||
# Pull all latest changes | |||
./pull.all.sh | |||
# Not after each pull.all especially after major engine updates it make sense to do rm -f objdir-xxxx-xxx/full_* | |||
# Check list of available options | |||
./build.sh -h | |||
# Haramttan | |||
./build.sh -t harmattan | |||
# Fremantle | |||
./build.sh -t fremantle | |||
# Desktop - Qt is default | |||
./build.sh -t desktop | |||
# For debug builds add -d argument | |||
After build is finished you fill see inline message about how to run test UI | |||
You can also export SWRENDER=1 - if your desktop or device does not support HW acceleration | |||
</pre> | |||
== Packaged Build instructions (debian desktop, N9): == | |||
Clone repositories | Clone repositories | ||
<pre> | <pre> | ||
mkdir ~/mozembed | mkdir ~/mozembed | ||
cd ~/mozembed | cd ~/mozembed | ||
# Gecko Engine with EmbedLite API | # Gecko Engine with EmbedLite API | ||
git clone git://github.com/tmeshkova/ | git clone git://github.com/tmeshkova/gecko-dev.git | ||
# Embedlite toolkit independent components (History,prompt et.c.) | # Embedlite toolkit independent components (History,prompt et.c.) | ||
| Line 133: | Line 171: | ||
./qmlMozEmbedTest -url linux.org.ru | ./qmlMozEmbedTest -url linux.org.ru | ||
</pre> | |||
=== Troubleshooting: === | |||
* If embedding does not start and libxul.so location differs from what has been used while building QtMozEmbed, then export path to GRE_HOME (path to folder with libxul.so) | |||
<pre> | |||
ex: export GRE_HOME=/opt/mozilla/xulrunner | |||
</pre> | </pre> | ||