Error while running nmake. #25837

issue prakhar728 openend this issue on August 13, 2022
  1. prakhar728 commented at 1:17 pm on August 13, 2022: none

    I was following the instructions given on Readme to build on windows. I download the qt zip installer, extracted it to a folder and ran configure command. It didn’t cause any error. When I rank nmake it throws an error Error opening .moc\release\moc_qaction.cpp.json for reading. I don’t understand how to deal with this.

    To actually run through so I could follow the next steps.

    image

    I am running it on Windows 10, and using MS VS 2022.

  2. prakhar728 added the label Bug on Aug 13, 2022
  3. fanquake removed the label Bug on Aug 13, 2022
  4. fanquake added the label Windows on Aug 13, 2022
  5. hebasto commented at 1:23 pm on August 13, 2022: member

    I was following the instructions given on Readme to build on windows. I download the qt zip installer, extracted it to a folder and ran configure command. It didn’t cause any error. When I rank cmake it throws an error

    Could you please specify your steps more exactly, as https://github.com/bitcoin/bitcoin/blob/master/build_msvc/README.md does not contain advises about “zip installer” and to run cmake?

  6. prakhar728 commented at 1:37 pm on August 13, 2022: none

    I was following the instructions given on Readme to build on windows. I download the qt zip installer, extracted it to a folder and ran configure command. It didn’t cause any error. When I rank cmake it throws an error

    Could you please specify your steps more exactly, as https://github.com/bitcoin/bitcoin/blob/master/build_msvc/README.md does not contain advises about “zip installer” and to run cmake?

    Sorry for the typo I ran name. The exact steps I was following are :-

    1. In the Preqrequisites section I installed vcpkg first.
    2. Under the section header QT I downloaded the single zip archive of QT source code. And extracted it to a folder namely **qt-everywhere-src-5.15.5**.
    3. I made a build directory using mkdir build and changed into it.
    4. Following the instructions I ran the ..\configure -release -silent -opensource -c .... command as mentioned there.
    5. Finally I ran nmake and after running some processes for a while it threw the above error.
  7. hebasto commented at 1:47 pm on August 13, 2022: member

    @prakhar728

    Are you sure you are using ““x64 Native Tools Command Prompt for VS 2022” for compiling?

  8. prakhar728 commented at 1:53 pm on August 13, 2022: none

    @prakhar728

    Are you sure you are using ““x64 Native Tools Command Prompt for VS 2022” for compiling?

    image Yeah.

  9. hebasto commented at 2:05 pm on August 13, 2022: member
    Did you change the -prefix option in the ..\configure command?
  10. prakhar728 commented at 2:10 pm on August 13, 2022: none

    Did you change the -prefix option in the ..\configure command?

    No. I just copy pasted the entire thing. ..\configure -release -silent -opensource -confirm-license -opengl desktop -static -static-runtime -mp -qt-zlib -qt-pcre -qt-libpng -nomake examples -nomake tests -nomake tools -no-angle -no-dbus -no-gif -no-gtk -no-ico -no-icu -no-libjpeg -no-libudev -no-sql-sqlite -no-sql-odbc -no-sqlite -no-vulkan -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip doc -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtlottie -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquick3d -skip qtquickcontrols -skip qtquickcontrols2 -skip qtquicktimeline -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns -no-openssl -no-feature-bearermanagement -no-feature-printdialog -no-feature-printer -no-feature-printpreviewdialog -no-feature-printpreviewwidget -no-feature-sql -no-feature-sqlmodel -no-feature-textbrowser -no-feature-textmarkdownwriter -no-feature-textodfwriter -no-feature-xml -prefix C:\Qt_static

  11. hebasto commented at 2:12 pm on August 13, 2022: member
    And there are no filesystem restrictions to access the C:\Qt_static folder on your system, aren’t there?
  12. prakhar728 commented at 2:13 pm on August 13, 2022: none

    And there are no filesystem restrictions to access the C:\Qt_static folder on your system, aren’t there?

    Nope. Also, I ran the cmd as Admin so I don’t think that would be a problem.

  13. hebasto commented at 2:15 pm on August 13, 2022: member

    I ran the cmd as Admin

    Can you try without elevated rights?

  14. prakhar728 commented at 2:24 pm on August 13, 2022: none

    I ran the cmd as Admin

    Can you try without elevated rights?

    Already did. That was the first thing I tried. After this error I thought might be some user error or something so I ran it with admin.

  15. prakhar728 commented at 3:04 pm on August 13, 2022: none
    Also, there an online installer for Windows QT. Should I try that? If yes, what packages etc should I choose?
  16. fanquake commented at 8:14 am on August 15, 2022: member
    Not sure what to do here, now that this has turned into a thread about how to compile Qt from source on Windows, which is not something we should be debugging in this issue tracker. We should probably remove the “how to compile qt from scratch” instructions from https://github.com/bitcoin/bitcoin/tree/master/build_msvc and point to some Qt docs instead.
  17. MarcoFalke added the label GUI on Aug 15, 2022
  18. fanquake referenced this in commit f601ac3296 on Aug 15, 2022
  19. fanquake referenced this in commit facfba33e3 on Aug 15, 2022
  20. ghost commented at 5:35 am on August 16, 2022: none
  21. fanquake commented at 8:35 am on August 31, 2022: member
    Moved to the GUI repo: https://github.com/bitcoin-core/gui/issues/659. Can be debugged further there if anyone wants to followup.
  22. fanquake closed this on Aug 31, 2022

  23. bitcoin locked this on Aug 31, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-30 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me