Skip to main content
Topic: Compiling for MAC / Please Test (Read 13439 times) previous topic - next topic

Compiling for MAC / Please Test

Hey ...

I work on my cross-compiler for MAC and ... he work, but ....
Code: [Select]
===> LD  sim
/usr/i686-apple-darwin9/bin/i686-apple-darwin9-ld: Undefined symbols:
.objc_cl****_name_QTMovie
collect2: ld returned 1 exit status
make: *** [sim] Error 1
apple@kira ~/code $
Did somebody know this Problem and can help?

Ore can somebody, how has compile for a MAC, could help?

Werner
I hope you understand my English

Re: Compiling for MAC

Reply #1
Compile with SDL, forget about quicktime. Edit makefile to use no_midi/SDL_sound.

Re: Compiling for MAC / Please Test

Reply #2
I only use SDL in the config.default

Wich do oyu mean I must edit in the makefile?

Edit:
You mea the part:
Code: [Select]
    # Core Audio (Quicktime) base sound system routines
    SOURCES += sound/core-audio_sound.mm
    SOURCES += music/core-audio_midi.mm

I testet now with
Code: [Select]
    SOURCES += music/no_midi.cc

Edit2:
Sch ...
Code: [Select]
===> LD  sim
/usr/i686-apple-darwin9/bin/i686-apple-darwin9-ld: Undefined symbols:
dr_load_sample(char const*)
dr_init_sound()
dr_play_sample(int, int)
collect2: ld returned 1 exit status
make: *** [sim] Error 1

Edit3:
Sorry .. to late for me today ;o)

I must use:
Code: [Select]
   SOURCES += sound/sdl_sound.cc
    SOURCES += music/no_midi.cc

Can somebody with a MAC test my Compilat on patches.simutrans-germany.com

But SDL for MAC must me install (see http://www.libsdl.org/ or direkt download http://www.libsdl.org/release/SDL-1.2.13.dmg
I hope you understand my English

Re: Compiling for MAC / Please Test

Reply #3
Hi!

I tried the test-version for Intel-Macs (from patches.simutrans-germany.com), and at the moment, it works. Which build is the version from?
world is like a parachute: it works better when it's open
whenever you feel lost and alone, always remember your calculator is something you can count on
pak96.comic addons

Re: Compiling for MAC / Please Test

Reply #4
I build it yesterday, so it is the code from yesterday (08.05.)

Wich MAC-Version do you have?

When it works O.K. (and get enough feedback) I check if I could put it in the nightly-automatisation
I hope you understand my English

Re: Compiling for MAC / Please Test

Reply #5
Wernieman,

would there be any possibility of doing the same for Simutrans-Experimental, too? I currently don't have a Mac build for it.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: Compiling for MAC / Please Test

Reply #6
... could be ...

But I need much many timne to compile normal simutrans .... so let test the Version and the "normal" automatisation and THEN we could speak about other ...
I hope you understand my English

Re: Compiling for MAC / Please Test

Reply #7
That makes sense :-)
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: Compiling for MAC / Please Test

Reply #8
1.) Wich MAC-Version do you have?

2.) When it works O.K. (and get enough feedback) I check if I could put it in the nightly-automatisation

1.) Mac OS X 10.5.6 (Leopard)
2.) This would be great!

Quote from: jamespetts
would there be any possibility of doing the same for Simutrans-Experimental, too?

That would be even greater!  ;)
world is like a parachute: it works better when it's open
whenever you feel lost and alone, always remember your calculator is something you can count on
pak96.comic addons

Re: Compiling for MAC / Please Test

Reply #9
I confirm that this solution works on OS X 10.5.6 (Macbook Core 2 Duo 2 GHz) for simutrans-experimental commit 4377904e781558eee66f467466bbb070586911e4.  I support including these changes into the standard Makefile in both the regular and experimental simutrans trees.

Re: Compiling for MAC / Please Test

Reply #10
Excellent - that makefile will be included in the next source upload of Simutrans-Experimental. Now, are there any volunteers for a Mac build of Simutrans-Experimental?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.


Re: Compiling for MAC / Please Test

Reply #12
Well, I would be a volunteer. I already tried compiling it but I had problems with the Makefile.
world is like a parachute: it works better when it's open
whenever you feel lost and alone, always remember your calculator is something you can count on
pak96.comic addons

Re: Compiling for MAC / Please Test

Reply #13
Wich problem do you get?

I use the "Normal" Makefile with a "litte Patch" in the sound part
I hope you understand my English

Re: Compiling for MAC / Please Test

Reply #14
MoTw,

can you compile using Jtoomim's makefile?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: Compiling for MAC / Please Test

Reply #15
The standard Makefile did work using Xcode's gcc. What is exactly the problem? THe quicktime libraries should be available on a MAC.

(Of course crosscompiling is somethingelse.)

Re: Compiling for MAC / Please Test

Reply #16
For my crosscompiling I do a simple Trick:
I do not patch the Makefile (o.k. I do it for the sound, but I hope that we can use a flag for this so I do not need it). The changes I need for the Directorys I do in the sdl.config-script.

I hope you understand my English

Re: Compiling for MAC / Please Test

Reply #17
Well, I don't really know how to handle the makefile - do I have to change things in it or do I have to write the right backend, the Colour_depths and the OS-type as an Option?
world is like a parachute: it works better when it's open
whenever you feel lost and alone, always remember your calculator is something you can count on
pak96.comic addons

Re: Compiling for MAC / Please Test

Reply #18
copy config.template to config.default

read remarks in the config.default

edit the config.default

make
I hope you understand my English

Re: Compiling for MAC / Please Test

Reply #19
copy config.template to config.default

read remarks in the config.default

edit the config.default

make

Do I have to delete the options which I won't use or what? That's the point I don't get.
world is like a parachute: it works better when it's open
whenever you feel lost and alone, always remember your calculator is something you can count on
pak96.comic addons

Re: Compiling for MAC / Please Test

Reply #20
lines starting with # will ignored, so in unwanted line write # at the beginning. Maybe you have to remove a # somewhere to activate that line.
Parsley, sage, rosemary, and maggikraut.