Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
59 user(s) are online (42 user(s) are browsing Forums)

Members: 0
Guests: 59

more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 2 3 4 (5) 6 »


Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
@zzd10h

By the way, you should be able to easily solve the problem by putting an old version of libpng.so in application:path/sobjs/. This is the best way to avoid 'dll hell' on OS4.

   Report Go to top

Re: Qt beta
Quite a regular
Joined:
2009/3/10 10:51
From Germany
Posts: 599
I didn't follow this thread to closely, but I installed the lastest Qt just yesterday. I found that a whle bunch of "older" Qt software (f.e. like QDevelop or QXmlEdit or my own port Checksum-qt4) instantly crash on startup with "Use BOOPSI Menu Class for menus" option enabled.

Is it only me? Is a recompile of that applications something that might help? BTW all of them seem to crash somewhere in a intuition.library call.

_________________
X1000|II/G4|440ep|2000/060|2000/040|1000
   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
@cha05e90

Are you running Final Edition or a prevous version? BOOPSI menus are new to FE, so it will fail on previous versions.

A rebuild is necessary in some cases, since there have been very tiny but still significant api changes. You will have to ask the individual, who did the port.

   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
@zzd10h

This is the dump from readelf:
Resized Image

It doesn't seem, that Qt is linked with libpng. So it must be an issue with the individual apps.

   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2012/8/14 12:51
From France
Posts: 1428
@alfkil

OK but when I revert to the FE update 0 libfontconfig.so, no problem.

Maybe that you could link LibQtGui.so with FE update 1 new libfontconfig.so ?

thanks

   Report Go to top

Re: Qt beta
Quite a regular
Joined:
2009/3/10 10:51
From Germany
Posts: 599
@alfkil

Yes, all my systems are running FE Update 1.

_________________
X1000|II/G4|440ep|2000/060|2000/040|1000
   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
Ok, so the solution must be to relink libQtGui.so with the new libfontconfig.so.

Problem:
When linking libQtGui.so, everything works fine, if I specify the new dependencies for libfontconfig.so (for some reason, it needs to link to libbz2.so, libharfbuzz.so, libxml2 and libpng16).

Now, when building a qt app, say, the textedit demo, the linker complains, that it doesn't find libbz2.so, dependency of libfontconfig.so.

Quote:
ld: warning: libbz2.so, needed by /SDK/local/newlib/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)


This is highly mysterous, since '-lbz2' is present in the link line, and I have linked to the object in the sdk tree. I have also tried just copying the file there. Nothing seems to work. Apparently it does find the other objects, so it is quite hard to see, why this one fails to work. Suggestions??

   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2012/8/14 12:51
From France
Posts: 1428
@alfkil

Good !

Me too I have that when linking SMTube but it works.

http://www.amigans.net/modules/xforum ... id=105027#forumpost105027

Could you send me your modified libQtGui, please ?

   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
@zzd10h

There are also some undefined references, so it does not work yet. Do you have an explanation for libbz2.so error?

   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
@zzd10h

This is the full output:

Quote:
12.MainHD:CODE/release/Qt4.7/qt/demos/textedit> gmake
/gcc/bin/c++ -use-dynld -Wl,--export-dynamic -o textedit .obj/release-shared/textedit.o .obj/release-shared/main.o .obj/release-shared/moc_textedit.o .obj/release-shared/qrc_textedit.o -L/qt/lib -lQtGui -L/qt/lib -lfreetype -lfontconfig -lexpat -lpng16 -lharfbuzz -lxml2 -lQtCore -lpthread -liconv -lz -lm -lintl -ldl -lunix
ld: warning: libbz2.so, needed by /SDK/local/newlib/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
/SDK/local/newlib/lib/libpng16.so: undefined reference to `inflateReset2@ZLIB_1.2.3.4'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlCtxtGetLastError@LIBXML2_2.6.0'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlFreeParserCtxt@LIBXML2_2.4.30'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlCreatePushParserCtxt@LIBXML2_2.4.30'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlParseChunk@LIBXML2_2.4.30'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlSAX2GetLineNumber@LIBXML2_2.6.0'
gmake: *** [textedit] Error 1


   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2012/8/14 12:51
From France
Posts: 1428
@alfkil
i encountered that since FE and fixed it by linking as I mentionned in the previous link.

Could you try to link like SMTube ?

/Dev/Dev/Qt/SMTube/smtube-16.07/smtube_svn8142/src> gmake
/gcc/bin/ppc-amigaos-c++ -use-dynld -Wl,--export-dynamic -o smtube .obj/mywebview.o .obj/mywebpage.o .obj/mycookiejar.o .obj/loadpage.o .obj/retrieveyoutubeurl.o .obj/supportedurls.o .obj/version.o .obj/lineedit_with_icon.o .obj/filechooser.o .obj/myscroller.o .obj/playerdialog.o .obj/configdialog.o .obj/desktopinfo.o .obj/browserwindow.o .obj/about.o .obj/main.o .obj/sig.o .obj/ytsig.o .obj/codedownloader.o .obj/players.o .obj/qrc_icons.o -L/qt/lib -lQtWebKit -lQtScript -L/qt/lib -lQtGui -lQtNetwork -lQtCore -lharfbuzz -lpng16 -lfreetype -lfontconfig -lexpat -lxml2 -lssl -lcrypto -lsqlite3 -lpthread -liconv -lxml2 -lbz2 -lz -lm -lintl -ldl -lunix
ld: warning: libbz2.so, needed by /SDK/local/newlib/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
ld: warning: libxml2.so, needed by /SDK/local/newlib/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
/Dev/Dev/Qt/SMTube/smtube-16.07/smtube_svn8142/src>

   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
@zzd10h

I use this linkage line, which is the closest I can get to yours:

Quote:
/gcc/bin/c++ -use-dynld -Wl,--export-dynamic -Wl,-rpath-link=/SDK/local/newlib/lib -Wl,-rpath-link=/qt/lib -o textedit .obj/release-shared/textedit.o .obj/release-shared/main.o .obj/release-shared/moc_textedit.o .obj/release-shared/qrc_textedit.o -L/qt/lib -lQtGui -L/qt/lib -lqtCore -lharfbuzz -lpng16 -lfreetype -lfontconfig -lexpat -lxml2 -lpthread -liconv -lxml2 -lbz2 -lz -lm -lintl -ldl -lunix
/SDK/local/newlib/lib/libpng16.so: undefined reference to `inflateReset2@ZLIB_1.2.3.4'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlCtxtGetLastError@LIBXML2_2.6.0'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlFreeParserCtxt@LIBXML2_2.4.30'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlCreatePushParserCtxt@LIBXML2_2.4.30'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlParseChunk@LIBXML2_2.4.30'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlSAX2GetLineNumber@LIBXML2_2.6.0'
gmake: *** [textedit] Error 1


By using -rpath-link, I can mute the warnings for objects not found. But the undefined references will not go away.

EDIT: Judging from the output from readelf, the symbols that appear as 'undefined references' are in fact not present in the relevant objects. I suspect, there is a problem with the updated libfontconfig.so. Why else would it refer to symbols with different version numbers in libxml2??

   Report Go to top

Re: Qt beta
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 4106
@alfkil
Maybe i talking bull (as didn't read whole topic), but don't you consider such an option: always supply QT with _all_ sobjes it need for work and for building QT apps, and take them inside of your QT directory only, so never problems with system ones, even if they changes. By this way you always will know that everything work as you planed, and no one will broken it.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
@kas1e

Exactly. I need to study -rpath to know if it is posible. Thank you for pointing it out!


Edited by alfkil on 2017/1/11 20:49:23
   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2012/8/14 12:51
From France
Posts: 1428
@alfkil

Ah yes, I remember that I messed with that when I tried to make work SMTube again under FE update 1.

Problem is the SObjs:libxml2.so and the /SDK/local/newlib/lib/libxml2.so

12/2.Dev:Dev/Qt/SMTube/smtube-16.07/smtube_svn8142/src> gmake
/gcc/bin/ppc-amigaos-c++ -use-dynld -Wl,--export-dynamic -o smtube .obj/mywebview.o .obj/mywebpage.o .obj/mycookiejar.o .obj/loadpage.o .obj/retrieveyoutubeurl.o .obj/supportedurls.o .obj/version.o .obj/lineedit_with_icon.o .obj/filechooser.o .obj/myscroller.o .obj/playerdialog.o .obj/configdialog.o .obj/desktopinfo.o .obj/browserwindow.o .obj/about.o .obj/main.o .obj/sig.o .obj/ytsig.o .obj/codedownloader.o .obj/players.o .obj/qrc_icons.o -L/qt/lib -lQtWebKit -lQtScript -L/qt/lib -lQtGui -lQtNetwork -lQtCore -lharfbuzz -lpng16 -lfreetype -lfontconfig -lexpat -lxml2 -lssl -lcrypto -lsqlite3 -lpthread -liconv -lxml2 -lbz2 -lz -lm -lintl -ldl -lunix
ld: warning: libbz2.so, needed by /SDK/local/newlib/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
/SDK/local/newlib/lib/libpng16.so: undefined reference to `inflateReset2@ZLIB_1.2.3.4'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlCreatePushParserCtxt@LIBXML2_2.4.30'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlParseChunk@LIBXML2_2.4.30'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlSAX2GetLineNumber@LIBXML2_2.6.0'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlCtxtGetLastError@LIBXML2_2.6.0'
/SDK/local/newlib/lib/libfontconfig.so: undefined reference to `xmlFreeParserCtxt@LIBXML2_2.4.30'
gmake: *** [smtube] Error 1



I had the same problem than you.

Now, by replacing
/SDK/local/newlib/lib/libxml2.so
/SDK/local/newlib/lib/libz.so


http://zzd10h.amiga-ng.org/Divers/libxml2.lha
http://zzd10h.amiga-ng.org/Divers/libz.lha


2/0.Dev:Dev/Qt/SMTube/smtube-16.07/smtube_svn8142/src> gmake
/gcc/bin/ppc-amigaos-c++ -use-dynld -Wl,--export-dynamic -o smtube .obj/mywebview.o .obj/mywebpage.o .obj/mycookiejar.o .obj/loadpage.o .obj/retrieveyoutubeurl.o .obj/supportedurls.o .obj/version.o .obj/lineedit_with_icon.o .obj/filechooser.o .obj/myscroller.o .obj/playerdialog.o .obj/configdialog.o .obj/desktopinfo.o .obj/browserwindow.o .obj/about.o .obj/main.o .obj/sig.o .obj/ytsig.o .obj/codedownloader.o .obj/players.o .obj/qrc_icons.o -L/qt/lib -lQtWebKit -lQtScript -L/qt/lib -lQtGui -lQtNetwork -lQtCore -lharfbuzz -lpng16 -lfreetype -lfontconfig -lexpat -lxml2 -lssl -lcrypto -lsqlite3 -lpthread -liconv -lxml2 -lbz2 -lz -lm -lintl -ldl -lunix
ld: warning: libbz2.so, needed by /SDK/local/newlib/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
ld: warning: libxml2.so, needed by /SDK/local/newlib/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)



Honestly I don't remember where I grabbed these 2 .so files.



   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
@zzd10h

I must have replaced them in SOBJS: instead of the SDK.... damn. Now it links, but wont run - it complains that "Failed to load shared object libxml2.so.11" - which makes absolutely no sense to me...

EDIT: Did you compile those yourself?

   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2009/10/7 0:11
From Copenhagen
Posts: 1149
@zzd10h

I made a link to libxml2.so, so now it runs. But this whole relinking process did not succeed in evaporating the complaint about libpng-1.4.0. (Also the QIcons don't show images anymore.)

I think the only reasonable solution is to revert to libfontconfig.so from FE Update 0. The new version seems to be sick.


Edited by alfkil on 2017/1/11 21:13:27
   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2012/8/14 12:51
From France
Posts: 1428
@alfkil
if you ask to Hyperion to revert their libfontconfig, please ask for datatypes.library too :)

http://forum.hyperion-entertainment.b ... =36&t=195&start=20#p39863

   Report Go to top

Re: Qt beta
Just popping in
Joined:
2006/12/9 10:13
From 63930 Augerolles FRANCE
Posts: 30
@alfkil
regarding pb with libpng.so, verify that it point to libpng12.so and NOT to libpng16.so (that version is installed by fontconfig for fontconfig use and could be wrongly linked to libpng.so)

_________________
Amigalement,
Jean-Francois Bachelet, Amiga nuts since 1985
-----------------------------------------------------------
Welcome to Happy Computing : AMIGA! (C)2K4-2K99 voxel
   Report Go to top

Re: Qt beta
Just can't stay away
Joined:
2012/8/14 12:51
From France
Posts: 1428
I don't know if it's a Qt beta problem or a FE Update 1 problem but since few time, I'm unable to open a window in SMTube.

SMTube works fine (video list is OK) but as soon as I request About window, Settings window, YT code udate window, it crashs.

Is anybody else have the same problem ?

Symbol info:
Instruction pointer 0x7D0BC97C belongs to module "libQtGui.so" (PowerPC)
Symbol: _ZNK11QTextEngine7itemizeEv + 0x0 in section 10 offset 0x00497978

Stack trace:
Work:Qt-4.7/lib/libQtGui.so:_ZNK11QTextEngine7itemizeEv()+0x0 (section 10 @ 0x497978)
Work:Qt-4.7/lib/libQtGui.so:_ZN11QTextLayout11beginLayoutEv()+0x58 (section 10 @ 0x4A31B4)
Work:Qt-4.7/lib/libQtGui.so:_ZN8QPainter8drawTextERK5QRectiRK7QStringPS0_()+0x234 (section 10 @ 0x2C50A0)
Work:Qt-4.7/lib/libQtGui.so:_ZNK6QStyle12drawItemTextEP8QPainterRK5QRectiRK8QPalettebRK7QStringNS5_9ColorRoleE()+0x510 (section 10 @ 0x5FBA34)
Work:Qt-4.7/lib/libQtGui.so:_ZNK12QCommonStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x2ca4 (section 10 @ 0x642274)
Work:Qt-4.7/lib/libQtGui.so:_ZNK13QWindowsStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x13c (section 10 @ 0x707688)
Work:Qt-4.7/lib/libQtGui.so:_ZNK15QPlastiqueStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x528 (section 10 @ 0x6C9720)
Work:Qt-4.7/lib/libQtGui.so:_ZNK12QCommonStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x3338 (section 10 @ 0x642908)
Work:Qt-4.7/lib/libQtGui.so:_ZNK13QWindowsStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x13c (section 10 @ 0x707688)
Work:Qt-4.7/lib/libQtGui.so:_ZNK15QPlastiqueStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x528 (section 10 @ 0x6C9720)
Work:Qt-4.7/lib/libQtGui.so:_ZN11QPushButton10paintEventEP11QPaintEvent()+0x1d0 (section 10 @ 0x8953C0)
Work:Qt-4.7/lib/libQtGui.so:_ZN7QWidget5eventEP6QEvent()+0x324 (section 10 @ 0xEB9A8)
Work:Qt-4.7/lib/libQtGui.so:_ZN15QAbstractButton5eventEP6QEvent()+0x54 (section 10 @ 0x727D50)
Work:Qt-4.7/lib/libQtGui.so:_ZN11QPushButton5eventEP6QEvent()+0x68 (section 10 @ 0x8916C4)
Work:Qt-4.7/lib/libQtGui.so:_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent()+0x104 (section 10 @ 0x146CC)
Work:Qt-4.7/lib/libQtGui.so:_ZN12QApplication6notifyEP7QObjectP6QEvent()+0x65c (section 10 @ 0x22B0C)
Work:Qt-4.7/lib/libQtCore.so:_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent()+0x258 (section 10 @ 0x26D038)
Work:Qt-4.7/lib/libQtGui.so:_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore()+0x8b4 (section 10 @ 0xE0B28)
Work:Qt-4.7/lib/libQtGui.so:_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore()+0x7c4 (section 10 @ 0xE1BD0)
Work:Qt-4.7/lib/libQtGui.so:_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore()+0x548 (section 10 @ 0xE07BC)
Work:Qt-4.7/lib/libQtGui.so:_ZN19QWidgetBackingStore4syncEv()+0x17d8 (section 10 @ 0x42FD84)
Work:Qt-4.7/lib/libQtGui.so:_ZN14QWidgetPrivate16syncBackingStoreEv()+0x290 (section 10 @ 0xCF020)
Work:Qt-4.7/lib/libQtGui.so:_ZN7QWidget5eventEP6QEvent()+0x1114 (section 10 @ 0xEC798)
Work:Qt-4.7/lib/libQtGui.so:_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent()+0x104 (section 10 @ 0x146CC)
Work:Qt-4.7/lib/libQtGui.so:_ZN12QApplication6notifyEP7QObjectP6QEvent()+0x65c (section 10 @ 0x22B0C)
Work:Qt-4.7/lib/libQtCore.so:_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent()+0x258 (section 10 @ 0x26D038)
Work:Qt-4.7/lib/libQtCore.so:_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData()+0x674 (section 10 @ 0x26E2B4)
Work:Qt-4.7/lib/libQtCore.so:_ZN16QCoreApplication16sendPostedEventsEP7QObjecti()+0x54 (section 10 @ 0x26E610)
Work:Qt-4.7/lib/libQtGui.so:_ZN24QGuiEventDispatcherAmiga13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE()+0x94 (section 10 @ 0x11BE94)
Work:Qt-4.7/lib/libQtCore.so:_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE()+0x164 (section 10 @ 0x263C88)
Work:Qt-4.7/lib/libQtCore.so:_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE()+0x1f8 (section 10 @ 0x264D20)
Work:Qt-4.7/lib/libQtCore.so:_ZN16QCoreApplication4execEv()+0x29c (section 10 @ 0x26E8CC)
Work:Qt-4.7/lib/libQtGui.so:_ZN12QApplication4execEv()+0x40 (section 10 @ 0x13B54)
smtube:main()+0xf64 (section 10 @ 0x58B20)
native kernel module newlib.library.kmod+0x000020a4
native kernel module newlib.library.kmod+0x00002d0c
native kernel module newlib.library.kmod+0x00002ee8
smtube:_start()+0x170 (section 10 @ 0x16C)
native kernel module dos.library.kmod+0x000255c8
native kernel module kernel+0x000420ac
native kernel module kernel+0x000420f4

   Report Go to top


« 1 2 3 4 (5) 6 »



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project