Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. C1083: Cannot open compiler generated file.
QtWS25 Last Chance

C1083: Cannot open compiler generated file.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.6k 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.
  • R Offline
    R Offline
    Reza Besharat
    wrote on last edited by
    #1

    Hello everyone,

    I have a C++ project that I want to compile. When I use command prompt and build it using Cmake together with Ninja as generator and builder, it works, however, when I use QT with Ninja as generator and VS 19 x64 it gives me the following error:

    C1083: Cannot open compiler generated file: ":Invalid argument

    Anyone knows what is going wrong?

    Thanks.

    jsulmJ 1 Reply Last reply
    0
    • R Reza Besharat

      Hello everyone,

      I have a C++ project that I want to compile. When I use command prompt and build it using Cmake together with Ninja as generator and builder, it works, however, when I use QT with Ninja as generator and VS 19 x64 it gives me the following error:

      C1083: Cannot open compiler generated file: ":Invalid argument

      Anyone knows what is going wrong?

      Thanks.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Reza-Besharat said in C1083: Cannot open compiler generated file.:

      when I use QT

      Do you mean QtCreator?
      Please post whole build log.

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Reza Besharat
        wrote on last edited by
        #3

        Thanks for your answer, Yes I meant QT creator.
        I managed to solve the issue. The Cmakelist file for compiling the project in QTcreator is different from the one used for compiling it via CMD.

        SGaistS 1 Reply Last reply
        0
        • R Reza Besharat

          Thanks for your answer, Yes I meant QT creator.
          I managed to solve the issue. The Cmakelist file for compiling the project in QTcreator is different from the one used for compiling it via CMD.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Why are there two different CMakeLists.txt files to build your project ?

          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