Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with v4.7.1 on Ubuntu
Forum Updated to NodeBB v4.3 + New Features

Problem with v4.7.1 on Ubuntu

Scheduled Pinned Locked Moved General and Desktop
15 Posts 3 Posters 8.8k 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.
  • A Offline
    A Offline
    ad5xj
    wrote on last edited by
    #1

    I have an application that works fine using 4.6.3 but gives error and warning messages using 4.7.1 on my Ubuntu 10.10 machine.

    Here is the output from the app when running 4.7.1:
    @
    <unknown>:8856): IBUS-WARNING **: Connect to unix:abstract=/tmp/dbus-5pv6Kk98lv,guid=c7e88a30ada53c6e6eef370000005037 failed: Failed to connect to socket /tmp/dbus-5pv6Kk98lv: Connection refused.
    Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)

    (<unknown>:8873): IBUS-WARNING **: Connect to unix:abstract=/tmp/dbus-5pv6Kk98lv,guid=c7e88a30ada53c6e6eef370000005037 failed: Failed to connect to socket /tmp/dbus-5pv6Kk98lv: Connection refused.
    QMetaObject::invokeMethod: No such method KUniqueApplication::loadCommandLineOptionsForNewInstance()
    kbuildsycoca4 running...
    kbuildsycoca4(8875) KBuildSycoca::checkTimestamps: checking file timestamps
    kbuildsycoca4(8875) KBuildSycoca::checkTimestamps: timestamps check ok
    kbuildsycoca4(8875) kdemain: Emitting notifyDatabaseChanged ()
    DXCentral2(8856)/phonon (KDE plugin): Can not create backend object from factory for "GStreamer" , "phonon_gstreamer" :
    "Could not find plugin 'GStreamer' for application 'DXCentral2'"
    DXCentral2(8856)/phonon (KDE plugin): Can not create backend object from factory for "Xine" , "phonon_xine" :
    "Could not find plugin 'Xine' for application 'DXCentral2'"
    pure virtual method called
    @
    I do not use KDE, IBus, DBus, or phonon modules in this app. I have included them in the .pro to see if they are now needed but does not change the output.
    I have found that configuring the keyboard input (thus starting the ibus-daemon) gets rid of some of the messages, but that has never been a requirement before.

    I have removed all the KDE modules that are not needed and I still get the phonon messages at runtime even though the app runs fine. Very strange problem that only occurs with v4.7.1. and not v4.6.3.

    Anyone have ideas?

    Environment :
    Ubuntu 10.10 (maverick)
    Kernel 2.6.35-23-generic
    GNOME 2.32.0
    1 Gb Ram
    15Gb Disk Free space

    Qt SDK 4.7.1
    gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
    using qmake with QtCreator 2.01 and 2.1b1

    Ken AD5XJ

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbynet
      wrote on last edited by
      #2

      maybe you install 4.7?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ad5xj
        wrote on last edited by
        #3

        Please read my post again. It clearly says v4.7.1 - downloaded from Nokia directly.

        Ubuntu canonical is BEHIND Qt as they install 4.7.0 as an update to maverick and NOT 4.7.1.

        I should also state that v4.7.1 is installed in /opt/qtsdk-2010.5.1 as root by default (my choice to use the .1 extension) NOT /usr/lib. v4.7.0 from canonical is in /usr/lib.

        QtCreator is configured to use the v4.7.1 and all environment variables point to version used.

        Ken AD5XJ

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          There is no official release of Qt 4.7.1 yet. Nor is an SDK of that version.

          4.7.1 is, at best, in beta state, at the moment. Things can be broken.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ad5xj
            wrote on last edited by
            #5

            OK perhaps the official release version is still 4.7.0. However there is a linux release qt-sdk-linux-x86-opensource-2010.05.1.

            This is I am referring to. Pardon my error.

            Ken AD5XJ

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              The SDK consists of Qt creator and the Qt libs. The former is at version 4.7.0, the latter at 2.0.1 for the 2010.05.x releases of the SDK.

              In your first post you mentioned Creator 2.1 beta, which has not been released officially. Maybe some of your libs and paths are messed up.

              Or some KDE components have sneaked into your installation without you noticing it. I'd try

              @
              strace -e trace=file -o TRACELOG <myprogram>
              @

              afteerwards look at the file TRACELOG and check which files are tried to open.

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • A Offline
                A Offline
                ad5xj
                wrote on last edited by
                #7

                I think the discussion is getting sidetracked by too much information.

                The problem described in my original post exists whether I use v2.01 QtCreator or v2.1b1.

                That was the first thing I checked. It is not the source of the problem described.

                Ken AD5XJ

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on last edited by
                  #8

                  Your getting things mixed: Qt SDK is not Qt Creator.

                  Qt SDK consists of Qt Libs + Qt Creator in particular versions.

                  It does not matter which version of Qt Creator you use to edit your code, what's causing the problem seems to be the Qt libs version.

                  You happily switch between SDK and Creator and between versions.

                  And again: There is no official 4.7.1 release of the libs. And I really do doubt that the trolls put a pre-release version into the official 2010.05.1 SDK package.

                  Additionally there is no officially released SDK package including Creator 2.1 beta.

                  You definitely messed up versions. I don't think it's sidetracked to sort these things out.

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    ad5xj
                    wrote on last edited by
                    #9

                    Volker I do not know what provoked your post but I is not based on what is online.

                    I stated very clearly:

                    [quote]
                    The problem described in my original post exists whether I use v2.01 QtCreator or v2.1b1.
                    [/quote]

                    That was to answer the question whether it might be a problem using the Beta release of QtCreator 2.1 or not.

                    I also said:

                    [quote]
                    Please read my post again. It clearly says v4.7.1 – downloaded from Nokia directly.

                    Ubuntu canonical is BEHIND Qt as they install 4.7.0 as an update to maverick and NOT 4.7.1.

                    I should also state that v4.7.1 is installed in /opt/qtsdk-2010.5.1 as root by default (my choice to use the .1 extension) NOT /usr/lib. v4.7.0 from canonical is in /usr/lib.

                    QtCreator is configured to use the v4.7.1 and all environment variables point to version used.
                    [/quote]

                    That was to clarify what version of the SDK I was using (including the libs). There is no question as to which libs are involved nor is there a question as to whether I know the difference between QtCreator (in the SDK) and the libs of the SDK.

                    Please deal with the issue I posted originally.

                    Ken AD5XJ

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on last edited by
                      #10

                      Try the strace tip.

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        ad5xj
                        wrote on last edited by
                        #11

                        The strace results are interesting. Here is just some of the very large (287 lines) output file:

                        @
                        execve("./DXCentral2", ["./DXCentral2"], [/* 42 vars */]) = 0
                        access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
                        access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
                        open("/opt/qtsdk-2010.05.1/qt/lib/tls/i686/sse2/cmov/libQtHelp.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
                        open("/opt/qtsdk-2010.05.1/qt/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
                        open("/opt/qtsdk-2010.05.1/qt/lib/Xrandr", O_RDONLY) = -1 ENOENT (No such file or directory)
                        open("/opt/qtsdk-2010.05.1/qt/lib/Xinerama", O_RDONLY) = -1 ENOENT (No such file or directory)

                        @

                        Notice the first place it looks for libQtHelp.so.4 is in .opt/qtsdk-2010.05.1/qt/lib/tls/i686/sse2/cmov/

                        and

                        the first place it looks for libpthread.so.0 is in /opt/qtsdk-2010.05.1/qt/lib/

                        It also looks for GStreamer, Xrandr and Xinerama even though there is no reference to these modules anywhere in my app or in the .pro file. In fact the app does not use sound at all (other than for system sounds generated by GNOME). This is possibly the source of some of the messages mentioned in the original post.

                        Subsequent lines look in other folders and eventually in the folder I specified in my QtCreator config.

                        This is in spite of the fact that my environment variables and the QtCreator environment variables in general or for the project are correct.

                        I am not sure if this is normal output or not.

                        Grasping at straws - I have also cleaned out the /home/ken/.confg/Trolltech.conf file to see if there is something in that cache causing the problem. No difference.

                        I hope this is enough to tell what is going on.

                        Is there a way to specify the order of search at runtime?

                        Ken AD5XJ

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          goetz
                          wrote on last edited by
                          #12

                          It's ok that the system looks in the qt paths for other libs. I suspect that /opt/qtsdk-2010.05.1/qt/lib is in LD_LIBRARY_PATHS

                          I know not exactly, but I suspect that your program depends on phonon and/or webkit. Do you have CONFIG += phonon webkit or something like that in your .pro file?

                          You can also check what libs your program is linking to with

                          @
                          ldd yourprogram
                          @

                          The output should show you all the libs that your program needs, and the paths where they are found (or that they are missing).

                          http://www.catb.org/~esr/faqs/smart-questions.html

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            ad5xj
                            wrote on last edited by
                            #13

                            Yes the
                            @QT += webkit @
                            does exist and
                            @CONFIG +=qt@
                            exists in the .pro file.

                            Does this mean that webkit depends on phonon and the runtime will try to call it anyway? The phonon module is part of KDE on Ubuntu and the SDK only has a wrapper in the includes (which I do not use). I have even used the
                            @QT -= phonon@
                            in the .pro file and that does not change anything.

                            ldd does list phonon, Xrender, Gstreamer, and Xrandr are in the list even though there is no reference to any of them in my project.

                            The Qt Environment Variables list does not contain LD_LIBRARY_PATHS only PATH and yes the /opt/qtsdk-2010.05.1/qt/lib is in my PATH

                            I know there has to be something I am overlooking but I can't figure out what.

                            Ken AD5XJ

                            1 Reply Last reply
                            0
                            • G Offline
                              G Offline
                              goetz
                              wrote on last edited by
                              #14

                              Webkit depends on phonon (at least on some platforms, including linux, if I remember correctly). You always get the dependency on phonon injected by webkit then. Explicitly excluding it from CONFIG does not help in that case.

                              If phonon is included by ubuntu it may be that the versions don't match. Could be that your Qt version is too new for the KDE libs or something like that. I can't help more on that, since I do not have a running maverick box at the moment. Maybe someone else can step in.

                              For LD_LIBRARY_PATHS: maybe the installer has added an entry in /etc/ld.so.conf or /etc/ld.so.conf.d

                              http://www.catb.org/~esr/faqs/smart-questions.html

                              1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                ad5xj
                                wrote on last edited by
                                #15

                                Well /etc/ld.so.conf only has one entry that says include *.conf in /etc/ld.so.conf.d

                                In /etc/ld.so.conf.d there is only

                                libc.conf
                                libasound2.conf
                                GL.conf
                                i686-linux-gnu.conf
                                i486-linux-gnu.conf

                                I would have expected that since phonon is not a part of the SDK that the wrapper would use the webkit phonon I have and the webkit phonon version (as long as it is backward compatible i.e. 4.6.3+) would not matter. Maybe that is a mistaken assumption on my part.

                                Ken AD5XJ

                                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