Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.

Author Topic:  Mac Port Creation  (Read 1943 times)

0 Members and 1 Guest are viewing this topic.

MadFisi

« on: 12, April 2017, 14:28:04 »
Hi,

i am a Developer and thought about creating and maintaining a mac port of this game. Is there a wiki article on how i can get and compile(especially what libraries are needed) the sourcecode ?. All articles i found are 5 or more years old.

I already did this a few years ago but i did not have much free time at that time. Earlier it was possible to just download the sourcecode but now i can't find it anywhere.

Errigour

« Reply #1 on: 12, April 2017, 20:18:21 »
Just wanna say that the source code they have for download wasn't the full game its just a functional part of the game without all the archtypes.

I think you have to use svn some how to download from this address https://svn.code.sf.net/p/daimonin/code/trunk

This is how I found the svn address and I don't remember how I downloaded it but I remember it worked
https://sourceforge.net/p/daimonin/code/HEAD/tree/

It might be this command with linux svn: svn checkout svn://svn.code.sf.net/p/daimonin/code/trunk daimonin-code

Im just an entrepreneur someone will prolly better answer this question.
-Errigour-

MadFisi

« Reply #2 on: 12, April 2017, 22:11:09 »
I will try the Link tomorrow, thx. I know how to use svn, no problem. I just could not find th Repository link.

MadFisi

« Reply #3 on: 13, April 2017, 15:22:38 »
Ok, downloading source succeeded, but the configure script is no longer there. So the only way is to use the Codeblocks GUI. I think i will try to create a Cmake project to compile it via makefiles. The GUis are not so compatible over platforms.

sur3

« Reply #4 on: 14, April 2017, 14:49:46 »
What do you mean by configure script isn't there?
You have to go to ./client/make/linux, there it is: https://sourceforge.net/p/daimonin/code/HEAD/tree/trunk/client/make/linux/
But of course an CMakeLists.txt to unify the different make-dirs would be great.
« Last Edit: 14, April 2017, 15:35:15 by sur3 »

MadFisi

« Reply #5 on: 14, April 2017, 15:59:37 »
Sure, i was in that directory, but configure does not work. There is no configure script i can start in this directory. Last time i downloaded the sourcecode (about 2 Years ago i think) i juts called sh ./configure. This gives me a file not found error on configure.

sur3

« Reply #6 on: 14, April 2017, 16:06:51 »
But it contains a configure.in (aka configure.ac) you need to run autoconf to create a ./configure out of that: https://en.wikipedia.org/wiki/Autoconf ;)

MadFisi

« Reply #7 on: 14, April 2017, 16:08:54 »
LOL. Long time since i used configure. I really forgot to run autoconf first. Thx.

sur3

« Reply #8 on: 14, April 2017, 16:21:38 »
You're welcome. ;)

MadFisi

« Reply #9 on: 14, April 2017, 16:34:24 »
Now i need a Makefile.in for configure. How do i get this ?

Ok, managed to create that with automake, but now i get a permission denied error when running make

make: make_utils/install-sh: Permission denied
make: *** [../../src/.dirstamp] Error 1

Really strange. Not even with sudo it does work

Ok, got this to bei running chmod over the make_utils directory. Now i have to solve compiling errors. But at least it starts compiling now.
« Last Edit: 14, April 2017, 17:05:32 by MadFisi »

MadFisi

« Reply #10 on: 14, April 2017, 17:28:03 »
ok,

i get a lot of music errors even with disabled sound.

../../src/interface.c:418:17: warning: address of array 'cpl.target_name' will always evaluate to 'true' [-Wpointer-bool-conversion]
            cpl.target_name)
            ~~~~^~~~~~~~~~~
../../src/interface.c:540:9: error: use of undeclared identifier 'music'
    if (music.data)
        ^
../../src/interface.c:542:38: error: use of undeclared identifier 'music'
        sound_play_music(music.name, music.vol / 4, music.fade, music.loop, 1,
                                     ^
../../src/interface.c:542:26: error: use of undeclared identifier 'music'
        sound_play_music(music.name, music.vol / 4, music.fade, music.loop, 1,
                         ^
../../src/interface.c:542:53: error: use of undeclared identifier 'music'
        sound_play_music(music.name, music.vol / 4, music.fade, music.loop, 1,
                                                    ^
../../src/interface.c:542:65: error: use of undeclared identifier 'music'
        sound_play_music(music.name, music.vol / 4, music.fade, music.loop, 1,
                                                                ^
../../src/interface.c:1456:9: error: use of undeclared identifier 'music'
    if (music.data)
        ^
../../src/interface.c:1458:26: error: use of undeclared identifier 'music'
        sound_play_music(music.name, options.music_volume, music.fade,
                         ^
../../src/interface.c:1458:60: error: use of undeclared identifier 'music'
        sound_play_music(music.name, options.music_volume, music.fade,
                                                           ^
../../src/interface.c:1459:26: error: use of undeclared identifier 'music'

unfortunately the libsdl_mixer from homebrew does not include ogg support

I think i should stop hier and try to create the binary with xcode and use the sdl_frameworks instead. But that will keep a lot of work i think.

Is that project still in development before i put a lot of work in it ? In the svn i only see a few commits in the last year.
« Last Edit: 14, April 2017, 17:32:39 by MadFisi »

sur3

« Reply #11 on: 15, April 2017, 02:27:39 »
I'm sry i should have looked into the code before saying to use autoconf, that is already included in bootstrap..
So what you really have to do is:
Code: [Select]
./bootstrap
./configure
make
Try if that works. ;)

Well development sure goes at a slow pace but is contiguous. ;)

MadFisi

« Reply #12 on: 15, April 2017, 10:21:34 »
Same compile errors. It tries to use music which is not defined. And i did configure with --disable-sound.
Looks like i have to compile libsdl_mixer with ogg support by myself.

MadFisi

« Reply #13 on: 16, April 2017, 12:54:59 »
Ok at last i got it until linking. You miss a few

#ifdef INSTALL_SOUND

in your code. Actually the ./configure --disable-sound won't work

Now i have to solve a linking error:

Undefined symbols for architecture x86_64:
  "_optwin_draw_options", referenced from:
      _show_optwin in dialog.o
ld: symbol(s) not found for archite

MadFisi

« Reply #14 on: 16, April 2017, 12:59:55 »
Ok, compiled and linked. Without sound for the beginning but at last it is running.

At the moment i can't connect to any server (connection failed). Are the servers offline ? I also get an error on querying the master server. So i get invalid ipAddesses for default ?
« Last Edit: 16, April 2017, 13:07:26 by MadFisi »

Tags:
 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1062 Views
Last post 29, May 2005, 15:54:43
by Cheristheus
3 Replies
1377 Views
Last post 30, April 2008, 15:11:32
by Nobbit
19 Replies
3703 Views
Last post 16, August 2009, 22:48:10
by Garrow
1 Replies
1330 Views
Last post 20, January 2010, 16:26:10
by Mizza
5 Replies
1858 Views
Last post 15, March 2014, 02:47:17
by B5_Misidian