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

configure.json without pkgConfig is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 5.13.2
    • Build System
    • None
    • Other

    Description

       Hello!

      We are trying hard to port the latest Qt version to OpenBSD and most parts are working fine but we need cups and doubleconversion (Not as important as cups) support.

      All all type "pkgConfig" parts are working fine because pkg-config find the correct -L/usr/local/lib and -I/usr/local/include paths and the "-l" libname.

       For example , this code works fine

                  "sources": [
                      { "type": "pkgConfig", "args": "libpcre2-16" },
                      "-lpcre2-16"
                  ]

       

      All simple test+headers+sources fails:

      src/printsupport/configure.json and src/corelib/configure.json

          "libraries": {
              "cups": {
                  "label": "CUPS",
                  "test": {
                      "main": "cupsGetNamedDest(CUPS_HTTP_DEFAULT, NULL, NULL);  // CUPS 1.4 test"
                  },
                  "headers": "cups/cups.h",
                  "sources": [
                      "-lcups"
                  ]
              }
          },
      
      
      
          "libraries": {
              "doubleconversion": {
                  "label": "DoubleConversion",
                  "test": {
                      "main": "(void) double_conversion::StringToDoubleConverter::NO_FLAGS;"
                  },
                  "headers": "double-conversion/double-conversion.h",
                  "sources": [
                      "-ldouble-conversion"
                  ]
      

      For CUPS we can see the following output during the configure step:

      Checking for CUPS...                                                                                                                                         
      Trying source 0 (type inline) of library cups ...                                                                                                            
      cups/cups.h not found in [] and global paths.                                                                                                                
        => source produced no result.                                                                                                                              
      Trying source 1 (type inline) of library cups ...                                                                                                            
      cups/cups.h not found in [] and global paths.                                                                                                                
        => source produced no result.                                                                                                                              
      Trying source 2 (type inline) of library cups ...                                                                                                            
      cups/cups.h not found in [] and global paths.                                                                                                                
        => source produced no result.                                                                                                                              
      test config.qtbase_printsupport.libraries.cups FAILED     
      

      We already backported 9864d2c6f3b628ca9f07a56b197e77bd43931cca which fixed some other issues but not this one. https://bugreports.qt.io/browse/QTBUG-78111?focusedCommentId=477516&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-477516

       

      A workaround would be enough for us for now. Any idea how to set

       -L/usr/local/lib, -I/usr/local/include, -lcups

      and

       -L/usr/local/lib, -I/usr/local/include, ldoubleconversionk

      for configure options cups and  system-doubleconversion.

       

      Thank you in advance

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            rsadowski Rafael Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes