mpc icon indicating copy to clipboard operation
mpc copied to clipboard

make install does not work on newer MacOS (install command/folders)

Open bferguson3 opened this issue 3 years ago • 3 comments

The install command on MacOS does not have the -t command line flag, so it fails.

Additionally, the folder name for the libraries generated was not "lib" but "libmpc.so.dSYM".

I installed the files manually by copying them and then manually resetting their permissions afterward:

cp -r ./$(DIST)/libmpc.so.dSYM $(DESTDIR)$(PREFIX)/lib cp ./$(PROJ).c $(DESTDIR)$(PREFIX)/share/$(PROJ) cp ./$(PROJ).h $(DESTDIR)$(PREFIX)/share/$(PROJ)

bferguson3 avatar Nov 07 '22 14:11 bferguson3

The Makefile needs to be improved for real. I'm struggling to package this on Guix for a personal project. I'm not really sure why is there test for static and dynamic - shouldn't this be checked after building libmpc.so?

Ashvith10 avatar Nov 05 '24 19:11 Ashvith10

Feel free to go ahead and fix it.

orangeduck avatar Nov 05 '24 20:11 orangeduck

@orangeduck I have it working just fine with autotools. The test case is missing for now, so is the flag for building examples and choosing between static and dynamic (only builds shared libraries for now). But the good news is that it builds and works the way it was intended to on my system:

$ tree $(guix build -L . libmpc)
/gnu/store/ahfzm6aw4dijffqjxdvybxj1a9fh4dzi-libmpc-0.9.0
├── include
│   └── mpc.h
├── lib
│   ├── libmpc.a
│   ├── libmpc.la
│   ├── libmpc.so
│   └── pkgconfig
│       └── libmpc.pc
└── share
    └── doc
        ├── libmpc
        │   ├── LICENSE.md
        │   └── README.md
        └── libmpc-0.9.0
            └── LICENSE.md

8 directories, 8 files

Ashvith10 avatar Nov 06 '24 15:11 Ashvith10