How to build qt out of source

前端 未结 4 1659
感情败类
感情败类 2021-02-07 02:26

I was searching a lot through Qt forums and Google for the last few days, but I could not find any obvious answer to this question.

I found the -prefix opti

4条回答
  •  名媛妹妹
    2021-02-07 03:23

    Basically, you just have to run configure.exe from your build directory. For example:

    mkdir \qt\4.5.2-build
    cd \qt\4.5.2-build
    set PATH=%cd%\bin;%PATH%
    \qt\4.5.2-sources\configure.exe -platform win32-msvc2005
    

    Where sources are in \qt\4.5.2-sources, that would cause the build to go into \qt\4.5.2-build on the current drive.

    Also, you must have perl in your PATH, ActiveState Perl is suggested.

    I had not previously heard of this limitation where the build and source directories must be at the same level. If you hit this problem you could try working around it by creating a symbolic link (see mklink command).

提交回复
热议问题