Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19081

examples/network/ftp does not build in namespace in modularized Qt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 5.0.0
    • 5.0.0
    • Network: FTP
    • None
    • Ubuntu 10.04, gcc 4.4.3.

    Description

      When attempting to build the modularized Qt with "./configure -nokia-developer -qtnamespace TestNamespace", the following build errors are reported:

      g++ -Wl,-rpath-link,/home/user/depot/qt5/qtbase/lib -Wl,-rpath,/home/user/depot/qt5/qtbase/lib -Wl,-rpath,/home/user/depot/qt5/qtbase/lib -o qftp .obj/debug-shared/ftpwindow.o .obj/debug-shared/main.o .obj/debug-shared/moc_ftpwindow.o .obj/debug-shared/qrc_ftp.o    -L/home/user/depot/qt5/qtbase/lib -L/home/user/depot/qt5/qtbase/lib -lQtNetworkTest -lQtGuiTest -L/usr/X11R6/lib -lQtCoreTest -lpthread 
      .obj/debug-shared/main.o: In function `main':
      /home/user/depot/qt5/qtbase/examples/network/qftp/main.cpp:51: undefined reference to `qInitResources_ftp_TestNamespace()'
      .obj/debug-shared/qrc_ftp.o: In function `qInitResources_ftp()':
      /home/user/depot/qt5/qtbase/examples/network/qftp/.rcc/debug-shared/qrc_ftp.cpp:105: undefined reference to `qRegisterResourceData(int, unsigned char const*, unsigned char const*, unsigned char const*)'
      .obj/debug-shared/qrc_ftp.o: In function `qCleanupResources_ftp()':
      /home/user/depot/qt5/qtbase/examples/network/qftp/.rcc/debug-shared/qrc_ftp.cpp:114: undefined reference to `qUnregisterResourceData(int, unsigned char const*, unsigned char const*, unsigned char const*)'
      collect2: ld returned 1 exit status
      make[4]: *** [qftp] Error 1
      

      This failure does not occur if the -qtnamespace configure option is omitted.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              liaqi Liang Qi
              jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes