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. Problems with Compiling Qt Creator Source Code with Visual Studio 2019

Problems with Compiling Qt Creator Source Code with Visual Studio 2019

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 2 Posters 544 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.
  • X Offline
    X Offline
    XiaofengXu
    wrote on last edited by
    #1

    I am trying to compile the Qt Creator source code using Visual Studio 2019 following the instructions on Github, and the following issue occurred:

    The command I referenced is :

    cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=/path/to/Qt;/path/to/llvm" \path\to\qtcreator_sources

    When I compile with *-G ninja * , I run qt-creator.exe Ok! But I can't get .sln file. When I compile without *-G ninja * , it's noy Ok!

    2023-07-15_094219.png

    Christian EhrlicherC 1 Reply Last reply
    0
    • X Offline
      X Offline
      XiaofengXu
      wrote on last edited by
      #4

      This error indicates that the path for Qt to load the plugin is incorrect. At this point, the code has already been compiled, so we can debug it and modify some of the code in the loading path.

      1 Reply Last reply
      0
      • X XiaofengXu

        I am trying to compile the Qt Creator source code using Visual Studio 2019 following the instructions on Github, and the following issue occurred:

        The command I referenced is :

        cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=/path/to/Qt;/path/to/llvm" \path\to\qtcreator_sources

        When I compile with *-G ninja * , I run qt-creator.exe Ok! But I can't get .sln file. When I compile without *-G ninja * , it's noy Ok!

        2023-07-15_094219.png

        Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @XiaofengXu said in Problems with Compiling Qt Creator Source Code with Visual Studio 2019:

        "-DCMAKE_PREFIX_PATH=/path/to/Qt;/path/to/llvm" \path\to\qtcreator_sources

        You're aware that there must be correct paths in there?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        X 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @XiaofengXu said in Problems with Compiling Qt Creator Source Code with Visual Studio 2019:

          "-DCMAKE_PREFIX_PATH=/path/to/Qt;/path/to/llvm" \path\to\qtcreator_sources

          You're aware that there must be correct paths in there?

          X Offline
          X Offline
          XiaofengXu
          wrote on last edited by
          #3

          @Christian-Ehrlicher
          Acyually, the command I use is : cmake -DWITH_TESTS=OFF -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_PREFIX_PATH=D:\qt6installl;D:\llvm2\llvminstall" E:\QtCodeexercise\qtcreatorsrc\qt-creator

          1 Reply Last reply
          0
          • X Offline
            X Offline
            XiaofengXu
            wrote on last edited by
            #4

            This error indicates that the path for Qt to load the plugin is incorrect. At this point, the code has already been compiled, so we can debug it and modify some of the code in the loading path.

            1 Reply Last reply
            0
            • X XiaofengXu has marked this topic as solved on

            • Login

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