Solved convert Cmake file to Qmake
-
@saber On Ubuntu you need to install libglib2.0-dev package.
Not Qt is outputting this error, but the compiler. -
@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. -
@saber Where is this file located on your system?
-
@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.
-
@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?
-
glib-object.h is located in ''/usr/include/glib-2.0/''
-
@saber Then add this to the pro file:
INCLUDEPATH += /usr/include/glib-2.0
Don't forget to rerun qmake before building.
-
@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 -
@saber I don't know why you have to add these include directories because on Ubuntu it is not necessary.
-
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. -
it is hell lot of work ,so i leave the conversion and made my own app.