Page 1 of 2
how to build tmw on mac?
Posted: 25 Apr 2009, 01:54
by swimmy
anyone knows how to build tmw on mac?
i want to use patch.
Re: how to build tmw on mac?
Posted: 27 Apr 2009, 10:17
by trapdoor
You will need Xcode which is available free from the Apple Developer website.
You will need all the dependencies as listed on the wiki to build.
Patch the files, then Open up the .xcodeproj file from git, and click Build and Go.
This will build the game and run it.
--
trapdoor
Re: how to build tmw on mac?
Posted: 11 Oct 2010, 00:55
by Frost
I'm trying to compile the TMW client on my Mac (OS X 10.5.8 Intel). I downloaded the .DMG image, but for various reasons would like to compile it anew.
I don't know how to use git, so I downloaded the source code from
http://downloads.sourceforge.net/theman ... 9.1.tar.gz
I've installed XCode 3.1.4 and the following through macports (
http://www.macports.org):
- libpng 1.2.44
- libvorbis 1.3.1
- libxml2 2.7.7
- libsdl 1.2.14 (includes /opt/local/bin/sdl-config)
- libsdl-image 1.2.10
- libsdl-mixer 1.2.11
- libsdl-net 1.2.7
- libguichan 0.8.2
- phyfs 2.0.0
In short, I tried to follow the instructions at
http://wiki.themanaworld.org/index.php/MacOSX_port
After extracting the tarball, I run
$ ./configure
<snip lots of autoconf joy>
checking for curl-config... /usr/bin/curl-config
checking for pthread_create in -lpthread... yes
checking for gcnGuichanVersion in -lguichan... no
configure: error: *** Unable to find Guichan library (
http://guichan.sf.net/)
$
Since I see guichan in both /opt/local/lib/libguichan and /opt/local/include/guichan, I try
$ ./configure --libdir=/opt/local/include
and
$ ./configure --libdir=/opt/local/lib
and
$ ./configure --libdir=/opt/local/lib/libguichan
...and get the exact same error.
What am I doing wrong?
Re: how to build tmw on mac?
Posted: 11 Oct 2010, 01:30
by Kage
Building on Mac:
1. Get a gun
2. Get a bullet
3. Insert bullet into gun
4. Aim gun at head
5. Pull gun's trigger
6. ???
7. PROFIT!!!
Re: how to build tmw on mac?
Posted: 11 Oct 2010, 03:45
by Frost
Kage wrote:Building on Mac:
1. Get a gun
<snip>
That's very funny, Kage, but not quite true. My OS of choice is OpenBSD (and not always on x86), so I'm used to compiling stuff from source in a BSD environment, including this Mac.
Don't get me started about all the OSS that implicitly assumes you're running either Redhat or Debian GNU/Linux on x86.

Re: how to build tmw on mac?
Posted: 11 Oct 2010, 05:50
by Jaxad0127
Frost wrote:Kage wrote:Building on Mac:
1. Get a gun
<snip>
That's very funny, Kage, but not quite true. My OS of choice is OpenBSD (and not always on x86), so I'm used to compiling stuff from source in a BSD environment, including this Mac.
Don't get me started about all the OSS that implicitly assumes you're running either Redhat or Debian GNU/Linux on x86.

For OSX compilation, xcode would be best, due to how Apple changed things. Or try the Mana repo and CMake. Mana 1.0 WIP:
http://gitorious.org/mana/mana/archive-tarball/1.0. Automake stuff is in there, but depreciated.
Re: how to build tmw on mac?
Posted: 11 Oct 2010, 05:54
by Rotonen
It is completely possible to compile Mana under OS X the oldfashioned way: you just have to handle dependency hell yourself as normally.
The last I've bothered to try has been in 2008 and the most issues were with Guichan. Sorry I cannot be of more aid here, but best of luck on your chosen path.
Re: how to build tmw on mac?
Posted: 23 Jan 2011, 23:12
by Frost
Rotonen wrote:It is completely possible to compile Mana under OS X the oldfashioned way: you just have to handle dependency hell yourself as normally.
The last I've bothered to try has been in 2008 and the most issues were with Guichan. Sorry I cannot be of more aid here, but best of luck on your chosen path.
Felt like necroing an old thread today.
Thanks to everyone for the suggestions. I took another shot at it with the source for 0.5.0 and, exactly as Rotonen said, I'm stuck on a missing guichan framework. Unfortunately, the zip file that trapdoor posted a few years ago is now a dead link.
I have learned a bit of XCode through my efforts, and once I figure this out, I will try to provide client binaries (and build documentation) for MacOS. Learning about Carbon frameworks makes my brain hurt, and any assistance is welcome.
Re: how to build tmw on mac?
Posted: 24 Jan 2011, 18:43
by Frost
trapdoor promptly supplied me with the guichan.framework.
Now I'm just working through the normal compilation errors like "undeclared variable" and whatnot. Hopefully this won't involve hacking header files.
Yay!
Re: how to build tmw on mac?
Posted: 21 Aug 2013, 21:40
by fatalfeel
new macport for Xcode 4.6 of Mountain Lion 10.8.2
http://wiki.themanaworld.org/index.php/ ... acOSX_port
http://www.libsdl.org/download-1.2.php
http://www.libsdl.org/projects/SDL_mixe ... e-1.2.html
http://www.libsdl.org/projects/SDL_imag ... e-1.2.html
after install to /Library/Frameworks
then xcode->Preferences -> Downloads and install Command Line Tools
install MacPorts
https://distfiles.macports.org/MacPorts/
then open mac Terminal app, execute follows
sudo port selfupdate
sudo port install libxml2
sudo port install libguichan
sudo port install libsdl_gfx
sudo port install libsdl_net
sudo port install libsdl_ttf
sudo port install physfs
sudo port install libpng
sudo port install freetype
sudo port install libiconv
sudo port install gettext
cmake /Users/[yourname]/[sourcecode]/
make
cp /Users/[yourname]/[clientproject]/src/mana /Users/[yourname]/[clientproject]/
./mana
///////////////////////If work on Xcode 4 IDE//////////////
1. xcode->file->project settings->advanced->custom >> [relative to workspace]
2. add SDL all framework need check copy items into destination
3. preprocessor macros add HAS_SOCKLEN_T MANASERV_SUPPORT=1
4. #include "SDL_mixer.h" change to #include "SDL_mixer/SDL_mixer.h"
5. in main.cpp modify this
#ifndef __MACH__ //add this
if (options.printHelp)
{
printHelp();
return 0;
}
else if (options.printVersion)
{
printVersion();
return 0;
}
#endif //add this
6. press Run button to execute mana successfully
7. or copy mana.app to /Users/[yourname]/[clientproject]/ to run
my mac and linux and win32 build project
http://www.mediafire.com/?dk5qcd9rl6vl87d

- 螢幕快照 2013-08-26 下午1.55.28.jpg (139.79 KiB) Viewed 3379 times
////////
///////////////////////////////////////////////
Frost wrote:I'm trying to compile the TMW client on my Mac (OS X 10.5.8 Intel). I downloaded the .DMG image, but for various reasons would like to compile it anew.
I don't know how to use git, so I downloaded the source code from
http://downloads.sourceforge.net/theman ... 9.1.tar.gz
I've installed XCode 3.1.4 and the following through macports (
http://www.macports.org):
- libpng 1.2.44
- libvorbis 1.3.1
- libxml2 2.7.7
- libsdl 1.2.14 (includes /opt/local/bin/sdl-config)
- libsdl-image 1.2.10
- libsdl-mixer 1.2.11
- libsdl-net 1.2.7
- libguichan 0.8.2
- phyfs 2.0.0
In short, I tried to follow the instructions at
http://wiki.themanaworld.org/index.php/MacOSX_port
After extracting the tarball, I run
$ ./configure
<snip lots of autoconf joy>
checking for curl-config... /usr/bin/curl-config
checking for pthread_create in -lpthread... yes
checking for gcnGuichanVersion in -lguichan... no
configure: error: *** Unable to find Guichan library (
http://guichan.sf.net/)
$
Since I see guichan in both /opt/local/lib/libguichan and /opt/local/include/guichan, I try
$ ./configure --libdir=/opt/local/include
and
$ ./configure --libdir=/opt/local/lib
and
$ ./configure --libdir=/opt/local/lib/libguichan
...and get the exact same error.
What am I doing wrong?
Re: how to build tmw on mac?
Posted: 01 Sep 2013, 19:20
by Socapex
Uhm... No need to build anymore unless you want to develop. If you are a developer than the guide on the wiki should be more than enough.
edit: The ManaPlus wiki:
http://manaplus.org/macosxrelease
Re: how to build tmw on mac?
Posted: 02 Dec 2013, 05:10
by fatalfeel
1. Mana sdk on on MacOsx
http://www.mediafire.com/download/xhkuu ... 131102.zip
1. Add source of tales on mana sdk on MacOsx
http://www.mediafire.com/download/hst3k ... 131102.zip
[quote="fatalfeel"]new macport for Xcode 4.6 of Mountain Lion 10.8.2
http://wiki.themanaworld.org/index.php/ ... acOSX_port
http://www.libsdl.org/download-1.2.php
http://www.libsdl.org/projects/SDL_mixe ... e-1.2.html
http://www.libsdl.org/projects/SDL_imag ... e-1.2.html
after install to /Library/Frameworks
then xcode->Preferences -> Downloads and install Command Line Tools
install MacPorts
https://distfiles.macports.org/MacPorts/
then open mac Terminal app, execute follows
sudo port selfupdate
sudo port install libxml2
sudo port install libguichan
sudo port install libsdl_gfx
sudo port install libsdl_net
sudo port install libsdl_ttf
sudo port install physfs
sudo port install libpng
sudo port install freetype
sudo port install libiconv
sudo port install gettext
cmake /Users/[yourname]/[sourcecode]/
make
cp /Users/[yourname]/[clientproject]/src/mana /Users/[yourname]/[clientproject]/
./mana
///////////////////////How to run on Xcode 4 IDE//////////////
1. xcode->file->project settings->advanced->custom >> [relative to workspace]
2. add SDL all framework need check copy items into destination
3. preprocessor macros add HAS_SOCKLEN_T MANASERV_SUPPORT=1
4. #include "SDL_mixer.h" change to #include "SDL_mixer/SDL_mixer.h"
5. in main.cpp modify this
#ifndef __MACH__ //add this
if (options.printHelp)
{
printHelp();
return 0;
}
else if (options.printVersion)
{
printVersion();
return 0;
}
#endif //add this
6. press Run button to execute mana successfully
7. or copy mana.app to /Users/[yourname]/[clientproject]/ to run
Re: how to build tmw on mac?
Posted: 02 Dec 2013, 05:40
by AnonDuck
Awesome instructions! Thanks mr ManaSource guy! I shall try this tomorrow.
Re: how to build tmw on mac?
Posted: 02 Dec 2013, 11:58
by Ablu
Please note that the SDL client is no longer supported for latest Source of Tales.
You will need github.com/tales/tales-client as client. Compiling on mac probably works out of the box... But I am not sure wether anyone tested the client on OS X already. However it should be easy to get running since the client is only based on Qt.
Regards,
Ablu
Re: how to build tmw on mac?
Posted: 03 Dec 2013, 16:44
by 4144
This topic was about tmw and now here is oftopic.
May be better move manasource related messages to manasource forum?