Giter Site home page Giter Site logo

Comments (7)

jubalh avatar jubalh commented on July 1, 2024

For example, for https://profanity-im.github.io/install.html:

  • I'm not sure whether Macports is still a thing
  • If it is I'm not sure whether its up to date or whether people should use brew always

For https://profanity-im.github.io/build.html:
I'm not sure if

openssl is keg-only, which means it is not symlinked into /usr/local therefore pkg-config will fail when detecting the library and the build will fail. In order to fix this we need to add the openssl path to PKG_CONFIG_PATH.

export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"

is still needed.

from profanity-im.github.io.

jubalh avatar jubalh commented on July 1, 2024

@optmzr since you work on osx travis maybe you also have knowledge about osx that could be useful here?

from profanity-im.github.io.

DebXWoody avatar DebXWoody commented on July 1, 2024

It seems xcode is required: xcode-select --install. I'm not sure whether it is required to build the application or for brew / git.

Based on the description on the website, I installed:

brew install autoconf autoconf-archive automake libtool pkg-config glib gnutls
gpgme libotr libstrophe openssl ossp-uuid readline terminal-notifier

For OMEMO is necessary to install libsignal-protocol-c as well

brew install libsignal-protocol-c

Added openssl and libffi to pkg-config PATH

export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/
libffi/lib/pkgconfig:$PKG_CONFIG_PATH"

Example of the configure setup I used

./configure --enable-notifications --enable-omemo --enable-pgp

The list of installed brew formula

$ brew list
adns                    glib                    libffi
libtasn1                ossp-uuid               sqlite
autoconf                gmp                     libgcrypt               libtool
                p11-kit                 terminal-notifier
autoconf-archive        gnupg                   libgpg-error
libunistring            pcre                    unbound
automake                gnutls                  libksba                 libusb
                pinentry                xz
check                   gpgme                   libotr                  nettle
                pkg-config
gdbm                    libassuan               libsignal-protocol-c    npth
                python
gettext                 libevent                libstrophe              openssl
                readline

from profanity-im.github.io.

wstrm avatar wstrm commented on July 1, 2024

Thanks for the great pointers @DebXWoody!

For the Travis CI job, I ended up with:

Brewfile.travis

brew 'autoconf'
brew 'autoconf-archive'
brew 'automake'
brew 'check'
brew 'curl'
brew 'expat'
brew 'glib'
brew 'gnutls'
brew 'gpgme'
brew 'gtk+'
brew 'libffi'
brew 'libotr'
brew 'libsignal-protocol-c'
brew 'libstrophe'
brew 'libtool'
brew 'ncurses'
brew 'openssl'
brew 'ossp-uuid'
brew 'pkg-config'
brew 'readline'

Resulting in:

brew install brew autoconf autoconf-archive automake check curl expat glib gnutls gpgme \
    gtk+ libffi libotr libsignal-protocol-c libstrophe libtool ncurses openssl ossp-uuid \
    pkg-config readline

Some of these dependencies (like gnutls and readline) are redundant, but I added them for good measure.

To make sure that the "keg-only" dependencies are used instead of the system defaults, I point pkg-config in the right direction with:

PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig:$PKG_CONFIG_PATH"
PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:$PKG_CONFIG_PATH"
PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig:$PKG_CONFIG_PATH"
PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig:$PKG_CONFIG_PATH"

Some of these aren't needed either, and the system dependencies (like curl) worked just fine, but I feel like it's better to use the latest from Homebrew instead.

from profanity-im.github.io.

jubalh avatar jubalh commented on July 1, 2024

So this means the website is good and I should close this? :)

from profanity-im.github.io.

wstrm avatar wstrm commented on July 1, 2024

I think we should add the additional PKG_CONFIG_PATHs too, just in case :)

from profanity-im.github.io.

jubalh avatar jubalh commented on July 1, 2024

Awesome! Thanks!

from profanity-im.github.io.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.