Embedding/IPCLiteAPI: Difference between revisions

 
(5 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/romaxa/mozilla-central/blob/embedlite/embedding/embedlite/tests/embedLiteCoreInitTest.cpp Core Embed Initialization example]
   [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/romaxa/mozilla-central/blob/embedlite/embedding/embedlite/tests/embedLiteViewInitTest.cpp View Embed Initialization example]
   [https://github.com/tmeshkova/gecko-dev/blob/embedlite/embedding/embedlite/tests/embedLiteViewInitTest.cpp View Embed Initialization example]


   
   
Line 65: Line 65:
# Pull all latest changes
# Pull all latest changes
./pull.all.sh
./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
# Check list of available options
Line 75: Line 77:
./build.sh -t fremantle
./build.sh -t fremantle


# Desktop
# Desktop - Qt is default
./build.sh -t desktop
./build.sh -t desktop


# For debug builds add -d argument
# 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>
</pre>
Line 90: Line 96:
cd ~/mozembed
cd ~/mozembed
# Gecko Engine with EmbedLite API
# Gecko Engine with EmbedLite API
git clone git://github.com/tmeshkova/mozilla-central.git
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 165: 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>


Confirmed users
180

edits