Building test version of subsurface on Mac

Dirk Hohndel dirk at hohndel.org
Mon Nov 18 13:57:09 PST 2019


sorry - day job interfering with my responsiveness.

Install Homebrew if you don't have it:

https://docs.brew.sh/Installation <https://docs.brew.sh/Installation>

Then install our depenencies

brew install xz hidapi libusb libxml2 libxslt libzip openssl libgit2 libssh2

actually, I think you don't need all of them as a couple are used as static libs, but that SHOULD work.
I am creating a clean macOS 10.15 VM to try this for myself - there may be changes to these instructions once I got that working.
But I'm reasonably hopeful that this SHOULD work.

/D


> On Nov 18, 2019, at 12:54 PM, Martin de Weger <martin at deweger.org> wrote:
> 
> I can install some stuff, no problem!
> 
> 
> 
> Met vriendelijke groeten,
> 
> Martin de Weger
> 
> 
> 
> 
> 
>> Op 18 nov. 2019, om 21:50 heeft Dirk Hohndel <dirk at hohndel.org <mailto:dirk at hohndel.org>> het volgende geschreven:
>> 
>> This is actually surprisingly good news - what's missing is a library that likely came from Homebrew.
>> You could install those really easily - or I can try and find time to make sure those all get bundled in the app that we create on GitHub.
>> 
>> If you'd be willing to install things locally to see if that's sufficient, please let me know and I'll send some instructions.
>> 
>> /D
>> 
>>> On Nov 18, 2019, at 11:36 AM, Dirk Hohndel <dirk at hohndel.org <mailto:dirk at hohndel.org>> wrote:
>>> 
>>> Fix pushed
>>> 
>>> https://github.com/Subsurface-divelog/subsurface/releases/tag/ci-release <https://github.com/Subsurface-divelog/subsurface/releases/tag/ci-release>
>>> 
>>> now contains a Mac .app.zip -- GitHub has revved their macOS environment and it seems that the binary doesn't run on older macOS versions - but I haven't done extensive testing. The one thing I can see immediately is that the Subsurface binary itself isn't executable.
>>> So please download, unzip, and then 'chmod +x ./Subsurface.app/Contents/MacOS/Subsurface` and then try to execute that binary. Depending on your macOS version this may fail. If it does, I'll need to figure out a different way to create a binary that you can use...
>>> 
>>> /D
>>> 
>>>> On Nov 18, 2019, at 10:51 AM, Dirk Hohndel <dirk at hohndel.org <mailto:dirk at hohndel.org>> wrote:
>>>> 
>>>> So I found that there was a bug in my scripts and I am trying to fix that (but am struggling a bit with oddities in how the GitHub actions deal with files that are folders. I should have that fixed soon so that in the future there will again be Subsurface.app.zip files as part of the releases.
>>>> 
>>>> /D
>>>> 
>>>>> On Nov 18, 2019, at 10:25 AM, Martin de Weger <martin at deweger.org <mailto:martin at deweger.org>> wrote:
>>>>> 
>>>>> Hi Dirk,
>>>>> 
>>>>> I didn’t see the app version, so I tried to work my way through the build. I’ll check from time to time if there is a (newer) version for the Mac so I can play around a bit. No worries on pushing it especially for me.
>>>>> 
>>>>> 
>>>>> Met vriendelijke groeten,
>>>>> 
>>>>> Martin de Weger
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>>> Op 18 nov. 2019, om 17:11 heeft Dirk Hohndel <dirk at hohndel.org <mailto:dirk at hohndel.org>> het volgende geschreven:
>>>>>> 
>>>>>> I pointed Martin at the release link so he would be able to download binaries. I didn't expect anyone to start from those sources, frankly (they are automatically put there by GitHub, I don't think I can turn this off). Building Subsurface from non-git sources is actually harder than just from a cloned git repository!
>>>>>> 
>>>>>> Usually all the main binaries are in that directory https://github.com/Subsurface-divelog/subsurface/releases/tag/ci-release <https://github.com/Subsurface-divelog/subsurface/releases/tag/ci-release>, but sometimes one or more are missing because of issues with the way I implemented the uploading of releases. It looks like the latest set is missing the macOS .app.zip file :-(
>>>>>> 
>>>>>> I can push a current binary to the Subsurface website download area... and I can try and figure out a way to make the upload or the CICD builds more reliable - unfortunately the latest upload looks like it succeeded and somehow ended up getting overwritten / deleted by another build...
>>>>>> 
>>>>>> Unless you are planning to work on the code itself, I would strongly encourage people to just test with the builds we provide as that is much more indicative of what our users will experience as well.
>>>>>> 
>>>>>> /D
>>>>>> 
>>>>>>> On Nov 18, 2019, at 2:38 AM, Anton Lundin <glance at acc.umu.se <mailto:glance at acc.umu.se>> wrote:
>>>>>>> 
>>>>>>> On 17 November, 2019 - Martin de Weger wrote:
>>>>>>> 
>>>>>>>> Hi Guys,
>>>>>>>> 
>>>>>>>> I’ve downloaded the latest developer release from https://github.com/Subsurface-divelog/subsurface/releases/tag/ci-release <https://github.com/Subsurface-divelog/subsurface/releases/tag/ci-release> <https://github.com/Subsurface-divelog/subsurface/releases/tag/ci-release <https://github.com/Subsurface-divelog/subsurface/releases/tag/ci-release>> and unpacked it at ~/Software/subsurface. After reading the Install file I executed cd ~/Software/subsurface/..; bash ~/Software/subsurface/scripts/build.sh -build-deps -desktop from the terminal. As a result, I get the following output. 
>>>>>>> 
>>>>>>> 
>>>>>>> The ci-release tag is used to provide current dev builds, so if you only
>>>>>>> would like to run a dev-build of subsurface you should be able to
>>>>>>> download a Subsurface.app.zip from the ci-release page. Obviously there
>>>>>>> is a bug somewhere that causes it to not show up right now.
>>>>>>> 
>>>>>>> If you would like to build your own latest and greatest subsurface
>>>>>>> binaries, I'd suggest you clone the repo instead of downloading a
>>>>>>> ci-release snapshot of the source.
>>>>>>> 
>>>>>>> 
>>>>>>>> building Subsurface in subsurface/build
>>>>>>>> Building in /Users/martinw/Software, installing in /Users/martinw/Software/install-root
>>>>>>>> cannot find qmake or qmake-qt5
>>>>>>>> 
>>>>>>>> What am I missing? I have QT 5.13.2 installed in my app folder.
>>>>>>> 
>>>>>>> 
>>>>>>> You need to have qmake in your path, or point it out with
>>>>>>> QMAKE=path/to/qmake or by pointing CMAKE_PREFIX_PATH to the cmake files
>>>>>>> in your qt install.
>>>>>>> 
>>>>>>> 
>>>>>>> //Anton
>>>>>>> 
>>>>>>> 
>>>>>>> -- 
>>>>>>> Anton Lundin	+46702-161604
>>>>>>> _______________________________________________
>>>>>>> subsurface mailing list
>>>>>>> subsurface at subsurface-divelog.org <mailto:subsurface at subsurface-divelog.org>
>>>>>>> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface <http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface>
>>>>>> 
>>>>>> _______________________________________________
>>>>>> subsurface mailing list
>>>>>> subsurface at subsurface-divelog.org <mailto:subsurface at subsurface-divelog.org>
>>>>>> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface <http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface>
>>>>> 
>>>> 
>>>> _______________________________________________
>>>> subsurface mailing list
>>>> subsurface at subsurface-divelog.org <mailto:subsurface at subsurface-divelog.org>
>>>> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface <http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface>
>>> 
>>> _______________________________________________
>>> subsurface mailing list
>>> subsurface at subsurface-divelog.org <mailto:subsurface at subsurface-divelog.org>
>>> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface <http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface>
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20191118/0f47a6cb/attachment.html>


More information about the subsurface mailing list