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.
Forum Updated to NodeBB v4.3 + New Features

C1083: Cannot open compiler generated file.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.6k Views 1 Watching
  • 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 16 Mar 2022, 10:00 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.

    J 1 Reply Last reply 16 Mar 2022, 10:22
    0
    • R Reza Besharat
      16 Mar 2022, 10:00

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 16 Mar 2022, 10:22 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 21 Mar 2022, 12:57 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.

        S 1 Reply Last reply 21 Mar 2022, 18:30
        0
        • R Reza Besharat
          21 Mar 2022, 12:57

          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.

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 21 Mar 2022, 18:30 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

          1/4

          16 Mar 2022, 10:00

          • Login

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