Opened 5 years ago

Closed 5 years ago

#405 closed defect (fixed)

install on mac os

Reported by: Maxim Reznik Owned by:
Priority: major Milestone: 0.7.0
Component: Matreshka Version:
Keywords: Cc:

Description

it seems Mac OS uses .dylib suffix instead of .so. So make install doesn't work as expected.
Just after make:

$ ls -l .libs/libleague-7.4.*
lrwxr-xr-x  1 max  staff       22 May  8 14:29 .libs/libleague-7.4.dylib -> libleague-7.4.so.0.7.0
-rwxr-xr-x  1 max  staff  7320892 May  8 14:29 .libs/libleague-7.4.so.0.7.0

After make install in prefix/:

$ find . -name 'libleague*'
./lib/libleague-7.4.so
./lib/libleague-7.4.so.0.7.0

Make check works fine:

$ otool -L .objs/test_230
.objs/test_230:
	@rpath/libmatreshka-amf-mofext-7.4.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libmatreshka-amf-uml-7.4.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libmatreshka-amf-dd-7.4.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libmatreshka-amf-7.4.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libmatreshka-xml-7.4.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libleague-7.4.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libgnarl-7.4.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libgnat-7.4.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)

Change History (7)

comment:1 by Maxim Reznik, 5 years ago

Quick fix works:

sed -i -e 's/\.so\./.dylib./g' `grep -l -F '.so.' gnat/*`
make install LIBEXT=dylib

comment:2 by vadim.godunko, 5 years ago

In 5292:

Provide detection of MacOS.

Refs #405.

comment:3 by vadim.godunko, 5 years ago

In 5294:

Register MacOS operating system and provide needed selections of units.

Refs #405.

comment:4 by vadim.godunko, 5 years ago

In 5296:

Add install scripts for MacOS.

Refs #405.

comment:5 by vadim.godunko, 5 years ago

In 5297:

Use correct library name on MacOS.

Refs #405.

comment:6 by Maxim Reznik, 5 years ago

In 5298:

Fix library names for MacOS install

Refs #405

comment:7 by vadim.godunko, 5 years ago

Milestone: 0.7.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.