Building from scratch on a MAC (El Captain)

Tomaz Canabrava tcanabrava at kde.org
Tue Nov 3 06:05:09 PST 2015


Can you verify if you have a file named CMakeCache.txt in your sources
directory?

If you do, something happened that made you run cmake in the wrong folder,
and you need to remove this.
Em 3 de nov de 2015 11:46, "Guido Lerch" <guido.lerch at gmail.com> escreveu:

> Hi All,
>
> It seems the build script doesn't work on El Captain.
> Here is what I did to make subsurface build.
> - ran build.shh
> - brew libssh2 - I found errors about libssh2 in the build
>
> Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
> system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_INCLUDE_DIR)
>
> Could NOT find Libgcrypt (missing:  LIBGCRYPT_LIBRARY
> LIBGCRYPT_INCLUDE_DIR)
>
> CMake Error at src/CMakeLists.txt:150 (message):
>
>   No suitable cryptography backend found.m
> - fixed all missing foders using ccmake
> - ran cmake - got error that building within the subsurface source tree
> isn't recommended but the build folder is actually user/src/subsurface/build
> - ran make -j4
> - ran make install
> works (my version  [image: Inline-Bild 1])
>
> Any idea about the errors I have seen when running build.sh ?
>
> 2015-11-03 11:07 GMT+01:00 Guido Lerch <guido.lerch at gmail.com>:
>
>> Hi All,
>>
>> I am getting several warnings around libdivecomputer.
>>
>>  WARNING: Target "Subsurface" requests linking to directory
>> "/Users/glerch/src/libdivecomputer/include".  Targets may
>>
>>  link only to libraries.  CMake is dropping the item.
>>
>> this is what ccmake looks like
>>
>> [image: Inline-Bild 1]
>>
>> I do not find a cmake folder within libdivecomputer though, any ideas ?
>> I deleted the subsurface folder
>> cloned subsurface into src
>> ran subsurface/scripts/build.sh
>>
>> got tons of errors because the cmake configuration had no idea about any
>> of the
>> required libs and Qt. Adding some paths to ccmake fixed that but the I
>> have no idea
>> about the above.
>>
>> In general I thought build.sh is supposed to build subsurface, is this
>> only me having
>> those kind of issues ?
>>
>> --
>> Best regards,
>> Guido
>>
>
>
>
> --
> Best regards,
> Guido
>
> _______________________________________________
> subsurface mailing list
> subsurface at subsurface-divelog.org
> 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/20151103/d99e25a3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 5596 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151103/d99e25a3/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 12829 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151103/d99e25a3/attachment-0003.png>


More information about the subsurface mailing list