[Windows] Building and installing problem



  • Hi,
    I succesfully compiled QT5.1.1 on Windows 7 but I can't install it.
    This is my configuration command:

    configure -prefix c:\qt\qt5-custom -release -opensource -skip webkit -opengl desktop

    I compile with
    jom -j4

    and try to install it with
    jom install

    What happens is that it copies the files in a folder that I never specified. Example:

        copy /y C:\Qt\qt-everywhere-opensource-src-5.1.1\qtbase\include\QtCore\Q
    

    UrlQuery C:\Qt\qt-everywhere-opensource-src-5.1.1\qtbase\bin\WD\qtbase\WD\qtbase
    \include\QtCore

    qtbase\bin\WD\qtbase\WD\qtbase just seems wrong and in the end I can't add this version of QT in QCreator because it complains that this version is not installed.

    What am I doing wrong?



  • lol I had the exact same problem, im guessing this is a bug, sorry im happy that someone else has come into the same problem :)

    ok how I fixed it,
    I replaced all the(in your case):
    @/LIBPATH:C:\qtbuildpath\qtbase\bin\WD\qtbase\WD\qtbase
    with
    /LIBPATH:c:\qt\qt5-custom\lib@
    in the prl files in the lib folder and also added a qt.conf file to the bin folder containing (in your case)
    @[Paths]
    prefix=c:/qt/qt5-custom
    [EffectivePaths]
    prefix=c:/qt/qt5-custom
    [FinalPaths]
    prefix=c:/qt/qt5-custom@

    I actually made a basic c# program to replace all the paths in the prl files, notice the each normal \ in the file path is replaced with \\
    @string[] QtPriFiles = System.IO.Directory.GetFiles("C:\Devel\Qt\x86", "*.prl", SearchOption.AllDirectories);
    foreach (string QtPriFile in QtPriFiles)
    {
    System.IO.File.WriteAllText(QtPriFile, System.IO.File.ReadAllText(QtPriFile).Replace("C:\\Devel\\Qt\\src\\qtbase\\lib", "C:\\Devel\\Qt\\x86\\lib"));
    Console.WriteLine(QtPriFile);
    }
    Console.WriteLine("found: " + QtPriFiles.Count().ToString() + " files");
    Console.ReadKey();@

    [edit] after re-reading, your not using static so you might get away with just making the qt.conf


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Generally speaking you don't "make install" Qt on windows. Just build it (out of source is better) and use it from the directory where it was built and you should be good to go.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.