#2655 closed defect (fixed)
[PATCH] ActorEditor, regardless of configuration, always links against Release libAtlasUI.dylib
Reported by: | Echelon9 | Owned by: | Echelon9 |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 17 |
Component: | Build & Packages | Keywords: | |
Cc: | Patch: |
Description
See output below from Mac otools when inspecting binaries/system/ActorEditor_dbg:
$ otool -L binaries/system/ActorEditor_dbg binaries/system/ActorEditor_dbg: @executable_path/libAtlasUI.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
Note that it is linked against libAtlasUI.dylib, not libAtlasUI_dbg.dylib.
ActorEditor is unable to open on Mac in the Debug configuration, without this fix.
Attachments (1)
Change History (7)
comment:1 by , 10 years ago
by , 10 years ago
Attachment: | fix-trac-2655-premake_macosx.patch added |
---|
Fix for premake sharedlib link issues on Mac OS X
comment:2 by , 10 years ago
Scratch that rather silly early attempt at fixing the issue.
Have gone to read the premake docs, and the issue is in the deliberate install_name command invocation, as premake does not yet fully support that option natively on OS X.
Revised patch attached, which I've confirmed resolves the linking problems with Debug configuration on Mac.
With the patch:
$ otool -L ActorEditor_dbg ActorEditor_dbg: @executable_path/libAtlasUI_dbg.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
./ActorEditor_dbg also runs properly.
comment:3 by , 10 years ago
Component: | Core engine → Build & Packages |
---|---|
Keywords: | review patch added |
Owner: | set to |
Status: | new → assigned |
Summary: | ActorEditor, regardless of configuration, always links against Release libAtlasUI.dylib → [PATCH] ActorEditor, regardless of configuration, always links against Release libAtlasUI.dylib |
comment:4 by , 10 years ago
Keywords: | reviewed added; review removed |
---|
Looks good. It will be committed later today.
I made an attempted fix by editing the premake4.lua script as follows. In essence, this was based on precedent within the same file for different Debug and Release configuration link settings.
Unfortunately, with this edit, ./clean-workspaces plus ./update-workspaces and a new make build the same linking error occurs.