Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved C1083: Cannot open compiler generated file.

    General and Desktop
    3
    4
    330
    Loading More Posts
    • 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
      Reza Besharat last edited by

      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.

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @Reza Besharat last edited by

        @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 Reply Quote 0
        • R
          Reza Besharat last edited by

          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.

          SGaist 1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion @Reza Besharat last edited by

            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 Reply Quote 0
            • First post
              Last post