how to build tmw on mac?

The 2009 Mana project went dormant around 2014 and was revived in 2023; it currently develops a client implementation for TMW and potentially other games.


User avatar
swimmy
Warrior
Warrior
Posts: 439
Joined: 17 Oct 2008, 08:53
Location: Japan
Contact:

how to build tmw on mac?

Post by swimmy »

anyone knows how to build tmw on mac?
i want to use patch.
who was...
User avatar
trapdoor
Novice
Novice
Posts: 216
Joined: 18 Feb 2007, 12:36

Re: how to build tmw on mac?

Post 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
Frost
TMW Adviser
TMW Adviser
Posts: 851
Joined: 09 Sep 2010, 06:20
Location: California, USA

Re: how to build tmw on mac?

Post 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?
You earn respect by how you live, not by what you demand.
-unknown
User avatar
Kage
Manasource
Manasource
Posts: 929
Joined: 02 May 2009, 18:12

Re: how to build tmw on mac?

Post 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!!!
<Kage_Jittai> ... are you saying I am elite :D
<thorbjorn> Yes. :P
Frost
TMW Adviser
TMW Adviser
Posts: 851
Joined: 09 Sep 2010, 06:20
Location: California, USA

Re: how to build tmw on mac?

Post 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. :roll:
You earn respect by how you live, not by what you demand.
-unknown
User avatar
Jaxad0127
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

Re: how to build tmw on mac?

Post 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. :roll:
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.
Image
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 19:48
Location: Bern, Switzerland

Re: how to build tmw on mac?

Post 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.
This message used to be meaningful.
Frost
TMW Adviser
TMW Adviser
Posts: 851
Joined: 09 Sep 2010, 06:20
Location: California, USA

Re: how to build tmw on mac?

Post 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.
You earn respect by how you live, not by what you demand.
-unknown
Frost
TMW Adviser
TMW Adviser
Posts: 851
Joined: 09 Sep 2010, 06:20
Location: California, USA

Re: how to build tmw on mac?

Post 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!
You earn respect by how you live, not by what you demand.
-unknown
fatalfeel
Peon
Peon
Posts: 21
Joined: 27 Mar 2012, 13:44

Re: how to build tmw on mac?

Post 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
螢幕快照 2013-08-26 下午1.55.28.jpg (139.79 KiB) Viewed 3348 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?
Attachments
螢幕快照 2013-08-22 下午5.08.35.jpg
螢幕快照 2013-08-22 下午5.08.35.jpg (173.84 KiB) Viewed 3348 times
Socapex
Peon
Peon
Posts: 36
Joined: 04 Aug 2012, 07:09

Re: how to build tmw on mac?

Post 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
fatalfeel
Peon
Peon
Posts: 21
Joined: 27 Mar 2012, 13:44

Re: how to build tmw on mac?

Post 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
Attachments
螢幕快照 2013-12-02 下午12.03.01.png
螢幕快照 2013-12-02 下午12.03.01.png (496.44 KiB) Viewed 3181 times
User avatar
AnonDuck
TMW Adviser
TMW Adviser
Posts: 653
Joined: 02 Jan 2009, 04:19
Location: Catland

Re: how to build tmw on mac?

Post by AnonDuck »

Awesome instructions! Thanks mr ManaSource guy! I shall try this tomorrow.
Head of the TMW Illuminati
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: how to build tmw on mac?

Post 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
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: how to build tmw on mac?

Post by 4144 »

This topic was about tmw and now here is oftopic.
May be better move manasource related messages to manasource forum?
Post Reply