how do we get "addr2line" onto a mac?

how do we get "addr2line" onto a mac?

Discuss everything related to compiling and running Spring on Mac OS X.

Moderator: Moderators

Post Reply
abma
Spring Developer
Posts: 3548
Joined: 01 Jun 2009, 00:08

how do we get "addr2line" onto a mac?

Post by abma » 12 Jun 2011, 19:31

any ideas about the error-message for spring, when "addr2line" can't be found?

see http://springrts.com/mantis/view.php?id=2351

or maybe the program can be shipped with spring? how can the program be installed?
0 x

User avatar
daftalx
Posts: 89
Joined: 30 May 2010, 11:56

Re: how do we get "addr2line" onto a mac?

Post by daftalx » 12 Jun 2011, 23:04

abma wrote:how can the program be installed?
you might want to try installing the GNU "binutils" package, which contains a number of useful tools including addr2line. This package has also been ported on Mac OS via MacPorts (one version per architecture basically, though

Code: Select all

port install binutils
will get you the default "native" install).

hope this helps.
daft
0 x

abma
Spring Developer
Posts: 3548
Joined: 01 Jun 2009, 00:08

Re: how do we get "addr2line" onto a mac?

Post by abma » 15 Jun 2011, 16:44

yes, thanks! i added it to the install-instructions. spring/master also should compile now...


one more question: how to distribute spring for mac? after what i read, creating a .app file would make sense? if so, how to create such a file?
0 x

User avatar
daftalx
Posts: 89
Joined: 30 May 2010, 11:56

Re: how do we get "addr2line" onto a mac?

Post by daftalx » 15 Jun 2011, 17:30

abma wrote:yes, thanks! i added it to the install-instructions. spring/master also should compile now...
Cool. I'll update the port to automatically install binutils before spring itself. Once done I'll upgrade the wiki as well.
abma wrote:one more question: how to distribute spring for mac? after what i read, creating a .app file would make sense? if so, how to create such a file?
Until now, MacPorts has been the easiest way to distribute spring, mostly due to the great number of required libraries which are not available by default on Mac.

Obviously a .app is the way to go, we just have to make sure that all required libs can be bundled together to reduce the hassle. I've actually looked into this with MacPorts which can build .dmg archives. Will let you know my progress. In the meantime the MacPorts solution is definitely usable (and is apparently not harder than the Linux way).

[EDIT] Just noticed the buildbot is happy. VICTORY!
0 x

User avatar
hoijui
Former Engine Dev
Posts: 4342
Joined: 22 Sep 2007, 09:51

Re: how do we get "addr2line" onto a mac?

Post by hoijui » 15 Jun 2011, 19:31

yeah!! :D
congrats guys, everyone who worked on it!
0 x

Post Reply

Return to “Mac OS X”