Queries regarding the running the init-repository after downloading the Qt source code
-
i am getting this error
/root/qt5/qtbase/src/corelib/global/qlibraryinfo.cpp:60:23: fatal error: qconfig.cpp: No such file or directory
#include "qconfig.cpp"
^
compilation terminated.
make[2]: *** [.obj/qlibraryinfo.o] Error 1
make[2]: Leaving directory/root/b/src/corelib' make[1]: *** [sub-corelib-make_first] Error 2 make[1]: Leaving directory
/root/b/src'
make: *** [sub-src-make_first] Error 2i searched for qconfig.h and qconfig.cpp in qtbase submodule of Qt source folder, i didnt find.
but in build directory , i found in the respective qtbase submodule,
please provide necessary help.
should i copy from build folder to source folder?.
-
No, don't copy anything around, these are generated files.
Use the Import build option when configuring the project.
In any case, what part of qtbase do you plan to hack on ?
-
i posted the previous question because i was compiling the sub modules using the configured kit of custom built Qt,
more than 25 sub modules was compiled, so was eager to know why qtbase was not compiling , because of qconfig files, any other configuration has to be done for the qtbase submodule?. for compiling using Qt creator.
-
qtbase is a special case. Like the name implies it contains all the code which the other modules are built upon.
Again, what part of qtbase do you plan to work on ?
-
Yes qtbase is a special module which is the base.
And i was able to compile with the kit configured from the customized built of Qt source code,of the qmake used.
Thanks friends for your solutions provided which helped me to compile the qt5 Source code.
Thanks,
-
Good
Then please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
-
Thank you so much for your guidance which helped me to build Qt source code.
It is good to learn about using custom built Qt.Thank You.
-
Hi,
As again coming back to Qt source code after a long time,
i was following the same steps as i followed earlier on how to configure the qt.
Earlier it was working.Again i cloned qt5.9
while configuring i got the error as
user@user-Inspiron-3558:~/Documents/qtsourcecode_contibution/qt-build$ ../qt5/configure -developer-build -opensource -nomake examples -nomake tests
- cd qtbase
- /home/user/Documents/qtsourcecode_contibution/qt5/qtbase/configure -top-level -developer-build -opensource -nomake examples -nomake tests
Please make sure to unset the QMAKESPEC, XQMAKESPEC, QMAKEPATH,
and QMAKEFEATURES environment variables prior to building Qt.
Why i am getting this error?. do i need to do any other configuration?.
Thanks,
-
Do you have any of these environment variables defined ?
-
HI,
how do i check how these variables defined, and where it has to be defined?.
Thanks,
-
@Pradeep-Kumar In the same terminal: call "env" and see whether any of those variables is in the output.
Or just do:echo $QMAKESPEC