The Following User Says Thank You to wolke For This Useful Post: | ||
![]() |
2013-01-16
, 00:43
|
Posts: 40 |
Thanked: 265 times |
Joined on Aug 2007
|
#123
|
So far the only dependency to Qt 4.8 is:
which is easily replaceable with:Code:QApplication::setAttribute(Qt::AA_X11InitThreads, true);
Of course -lX11 should be added to make scripts tooCode:. . . #if defined(Q_WS_X11) #include <X11/Xlib.h> #endif . . . #if QT_VERSION >= 0x040800 QApplication::setAttribute(Qt::AA_X11InitThreads, true); #else XInitThreads(); QApplication::setAttribute(static_cast<Qt::ApplicationAttribute>(10), true); #endif
@romaxa - would you consider adding that code to your branch?
The Following 6 Users Say Thank You to romaxa For This Useful Post: | ||
![]() |
2013-01-16
, 05:24
|
Posts: 586 |
Thanked: 471 times |
Joined on Jan 2010
@ Finland
|
#124
|
The Following User Says Thank You to Makeclick For This Useful Post: | ||
![]() |
2013-01-16
, 07:55
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#125
|
Nokia-N900:/opt/maemo/usr/local/lib/fennec-21.0a1$ gdb ./qmlMozEmbedTest GNU gdb (GDB) 6.8.50.20090417-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-linux-gnueabi". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... (gdb) r Starting program: /opt/maemo/usr/local/lib/fennec-21.0a1/qmlMozEmbedTest int main(int, char**) Warning! Running without booster. This may be a bit slower. Preloading theme "base" from cache EmbedLiteExt QGraphicsMozView:QGraphicsMozView:238: greHome from PWD:/opt/maemo/usr/local/lib/fennec-21.0a1 Created LOG for EmbedLiteTrace EmbedLiteExt QDeclarativeMozView:updateContentsSize:108: sz:[800,0] EmbedLiteExt QDeclarativeMozView:updateContentsSize:108: sz:[800,600] QML On Completed>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>Func:virtual bool QGraphicsMozView::event(QEvent*)::453 Event Hide >>>>>>Func:virtual bool QGraphicsMozView::event(QEvent*)::449 Event Show Starting Application!!! Found SGX/MBX driver, enabling FullClearOnEveryFrame Found v1.3 driver, enabling brokenFBOReadBack >>>>>>Func:virtual bool QGraphicsMozView::event(QEvent*)::449 Event Show EmbedLiteExt ExecuteChildThread:56: Loaded xulDir:/opt/maemo/usr/local/lib/fennec-21.0a1/libxpcom.so, appDir:/opt/maemo/usr/local/lib/fennec-21.0a1 Created LOG for EmbedLite EmbedLiteExt setDefaultPrefs:87: ###!!! [Child][AsyncChannel] Error: Processing error: message was deserialized, but the handler returned false (indicating failure) EmbedLiteExt QGraphicsMozView:onInitialized:270: QPixmap: It is not safe to use pixmaps outside the GUI thread [New LWP 5346] Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 5346] 0x44d94352 in ?? () from ./libxul.so 0x44d94352: ldr r3, [r0, #0] (gdb) bt #0 0x44d94352 in ?? () from ./libxul.so #1 0x44795cde in ?? () from ./libxul.so Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb)
The Following 3 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2013-01-16
, 08:19
|
Posts: 586 |
Thanked: 471 times |
Joined on Jan 2010
@ Finland
|
#126
|
The Following User Says Thank You to Makeclick For This Useful Post: | ||
![]() |
2013-01-16
, 08:27
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#127
|
But... The Harmattan will? Can we get flash working with it too? It's fine without, but just asking.
The Following 2 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2013-01-16
, 08:47
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#128
|
![]() |
2013-01-16
, 08:51
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#129
|
@freemangordon in my understanding the philosophy behind qml is "disposable UI's". As there are no ifdefs in qml it's better to just build two of them. Maybe two git branches with a common base would be the way to go.
Even if everything works perfectly from one platform to another, the import statements are enough to break everything.
![]() |
2013-01-16
, 08:55
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#130
|
You have to use LD_LIBRARY_PATH. This is not Windows. In Unix/Linux, unless you explicitly add the current directory (".") to the PATH/LD_LIBRARY_PATH, it will *NOT* be searched.
And it's a good thing that it was designed like that.
https://wiki.mozilla.org/Embedding/IPCLiteAPI
http://romaxa.info/mer/mozbuildhm.tar.gz
http://romaxa.info/mer/mozbuild.tar.gz
they both point to wrong places in the actual document {http://romaxa.info/fennec/MozEmbeddingHarmattan and http://romaxa.info/fennec/MozEmbeddingMerArm}
~ teleshoes ~