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

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 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?
    jsulmJ 1 Reply Last reply
    0
    • N naroo

      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?
      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on 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
      0
      • jsulmJ jsulm

        @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 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

        jsulmJ 1 Reply Last reply
        0
        • N naroo

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

          error.PNG

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on 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
          0
          • jsulmJ jsulm

            @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 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

            • Login

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