Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Moc returns 0xC0000135 error code as application compilation starts (Qt built as a shared library - Win 7 x64)
Qt 6.11 is out! See what's new in the release blog

Moc returns 0xC0000135 error code as application compilation starts (Qt built as a shared library - Win 7 x64)

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.9k 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.
  • A Offline
    A Offline
    Asm_x64
    wrote on last edited by
    #1

    Configuration: Windows 7 x64 / Win SDK 7.1 cl compiler/ Qt5.1.0 (OpenGL) built as a shared library (binaries downloaded from Qt-project website).

    With Qt5.1.0 built (from source with the "-opengl desktop" switch) as a static library, my test program compiles and runs.

    With Qt5.1.0 built as a shared library, although the environment is correctly set, moc immediately returns this error code (0xC0000135).

    Note that moc behaves the same way with both Qt5.1.0 OpenGL and ANGLE versions.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      A brief search with your favorite search engine (search term: moc error 0xC0000135) reveals three possible causes of that error code:

      • could be a "bad path environment variable":https://bugreports.qt-project.org/browse/QTBUG-29935
      • "try running this from Visual Studio command prompt":http://stackoverflow.com/questions/8344346/qwt-installation-errors It could also mean it is better to use mingw32-make instead of nmake
      • "nmake cannot find the compiler":http://stackoverflow.com/questions/6622869/problem-with-nmake
      1 Reply Last reply
      0
      • A Offline
        A Offline
        Asm_x64
        wrote on last edited by
        #3

        OK, thanks willi.

        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