Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Exclude a module from compile in Qt5



  • How can I exclude QtWebkit from compile set? I did download Qt5 source tarball (not git)



  • QT -= webkit in the pro file.

    L.E. Missunderstood the question, I thought you wanted to exclude the webkit from a active project not from the compiling of qt :) This I do not know how to do it



  • Which pro file? did you mean qtdsk.pro?


  • Moderators

    Hi soroush,

    Delete/rename the qtwebkit folder before you run configure and make



  • [quote author="JKSH" date="1356920119"]Hi soroush,

    Delete/rename the qtwebkit folder before you run configure and make[/quote]

    Doesn't that cause failure on compiling Qt Assistant? Sorry for asking before test but compilation is costly for me!


  • Moderators

    [quote author="soroush" date="1356946816"]Doesn't that cause failure on compiling Qt Assistant? Sorry for asking before test but compilation is costly for me! [/quote]No need to apologize, I think it's a good idea that you confirm details before starting :)

    I haven't built Qt Assistant myself before so I can't say for sure... but according to https://bbs.archlinux.org/viewtopic.php?id=139067 Qt Assistant will still compile, but will be missing features provided by WebKit.



  • Before renaming, I changed contents of Makefile in qtwebkit directory and deleted everything leaving only three empty targets: release, debug and install. Then when compiling Qt Assistant, script failed at trying to find -lQtWebkit... In second try, seems to work fine

    Thanks


Log in to reply