Skip to content

doc: add further info regarding macOS 11.4 (Big Sur) compilation #1727

@brakmic

Description

@brakmic

Hi,

I'm a total beginner regarding OLA, but I'd like to share a few things I experienced while trying to compile it under macOS 11.4 Big Sur.

First, I tried to follow the original documentation and compile it with MacPorts, but for some unknown reason MacPorts' selfupdate failed, because during update the script tried to link arm64 binaries with amd_x64. This btw. doesn't seem very 'logical' to me. Why should it try something like this?

Screenshot 2021-06-11 at 20 43 05

But there is brew as an alternative, so that I installed all the packages with it and tried again.

After some trial & error I figured out that for some packages we have to provide additional flags to configure or the compilation would fail at a later stage. I assume that there exist various independent C and C++ compilation targets that expect their configuration flags for certain libraries and their includes.

For example, when compiling with HTTP Server activated, one must provide the same libmicrohttpd paths to C and C++ separately. I am not sure how many of available packages demand such treatment, but if other users run into similar problems, I'd recommend them to check with configure --help if there are flags available for their particular library that's not getting linked by default.

Here's my configure call:

./configure --disable-unittests --disable-gcov --enable-python-libs --enable-http --enable-ja-rule LDFLAGS="-L/usr/local/opt/protobuf/lib -L/usr/local/opt/libmicrohttpd/lib" CPPFLAGS="-I/usr/local/opt/protobuf/include -I/usr/local/opt/libmicrohttpd/include/" PYTHON="/usr/local/bin/python3" DOXYGEN_PAPER_SIZE="a4" libmicrohttpd_CFLAGS="-I/usr/local/opt/libmicrohttpd/include" libmicrohttpd_LIBS="-L/usr/local/opt/libmicrohttpd/lib"

As shown, I am pointing at libmicrohttpd twice:

  • For C++ with LDFLAGS and CPPFLAGS
  • For C with libmicrohttpd_LIBS and libmicrohttpd_CFLAGS

Also, I had to point at protobuf's includes and libs manually with CPPFLAGS and LDFLAGS

Although the original documentation talks about Python 2 libraries like py27-protobuf and version 2 of the interpreter, I am using Python 3 here. So far I saw no problems of any kind with it.

This is the configure output:

Screenshot 2021-06-11 at 20 30 42

I am sorry, if this is the proper way of sharing my experiences with OLA compilation, but I could not find any markdown document that I could edit to make a PR.

Regards,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions