Trying to compile Weidu in Mac OSX
mlnevese
Member, Moderator Posts: 10,214
This discussion was created from comments split from: BG1NPC for BG:EE needs testers!.
0
Comments
New WeiDU binary! Contains fixes, get it now!
http://forum.baldursgate.com/discussion/comment/272623/#Comment_272623
--- original message --- @Wisp, I'm looking at this.
I've got some bits of the git trunk compiling already, but not all of it.
I'm more of a general UNIX genius than a Mac guy in specific.
@Nifft
If there is something specific that is giving you trouble I will try to answer as best I can. If you'd like, I can also post something general about building WeiDU in the OS X forum. Perhaps @mlnevese would be interested as well.
It fails installing ocaml in my machine even after updating MacPorts.
@Wisp
Also I'm splitting this discussion as it has gone way off topic.
EDIT: huh, looks like I'm already in the new topic. Well then.
That's how I've been running NearInfinity and EEKeeper on my Wineskin'd Win32 BGEE.
http://caml.inria.fr/ocaml/release.en.html
Wisp gave a link to the elkhound source here:
http://www.weidu.org/~thebigg/elkhound-2011.01.28.roy.tar.bz2
@Wisp will need to tell you where to get the BGEE'ified Weidu source.
Caveat - I haven't tested any of this together...I'm sure there will need to be tweaking. I really want to dig into this, but I've got a couple of other projects that I need to finish up first.
Putting elkhound in the right place fixed it.
The makefile might want to give a better error for that condition.
I had previously installed the Hellhound mod, and that remains working.
Don't use this one! Use the new one, which is here:
http://forum.baldursgate.com/discussion/comment/272623/#Comment_272623
--- original message ---
Did more testing, no problems so far. I think this executable is good.
Let me try to upload the executable here...
EDIT: Looks like it uploaded okay.
I've tested this on OS/X 10.6 only.
Can people with 10.7 and 10.8 please download and test this?
EDIT part DEUX: source of code (for GPL compliance):
git://github.com/vbigiani/weidu revision e9c84d0332e352dd8abdfb768abd701d82a0e32b (branch 'master')
I'll start doing my work in Mac-land with this build and let you know if I have any trouble.
Maybe I am being idealistic, but I would say with ideas like that it would be completely relevant.
Well my iPad isn't jailbroken, but I could cross-compile if you tell me how.
I didn't do anything special to the WeiDU source code, just picked up the latest version from git and it built.
The one slightly tricky part was getting Elkhound to compile and putting it in the right place; these instructions were helpful for that:
http://forums.pocketplane.net/index.php?topic=28093.0
EDIT: ... and of course fix the paths in weidu/Configuration to suit your system. If you do a MacPorts install of ocaml, that means /opt/local/... instead of /usr/local/... for pretty much everything in weidu/Configuration
To install mods, all you need is the attached 'weidu-osx-intel' binary.
You need Elkhound installed in order to build WeiDU. You do not need Elkhound if you just want to use WeiDU to install mods.
- - -
Elkhound
https://www.dropbox.com/s/1mwjxkt7ik6caoy/elkhound-osx-intel.2013-02-27.zip
The above version of 'elkhound' was built using source from here:
http://www.weidu.org/~thebigg/elkhound-2011.01.28.roy.tar.bz2
Make the changes described here for '(int)' casts and 'int' return types of pointer variables:
http://forums.pocketplane.net/index.php?topic=28093.0
Now run './configure' in the "elkound-2009.01.26" [sic] directory, then 'make && sudo make install'. This will install the 'elkhound' executable as "/usr/local/bin/elkhound".
If you use my pre-compiled elkhound.gz, it goes in "/usr/local/bin/".
- - -
WeiDU
https://www.dropbox.com/s/io02e6krau4g2qe/weidu-osx-intel.2013-02-27.zip
https://www.dropbox.com/s/ad2devj8zd6m0ko/weidu-osx-intel.2013-03-17.zip
The above version of 'weidu-osx-intel' was built using source from here:
https://github.com/FredrikLindgren/weidu/commit/6a84fa3812d30ef2f08085f30a3f0e4ca16cc1c7
To build WeiDU:
- Install OS/X developer tools
- Install MacPorts
- Use MacPorts to install 'ocaml': sudo port install ocaml +labltk
- Get the source using 'git' and the URL above.
- Edit the file "weidu/Configuration"; look for the section starting with Darwin and change /usr/local/... to /opt/local/... for the 'ocaml' paths.
- At this point 'make' should just work.
- - -
EDIT: updated links with current builds.
Testing it is easy. All you need is BGEE and at least one save. Download and install the attached mod. If it installs successfully the test was a success and you can safely uninstall the mod. It will make no changes to your game.
Some downloaders do this for you, some don't.