wesnoth on homebrew
Moderator: Forum Moderators
wesnoth on homebrew
I took a look at this, it looks pretty cool:
http://brew.sh/
I was going to suggest that it might be a really good way to distribute wesnoth to OS X users.
However to my surprise I found that we are actually on it!
https://github.com/Homebrew/homebrew-ga ... wesnoth.rb
It looks like it hasn't been updated since wesnoth 1.11.7 though. Is anyone maintaining it? Does anyone know who is / was maintaining it?
It would be nice if we could get it updated for 1.12 release. Also, it looks to me like a good alternate solution to this topic:
http://forums.wesnoth.org/viewtopic.php?f=5&t=40551
http://brew.sh/
I was going to suggest that it might be a really good way to distribute wesnoth to OS X users.
However to my surprise I found that we are actually on it!
https://github.com/Homebrew/homebrew-ga ... wesnoth.rb
It looks like it hasn't been updated since wesnoth 1.11.7 though. Is anyone maintaining it? Does anyone know who is / was maintaining it?
It would be nice if we could get it updated for 1.12 release. Also, it looks to me like a good alternate solution to this topic:
http://forums.wesnoth.org/viewtopic.php?f=5&t=40551
Re: wesnoth on homebrew
Moved to Release Announcements, Compiling & Installation.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: wesnoth on homebrew
I’ve volunteered myself as a guinea pig and have been working closely with iceiceice to get this working. This is fantastic if you want/need to run the latest unreleased version.
Right now we have it building against master successfully in OS X. We're working on an option for creating an app bundle as well. This is great news for potentially automating builds.
This line installs Homebrew, a package manager for OS X; if you already have Homebrew, skip this:
The following installs Wesnoth:
You can skip installing cairo and pango if you already have XQuartz on your computer. (If you don’t, you will need to install those using the
Until the bundling is finished, to open Wesnoth, you’ll start it from the Terminal by simply typing
Right now we have it building against master successfully in OS X. We're working on an option for creating an app bundle as well. This is great news for potentially automating builds.
This line installs Homebrew, a package manager for OS X; if you already have Homebrew, skip this:
Code: Select all
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Code: Select all
brew tap homebrew/games
brew install cairo --without-x11
brew install pango --without-x11
brew install --HEAD wesnoth
--HEAD
means take the newest build from master. If you want the latest stable release, leave this flag out. If you want the latest development release, use --devel
.You can skip installing cairo and pango if you already have XQuartz on your computer. (If you don’t, you will need to install those using the
--without-x11[
flags first, as it listed above.)Until the bundling is finished, to open Wesnoth, you’ll start it from the Terminal by simply typing
wesnoth
.Wesnoth Bestiary ( PREVIEW IT HERE )
Unit tree and stat browser
Canvas ( PREVIEW IT HERE )
Exp. map viewer
Unit tree and stat browser
Canvas ( PREVIEW IT HERE )
Exp. map viewer
Re: wesnoth on homebrew
Ok, the cairo and pango installs seemed to have gone well. However, when I did
I got an error: No available formula for wesnoth.
Any ideas?
Code: Select all
brew install wesnoth
Any ideas?
Wesnoth stole my summer . . . again.
Re: wesnoth on homebrew
Try
maybe?
Code: Select all
brew tap homebrew/games
Re: wesnoth on homebrew
Didn't have git. It's installing wesnoth now. We'll see how it pans out.
Thanks
-=FL=-
Thanks
-=FL=-
Wesnoth stole my summer . . . again.
Re: wesnoth on homebrew
Installed 1.12 and the build completed. Upon trying to launch from terminal I got:
Code: Select all
20141227 17:06:22 error filesystem: Failed to dereference /proc/self/exe: No such file or directory
20141227 17:06:23 error filesystem: Could not open '/Users/mac/.wesnoth1.12/preferences' for reading.
Data directory: /usr/local/Cellar/wesnoth/1.12/share/wesnoth
User configuration directory: /Users/mac/.wesnoth1.12
User data directory: /Users/mac/.wesnoth1.12
Cache directory: /Users/mac/.wesnoth1.12/cache
Illegal instruction
Wesnoth stole my summer . . . again.
Re: wesnoth on homebrew
Hmm... unfortunately I have no idea what
I think the
Most likely the only way to make sense of this is to post a core dump from the program, if you do I will try to boot it up and see what is broken.
http://stackoverflow.com/questions/9412 ... n-mac-os-x
http://stackoverflow.com/questions/2080 ... n-mac-os-x
The other thing you can try is to build without the "boost filesystem" option... I tweaked the brew formula for wesnoth to do this, you can try to install my modified version with
It's a shot in the dark, but this uses the older libs so it might help.
Illegal instruction
means here... I have never seen wesnoth make that error before.I think the
/proc/self/exe
and preferences errors are a red herring, most likely the final error means either "broken library" or "segfault" essentially...Most likely the only way to make sense of this is to post a core dump from the program, if you do I will try to boot it up and see what is broken.
http://stackoverflow.com/questions/9412 ... n-mac-os-x
http://stackoverflow.com/questions/2080 ... n-mac-os-x
The other thing you can try is to build without the "boost filesystem" option... I tweaked the brew formula for wesnoth to do this, you can try to install my modified version with
Code: Select all
brew install https://gist.githubusercontent.com/cbeck88/49b0de6ab31fe5f4260a/raw/4c11b0bbd6b06f170b28ccad5989e5f37b69c1e0/wesnoth.rb
Re: wesnoth on homebrew
FaeLord wrote:Code: Select all
20141227 17:06:22 error filesystem: Failed to dereference /proc/self/exe: No such file or directory [...] Illegal instruction
That message comes from the shell, not Wesnoth. It means that the Wesnoth process got terminated with SIGILL (signal 4), which is usually raised on Unix-like systems if the processor attempts to execute an invalid opcode (#UD/fault 06h on x86/x86_64). This would likely be the case if you built Wesnoth or one of its dependencies with compiler options that emit code your processor does not recognize while the binary image itself is deemed compatible at exec time (e.g. attempting to run code built withiceiceice wrote:Hmm... unfortunately I have no idea whatIllegal instruction
means here... I have never seen wesnoth make that error before.
-m32 -march=ivybridge
on an Intel 486).Theiceiceice wrote:I think the/proc/self/exe
and preferences errors are a red herring, most likely the final error means either "broken library" or "segfault" essentially...
/proc/self/exe
warning being printed at all is an oversight in the Boost.filesystem-based filesystem code. This will be fixed in 1.12.1 (commit).Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: wesnoth on homebrew
The other thing you might try is, if homebrew doesn't technically support your architecture (I think its supposed to be 10.6+ ...) you can try to use "tigerbrew", a fork by one of the homebrew devs which aims to support 10.4+. I think you can most likely use the same wesnoth formulas, its just that all the build scripts for the dependencies might be tweaked slightly to suport ppc.
https://github.com/mistydemeo/tigerbrew
https://github.com/mistydemeo/tigerbrew
Re: wesnoth on homebrew
FaeLord, let us know if you tried Tigerbrew or if that doesn’t work.
Wesnoth Bestiary ( PREVIEW IT HERE )
Unit tree and stat browser
Canvas ( PREVIEW IT HERE )
Exp. map viewer
Unit tree and stat browser
Canvas ( PREVIEW IT HERE )
Exp. map viewer
Re: wesnoth on homebrew
I did Tigerbrew intially. I'll try the rest when I have a few moments. Sadly my vehicle has broken down twice in a row or I would have just bought a new computer at this point.
Wesnoth stole my summer . . . again.