Update build-openbsd.md with GUI support #19903

pull grubles wants to merge 1 commits into bitcoin:master from grubles:update-openbsd-build-instructions changing 1 files +10 −3
  1. grubles commented at 2:33 AM on September 7, 2020: contributor

    Using OpenBSD as a desktop OS is prevalent enough IMO to warrant updating the documentation for building the GUI.

  2. DrahtBot added the label Docs on Sep 7, 2020
  3. practicalswift commented at 8:34 AM on September 7, 2020: contributor

    Concept ACK

    Thanks for keeping the OpenBSD documentation up to date!

  4. laanwj commented at 6:58 AM on September 8, 2020: member

    Using OpenBSD as a desktop OS is prevalent enough IMO to warrant updating the documentation for building the GUI.

    Agree. This was only a matter of no one having ever tried it. Good to see it's actually so straightforward.

    I think it's preferable to squash the commits, as they're changes to the same documentation file, no need to add the newline in a new commit.

    It would be good if someone other than the author could test this and report. I don't have a OpenBSD machine with X11.

  5. fanquake added the label Waiting for author on Sep 10, 2020
  6. fanquake commented at 2:02 AM on September 10, 2020: member

    Thanks, as laanwj mentioned please squash your commits. I am also unable to test the GUI on OpenBSD.

  7. Add OpenBSD instructions for building the Qt GUI d11020019a
  8. in doc/build-openbsd.md:14 in 62b6116b5f outdated
      10 | @@ -13,10 +11,10 @@ Run the following as root to install the base dependencies for building:
      11 |  
      12 |  ```bash
      13 |  pkg_add git gmake libevent libtool boost
      14 | +pkg_add qt5 # (optional for enabling the GUI)
    


    unknown commented at 6:23 AM on September 10, 2020:

    Got some errors while running this command: https://pastebin.com/raw/3qvFa07m

    Environment details:

    OpenBSD 6.7 1 GB RAM 20 GB Virtual Disk

    Followed most of the instructions mentioned in one article to setup OpenBSD VM.


    grubles commented at 2:34 PM on September 10, 2020:

    It appears the error is due to running out of space in /usr/local/, so you may need to repartition or spin up an instance with more storage in general.

    Error: /dev/sd0h on /usr/local is not large enough (/usr/local/include/X11/qt5/QtGui/qopenglfunctions_4_5_compatibility.h)
    Error: /dev/sd0h on /usr/local is not large enough (/usr/local/include/X11/qt5/QtGui/qopenglfunctions_4_5_core.h)
    Error: /dev/sd0h on /usr/local is not large enough (/usr/local/include/X11/qt5/QtGui/qopenglfunctions_es2.h)
    Error: ... more files do not fit on /dev/sd0h on /usr/local
    

    unknown commented at 6:23 AM on September 11, 2020:

    It appears the error is due to running out of space in /usr/local/

    Yes I will have to figure out how to resolve this before trying to build bitcoin core.

    image


    grubles commented at 12:00 AM on September 12, 2020:

    If you want to try reinstalling OpenBSD, you could try manually partitioning only one partition instead. That way you'll have adequate space. https://nanxiao.me/en/create-only-root-partition-during-installing-openbsd/


    unknown commented at 9:34 PM on September 12, 2020:

    If you want to try reinstalling OpenBSD, you could try manually partitioning only one partition instead. That way you'll have adequate space. https://nanxiao.me/en/create-only-root-partition-during-installing-openbsd/

    This worked and I was able to add the required packages. However got some errors while running the gmake command:

    image


    grubles commented at 11:06 PM on September 12, 2020:

    I'm thinking you're running out of memory now. How much RAM have you allocated to the VM?


    unknown commented at 3:41 AM on September 13, 2020:

    Changing RAM from 1 GB to 3 GB partially resolved the issue. This time there was a different error after few minutes of compiling.

    image


    grubles commented at 7:02 PM on September 13, 2020:

    Are you trying to build master? I've been building v0.20.1 successfully.

    Try git checkout v0.20.1 in the cloned repo directory.

    Then:

    gmake clean gmake


    fanquake commented at 8:47 AM on September 14, 2020:

    This time there was a different error after few minutes of compiling.

    The issue you're seeing is #19559. If you append CC_FOR_BUILD=cc to your ./configure command, everything should work ok. Note that if you're building master, we also just merged a update to the libsecp256k1 subtree, which contains a fix for this issue. So if you git pull and rebuild (after cleaning) it may also disappear. Or, as mentioned above, you can checkout and build a specific tag.

  9. laanwj force-pushed on Sep 10, 2020
  10. fanquake removed the label Waiting for author on Sep 11, 2020
  11. fanquake approved
  12. fanquake commented at 4:45 AM on September 11, 2020: member

    ACK d11020019a0c93dcc56859cdfcd9f0c6a777424f - looks fine. Have not tested.

  13. theStack commented at 5:35 PM on September 12, 2020: member

    Concept ACK -- this actually inspires me to setup an OpenBSD in a virtual machine ;)

  14. fanquake commented at 4:04 AM on September 15, 2020: member

    Going to go-ahead and merge this. @prayank23 Thanks for testing. If you have any further issues, let us know, however I think you should be fine now, as the last issue you were seeing should have resolved itself.

  15. fanquake merged this on Sep 15, 2020
  16. fanquake closed this on Sep 15, 2020

  17. sidhujag referenced this in commit 46a8b283d4 on Sep 15, 2020
  18. ghost commented at 5:22 AM on September 15, 2020: none

    Yes it was resolved. Thanks for your help in trying to setup openBSD and build bitcoin core @fanquake @grubles

  19. fanquake commented at 5:26 AM on September 15, 2020: member

    @prayank23 Great, thanks for letting us know.

  20. DrahtBot locked this on Feb 15, 2022

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: 2026-04-22 18:14 UTC

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