Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
126 user(s) are online (101 user(s) are browsing Forums)

Members: 2
Guests: 124

Hypex, jabirulo, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 3 4 (5) 6 »
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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.

Go to top
Re: Qt beta
Quite a regular
Quite a regular


See User information
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
Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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.

Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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.

Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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

Go to top
Re: Qt beta
Quite a regular
Quite a regular


See User information
@alfkil

Yes, all my systems are running FE Update 1.

X1000|II/G4|440ep|2000/060|2000/040|1000
Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
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??

Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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 ?

Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@zzd10h

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

Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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


Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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>

Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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??

Go to top
Re: Qt beta
Home away from home
Home away from home


See User information
@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!
AmigaOS4 on youtube
Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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
Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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.



Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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?

Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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
Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
@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

Go to top
Re: Qt beta
Just popping in
Just popping in


See User information
@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
Go to top
Re: Qt beta
Just can't stay away
Just can't stay away


See User information
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

Go to top

  Register To Post
« 1 2 3 4 (5) 6 »

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project