Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QLocalePrivate::longLongToString giving segmentation on Qt 4.8.1
I am trying to run qt examples from Qt 4.8.1 for mips.
compilation no problem. But i am getting segmentaion when running any example.
please help if any one has any idea.
Can you try with the latest 4.8 ?
Actually, i cant, because, before compiling for MIPS, i need to apply some patches to qt sources which are not under my control.
Is there any other way i can directly find out why and where it is failing.
Thanks for any help.
Do you mean the patches are out of your control or the sources ?
we got the qt with some board specific patches applied , so i cannot take some other version of Qt and just cross compile.
I hope i am clear, please let me know if its in sufficient.
It doesn't mean that they can't be applied also to a later version of Qt.
Anyway, what is the exact error you are getting ?
The error is:
Program received signal SIGSEGV, Segmentation fault.
0x76390efc in ?? () from /usr/local/lib/libQtCore.so.4
#0 0x76390efc in ?? () from /usr/local/lib/libQtCore.so.4
#1 0x763910ac in ?? () from /usr/local/lib/libQtCore.so.4
#2 0x763867c8 in QLocalePrivate::longLongToString(QChar, QChar, QChar, QChar, 4
#3 0x76386aec in QLocalePrivate::longLongToString(long long, int, int, int, un4
#4 0x763be328 in QString::arg(long long, int, int, QChar const&) const ()
Also with a console application ?
not yet, i will give it a try.
but i have a doubt , while compiling Qt i got a warning
Project WARNING: Your mkspec is including 'common/g++.conf', but the mkspecs have been refactored
To fix this include 'common/gcc-base-.conf and 'common/g++-.conf' instead
I guess some thing is missing in the file name the correct name would be g++-<PLATFORM>.conf
( in the make file the value of PLATFORM is not extracted properly i guess )
can i replace g++.conf with g++-unixconf and gcc-base-unix.conf?
any idea , the segmentation coming because of this ?
I don't know, but fixing it is a good idea