Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Windows] Building and installing problem
Forum Update on Monday, May 27th 2025

[Windows] Building and installing problem

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hsport
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      StaticPhilly
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved