[Marble-bugs] [marble] [Bug 299029] Link failure on OS X and plugins build as ELF rather than Mach-O exectuables

Hanspeter Niederstrasser niederstrasser at gmail.com
Fri Jan 16 04:16:20 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=299029

Hanspeter Niederstrasser <niederstrasser at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |niederstrasser at gmail.com

--- Comment #1 from Hanspeter Niederstrasser <niederstrasser at gmail.com> ---
This is an old entry, but wanted to clarify that plugins should in fact be
compiled as -bundle and not -dynamiclib on OS X:
<https://developer.apple.com/library/mac/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html#//apple_ref/doc/uid/TP40002850-TPXREF103>
and the preferred extension for plugins is either .so or .bundle on OS X (dylib
should be reserved for shared libraries).

A compiled plugin on OS X that ends in .so is not ELF:

$ otool -hv lib/kde4/libmarble_part.so
lib/kde4/libmarble_part.so:
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL  0x00      BUNDLE    24       2504   NOUNDEFS
DYLDLINK TWOLEVEL BINDS_TO_WEAK

This bug should be marked invalid.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list