Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. The CXX compiler identification is unknown
Forum Updated to NodeBB v4.3 + New Features

The CXX compiler identification is unknown

Scheduled Pinned Locked Moved Unsolved Qt for Python
5 Posts 2 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.
  • N Offline
    N Offline
    naroo
    wrote on 20 Jul 2023, 05:25 last edited by
    #1

    I run
    D:\Qt\6.5.1\msvc2019_64\bin\qt-cmake -G Ninja D:\Qt\6.5.1\Src\qtbase\src\plugins\sqldrivers -DCMAKE_INSTALL_PREFIX=D:\Qt\6.5.1\mariadb -DMySQL_INCLUDE_DIR="C:\Program Files\MariaDB\MariaDB Connector C 64-bit\include" -DMySQL_LIBRARY="C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.lib"
    guided by this page

    I got a message below

    D:\build-sqldrivers>D:\Qt\6.5.1\msvc2019_64\bin\qt-cmake -G Ninja D:\Qt\6.5.1\Src\qtbase\src\plugins\sqldrivers
    -DCMAKE_INSTALL_PREFIX=D:\Qt\6.5.1\mariadb -DMySQL_INCLUDE_DIR="C:\Program Files\MariaDB\MariaDB Connector C 64-bit\include" -DMySQL_LIBRARY="C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.lib"
    -- The CXX compiler identification is unknown
    -- The C compiler identification is unknown
    -- The ASM compiler identification is unknown
    -- Didn't find assembler
    
    I installed MS Visual Studio and set QT Creator > menu > kits> compiler C, C++ compiler with VS directory
    How can I run this command without error?
    J 1 Reply Last reply 20 Jul 2023, 05:27
    0
    • N naroo
      20 Jul 2023, 05:25

      I run
      D:\Qt\6.5.1\msvc2019_64\bin\qt-cmake -G Ninja D:\Qt\6.5.1\Src\qtbase\src\plugins\sqldrivers -DCMAKE_INSTALL_PREFIX=D:\Qt\6.5.1\mariadb -DMySQL_INCLUDE_DIR="C:\Program Files\MariaDB\MariaDB Connector C 64-bit\include" -DMySQL_LIBRARY="C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.lib"
      guided by this page

      I got a message below

      D:\build-sqldrivers>D:\Qt\6.5.1\msvc2019_64\bin\qt-cmake -G Ninja D:\Qt\6.5.1\Src\qtbase\src\plugins\sqldrivers
      -DCMAKE_INSTALL_PREFIX=D:\Qt\6.5.1\mariadb -DMySQL_INCLUDE_DIR="C:\Program Files\MariaDB\MariaDB Connector C 64-bit\include" -DMySQL_LIBRARY="C:\Program Files\MariaDB\MariaDB Connector C 64-bit\lib\libmariadb.lib"
      -- The CXX compiler identification is unknown
      -- The C compiler identification is unknown
      -- The ASM compiler identification is unknown
      -- Didn't find assembler
      
      I installed MS Visual Studio and set QT Creator > menu > kits> compiler C, C++ compiler with VS directory
      How can I run this command without error?
      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 20 Jul 2023, 05:27 last edited by
      #2

      @naroo Do you use the preconfigured terminal provided by your Qt installation? You can find it in Windows Start menu. You should use it if you build directly in terminal instead of QtCreator.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply 20 Jul 2023, 05:52
      0
      • J jsulm
        20 Jul 2023, 05:27

        @naroo Do you use the preconfigured terminal provided by your Qt installation? You can find it in Windows Start menu. You should use it if you build directly in terminal instead of QtCreator.

        N Offline
        N Offline
        naroo
        wrote on 20 Jul 2023, 05:52 last edited by naroo
        #3

        @jsulm
        I think you mentioned an app as below
        but I got same error.
        Thank you for your comment though.
        terminal.png

        error.PNG

        J 1 Reply Last reply 20 Jul 2023, 06:17
        0
        • N naroo
          20 Jul 2023, 05:52

          @jsulm
          I think you mentioned an app as below
          but I got same error.
          Thank you for your comment though.
          terminal.png

          error.PNG

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 20 Jul 2023, 06:17 last edited by
          #4

          @naroo Did you also install Visual Studio with C++ build chain or Microsoft build tools? It looks like you did not.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          N 1 Reply Last reply 20 Jul 2023, 06:36
          0
          • J jsulm
            20 Jul 2023, 06:17

            @naroo Did you also install Visual Studio with C++ build chain or Microsoft build tools? It looks like you did not.

            N Offline
            N Offline
            naroo
            wrote on 20 Jul 2023, 06:36 last edited by
            #5

            @jsulm
            Yes I did and I set it to the compiler property in Preferences > Kits > Compilers
            Did I do wrong in those things?

            cb4a681a-afe9-4aca-a56f-e86b5bc5a9df-image.png

            1 Reply Last reply
            0
            • B Ben Campbell-Wallis referenced this topic on 25 Feb 2025, 22:46

            1/5

            20 Jul 2023, 05:25

            • Login

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