Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QLocalePrivate::longLongToString giving segmentation on Qt 4.8.1

QLocalePrivate::longLongToString giving segmentation on Qt 4.8.1

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 2 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dcqt
    wrote on last edited by
    #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.

    Thanks,

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you try with the latest 4.8 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dcqt
        wrote on last edited by
        #3

        Actually, i cant, because, before compiling for MIPS, i need to apply some patches to qt sources which are not under my control.

        I tried adding some prints in the function to find out the problem, but the prints are coming continuously causing segmentation from libc.so instead of libQtCore.so.

        Is there any other way i can directly find out why and where it is failing.

        Thanks for any help.

        Regards,

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Do you mean the patches are out of your control or the sources ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dcqt
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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 ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • D Offline
                D Offline
                Dcqt
                wrote on last edited by
                #7

                The error is:
                Program received signal SIGSEGV, Segmentation fault.
                0x76390efc in ?? () from /usr/local/lib/libQtCore.so.4
                (gdb) bt
                #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 ()
                from /usr/local/lib/libQtCore.so.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Also with a console application ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    Dcqt
                    wrote on last edited by
                    #9

                    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 ?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      I don't know, but fixing it is a good idea

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved