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

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

XMLWordPrintable

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

      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.

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes