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

Fix framework installation on MacOS #1029

Merged
merged 5 commits into from
Jan 18, 2022
Merged

Fix framework installation on MacOS #1029

merged 5 commits into from
Jan 18, 2022

Conversation

derselbst
Copy link
Member

This includes Pedro's fix from #1027 along with adjustments to the CI pipeline and rebased against the 2.2.x branch.

Resolves #1024

derselbst and others added 3 commits January 14, 2022 22:29
The framework target needs to know about the headers, so cmake tries to copy the framework files into the bundle.
The macro set_source_files_properties() is a modern (cmake >= 3.0) replacement of the general set_property().
@derselbst derselbst added this to the 2.2 milestone Jan 14, 2022
@derselbst derselbst force-pushed the mac-make-install branch 2 times, most recently from 3a59c7a to df124a0 Compare January 15, 2022 18:40
@sonarcloud
Copy link

sonarcloud bot commented Jan 16, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@derselbst
Copy link
Member Author

@vlazzarini CI builds are passing now. Feel free to test.

@vlazzarini
Copy link

Thx. Here's what I did:

git clone https://github.com/FluidSynth/fluidsynth.git
cd fluidsynth
mkdir build 
cd build 
make -j 6 
sudo make install 

However, it doesn't look like the headers are there.

victor@MU-LAP-7ZM build % ls /Library/Frameworks/FluidSynth.framework           
FluidSynth	Resources	Versions

I also looked at /Versions/3 to see if it was just them symlink that wasn't created.

am I in the wrong branch?

@derselbst
Copy link
Member Author

You need the mac-make-install as written in the PR.

@vlazzarini
Copy link

vlazzarini commented Jan 17, 2022

oh, sorry. OK, now I get the right branch, and it installs the headers, but installation in /usr/local/Library/Frameworks is non-standard. So I try then

cmake .. -DCMAKE_INSTALL_PREFIX=/  

but that fails with

sudo make install

...

Install the project...
-- Install configuration: "RelWithDebInfo"
CMake Error at cmake_install.cmake:41 (file):
  file cannot create directory: /lib64/pkgconfig.  Maybe need administrative
  privileges.

The default install configuration does not seem to be what you would expect on MacOS (sounds like it's for a Debian installation).

@derselbst
Copy link
Member Author

Have you cleaned your build folder before trying? Also, you're not supposed to manually set CMAKE_INSTALL_PREFIX, as this implementation relies on the fact that it's default initialized.

@vlazzarini
Copy link

yes, sorry, cleaned my build and now it installs correctly, thanks.

Copy link
Member Author

@derselbst derselbst left a comment

Choose a reason for hiding this comment

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

Great, thanks for testing!

@derselbst derselbst merged commit 634a8b0 into 2.2.x Jan 18, 2022
@derselbst derselbst deleted the mac-make-install branch January 18, 2022 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants