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

Compilation error when using Imlib2 and Qt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.3
    • Build tools: Other
    • None

      The Imlib2 has to be installed to reproduce the problem. (on ubuntu libimlib2)

      The simple code does not compile and gives error (see make.log attachment)

      #include <Imlib2.h>
      #include <QtCore/QCoreApplication>
      
      int main(int argc, char *argv[])
      {
      }
      

      It compiles fine if the include lines are swapped like this:

      #include <QtCore/QCoreApplication>
      #include <Imlib2.h>
      
      int main(int argc, char *argv[])
      {
      }
      

      The test code is attached.

        1. imlibtest.zip
          0.7 kB
          Radek Zielonka
        2. make.log
          7 kB
          Radek Zielonka
        3. Imlib2.h
          25 kB
          Liang Qi
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            liaqi Liang Qi
            rzielonk Radek Zielonka (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes