How to install Qt on Windows after building?

后端 未结 8 453
死守一世寂寞
死守一世寂寞 2020-12-02 09:55

I can\'t find any information on how to install Qt built on Windows.
In wiki article How to set up shadow builds on Mac and Linux there\'s description of -prefix

8条回答
  •  清歌不尽
    2020-12-02 10:37

    It's very odd people claim that there is no "make install" on Windows.

    I have used it many times, and I agree that it's not what it is on other platforms, but it serves its purpose.

    How I use Qt's make install on Windows (from cmd):

    configure
    (n/mingw32-)make
    (n/mingw32-)make docs
    (n/mingw32-)make install
    

    The make install bit copies all necessary headers to be able to delete your source directory. Delete all objects and unecessary stuff:

    del /S /Q *.obj lib\*.dll
    rmdir /S /Q docs-build qmake tools src
    

    This allows you to remove the source directory. I don't know what impact this has on debugging Qt source code, but it sure reduces the size of a shadow build. I use it to maintain 32 and 64 bit builds with minimal size.

提交回复
热议问题