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. convert Cmake file to Qmake

convert Cmake file to Qmake

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 2 Posters 13.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.
  • jsulmJ jsulm

    @saber On Ubuntu you need to install libglib2.0-dev package.
    Not Qt is outputting this error, but the compiler.

    S Offline
    S Offline
    saber
    wrote on last edited by
    #5

    @jsulm
    It is in my linux system.(manjaro)
    cmake file can find it and it build without error.
    i think qmake file is not finding it.

    jsulmJ 1 Reply Last reply
    0
    • S saber

      @jsulm
      It is in my linux system.(manjaro)
      cmake file can find it and it build without error.
      i think qmake file is not finding it.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @saber Where is this file located on your system?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • jsulmJ jsulm

        @saber Where is this file located on your system?

        S Offline
        S Offline
        saber
        wrote on last edited by
        #7

        @jsulm sorry for delay.new user can post after 300 second.

        glib2.0 is located in " /usr/lib/glib-2.0/"

        to build this app it also needs 2 folder "lxqt-build-tools" and "fm-qt "

        i have thoes installed but no linkeage in qmake.but cmake file link this two file.

        jsulmJ 1 Reply Last reply
        0
        • S saber

          @jsulm sorry for delay.new user can post after 300 second.

          glib2.0 is located in " /usr/lib/glib-2.0/"

          to build this app it also needs 2 folder "lxqt-build-tools" and "fm-qt "

          i have thoes installed but no linkeage in qmake.but cmake file link this two file.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #8

          @saber said in convert Cmake file to Qmake:

          /usr/lib/glib-2.0/

          This is the directory containing the libs. Your problem is the header file. Where is glib-object.h located?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          0
          • jsulmJ jsulm

            @saber said in convert Cmake file to Qmake:

            /usr/lib/glib-2.0/

            This is the directory containing the libs. Your problem is the header file. Where is glib-object.h located?

            S Offline
            S Offline
            saber
            wrote on last edited by saber
            #9

            @jsulm

            glib-object.h is located in ''/usr/include/glib-2.0/''

            jsulmJ 1 Reply Last reply
            0
            • S saber

              @jsulm

              glib-object.h is located in ''/usr/include/glib-2.0/''

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #10

              @saber Then add this to the pro file:

              INCLUDEPATH += /usr/include/glib-2.0
              

              Don't forget to rerun qmake before building.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 1 Reply Last reply
              1
              • jsulmJ jsulm

                @saber Then add this to the pro file:

                INCLUDEPATH += /usr/include/glib-2.0
                

                Don't forget to rerun qmake before building.

                S Offline
                S Offline
                saber
                wrote on last edited by saber
                #11

                @jsulm it solved old problem .But new one

                /usr/include/glib-2.0/glib/gtypes.h:32: error: glibconfig.h: No such file or directory
                 #include <glibconfig.h>
                          ^~~~~~~~~~~~~~
                

                i think I should include all the path like you said.
                but it will be a long .pro file

                jsulmJ 1 Reply Last reply
                0
                • S saber

                  @jsulm it solved old problem .But new one

                  /usr/include/glib-2.0/glib/gtypes.h:32: error: glibconfig.h: No such file or directory
                   #include <glibconfig.h>
                            ^~~~~~~~~~~~~~
                  

                  i think I should include all the path like you said.
                  but it will be a long .pro file

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #12

                  @saber I don't know why you have to add these include directories because on Ubuntu it is not necessary.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    saber
                    wrote on last edited by saber
                    #13

                    first I tried to build it on Ubuntu but got the first error.
                    so moved to manjaro and tried to build but got the same error.
                    can u please see the cmake file .
                    because it does not shows this error.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      saber
                      wrote on last edited by
                      #14

                      it is hell lot of work ,so i leave the conversion and made my own app.

                      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