Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOS M1] Fixed autotools build #2424

Merged
merged 1 commit into from Dec 19, 2021
Merged

Conversation

ice0
Copy link
Collaborator

@ice0 ice0 commented Nov 18, 2021

  • Autodetect number of threads for compilation on MacOS
  • Fixed CPP/LDFLAGS to correctly work with M1 Homebrew
  • Fixed boost detection

@ice0 ice0 added the macOS label Nov 18, 2021
autobuild/build.sh Outdated Show resolved Hide resolved
autobuild/build.sh Outdated Show resolved Hide resolved
rodolforg added a commit to rodolforg/synfig that referenced this pull request Nov 23, 2021
From ice0 comment on PR synfig#2424:

For example, currently we are using #include <harfbuzz/hb.h> instead of <hb.h>
but pkg-config returns `harfbuzz/include/harfbuzz`, not just `harfbuzz/include`.
This works fine on Linux because all system libraries is already included by compiler.
This need to be fixed. (TODO)
rodolforg added a commit to rodolforg/synfig that referenced this pull request Nov 23, 2021
From ice0 comment on PR synfig#2424:

 For example, currently we are using #include <harfbuzz/hb.h> instead of <hb.h>
 but pkg-config returns `harfbuzz/include/harfbuzz`, not just `harfbuzz/include`.
 This works fine on Linux because all system libraries is already included by compiler.
 This need to be fixed. (TODO)

--

From ice0 comment on PR synfig#2442:

 Please remove prefix from `fribidi` too.

```
pkg-config --cflags fribidi
-I/usr/include/fribidi
```
ice0 pushed a commit that referenced this pull request Dec 4, 2021
From ice0 comment on PR #2424:

 For example, currently we are using #include <harfbuzz/hb.h> instead of <hb.h>
 but pkg-config returns `harfbuzz/include/harfbuzz`, not just `harfbuzz/include`.
 This works fine on Linux because all system libraries is already included by compiler.
 This need to be fixed. (TODO)

--

From ice0 comment on PR #2442:

 Please remove prefix from `fribidi` too.

```
pkg-config --cflags fribidi
-I/usr/include/fribidi
```
autobuild/build.sh Outdated Show resolved Hide resolved
Comment on lines +107 to +109
# `lib` is required to correctly detect libmng/libjpeg in autotools. Current `configure.ac` script doesn't use
# `pkg-config` to get library flags (libmng provides pkg-config (.pc) file from 2.0.3, but Debian still using 1.0.1).
export LDFLAGS="-L$(brew --prefix)/lib ${LDFLAGS}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'm lazy enough to fix the jpeg/mng to handle pkg-config and direct lib... So, I'll approve this PR and I hope we remember to fix it there and here XD

rodolforg
rodolforg previously approved these changes Dec 19, 2021
- Autodetect number of threads for compilation on MacOS
- Fixed CPP/LDFLAGS to correctly work with M1 Homebrew
- Fixed Boost library detection
@ice0 ice0 merged commit 0bff94e into synfig:master Dec 19, 2021
@ice0 ice0 deleted the fix-macos-autotools branch December 19, 2021 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants