Development of Manasource and anything else related to the Mana Project.
#53398 by swimmy
Sat Apr 25, 2009 12:54 am
anyone knows how to build tmw on mac?
i want to use patch.
#53632 by trapdoor
Mon Apr 27, 2009 9:17 am
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
#97846 by Frost
Sun Oct 10, 2010 11:55 pm
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?
#97848 by Kage
Mon Oct 11, 2010 12:30 am
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!!!
#97851 by Frost
Mon Oct 11, 2010 2:45 am
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:
#97855 by Jaxad0127
Mon Oct 11, 2010 4:50 am
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.
#97856 by Rotonen
Mon Oct 11, 2010 4:54 am
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.
#102342 by Frost
Sun Jan 23, 2011 10:12 pm
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.
#102391 by Frost
Mon Jan 24, 2011 5:43 pm
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!
#137283 by fatalfeel
Wed Aug 21, 2013 8:40 pm
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 (144.12 KiB) Viewed 3284 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 (186.34 KiB) Viewed 3284 times
#139616 by fatalfeel
Mon Dec 02, 2013 4:10 am
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 3117 times
#139617 by MadCamel
Mon Dec 02, 2013 4:40 am
Awesome instructions! Thanks mr ManaSource guy! I shall try this tomorrow.
#139628 by Ablu
Mon Dec 02, 2013 10:58 am
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

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest