How to compile Wesnoth on Mac OS X

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderators: Forum Moderators, Developers

Locked
penguin
macOS Packager
Posts: 239
Joined: April 17th, 2004, 5:16 pm
Location: Ontario, Canada
Contact:

Re: How To Compile On A Mac

Post by penguin » June 19th, 2010, 8:26 pm

Well for me, that's one of the options in the drop down menu (see attached). Anyway, glad you got it working!
Screen shot 2010-06-19 at 4.25.09 PM.png
Screen shot 2010-06-19 at 4.25.09 PM.png (18.76 KiB) Viewed 3354 times

User avatar
Eleazar
Retired Terrain Art Director
Posts: 2481
Joined: July 16th, 2004, 1:47 am
Location: US Midwest
Contact:

Re: How To Compile On A Mac

Post by Eleazar » June 19th, 2010, 10:17 pm

I haven't upgraded to Snow Leopard yet-- which probably makes the difference.
Feel free to PM me if you start a new terrain oriented thread. It's easy for me to miss them among all the other art threads.
-> What i might be working on
Attempting Lucidity

AI
Developer
Posts: 2394
Joined: January 31st, 2008, 8:38 pm

Re: How To Compile On A Mac

Post by AI » June 19th, 2010, 11:58 pm

Does anyone mind checking the project file into SVN? Then it can be updated just like the MSVS and Code::Blocks (and Dev-C++, somewhat) ones are.

User avatar
Eleazar
Retired Terrain Art Director
Posts: 2481
Joined: July 16th, 2004, 1:47 am
Location: US Midwest
Contact:

Re: How To Compile On A Mac

Post by Eleazar » June 20th, 2010, 1:40 am

OK. I know enough not to upload the binary, but not much more. Hopefully this works for other people.
Feel free to PM me if you start a new terrain oriented thread. It's easy for me to miss them among all the other art threads.
-> What i might be working on
Attempting Lucidity

penguin
macOS Packager
Posts: 239
Joined: April 17th, 2004, 5:16 pm
Location: Ontario, Canada
Contact:

Re: How To Compile On A Mac

Post by penguin » June 20th, 2010, 3:11 am

There is a reason it wasn't in svn already. And that is, the project file isn't very useful without all the libraries (the main job of being the Mac packager has been getting all those libraries together in a suitable form), but it really doesn't make sense to put all those libraries (and header files) into svn - they're large, and a ton of files, and most people don't want them.

We could put JUST the project file, and people could copy over the rest from the zip, but... I don't know if it's worth it.

User avatar
Eleazar
Retired Terrain Art Director
Posts: 2481
Joined: July 16th, 2004, 1:47 am
Location: US Midwest
Contact:

Re: How To Compile On A Mac

Post by Eleazar » June 20th, 2010, 3:53 am

penguin wrote:There is a reason it wasn't in svn already. And that is, the project file isn't very useful without all the libraries (the main job of being the Mac packager has been getting all those libraries together in a suitable form), but it really doesn't make sense to put all those libraries (and header files) into svn - they're large, and a ton of files, and most people don't want them.
Obviously this decision isn't my province, but playing the devil's advocate here: Those files add roughly 100Mb to previously ~1.2Gb trunk. But ~500 Mb of the trunk are po files, again large, tons of them, and most people don't want most of them.

I think there's utility in having it in SVN. It took me over an hour to get penguin's project linked to all the new files. Obviously somebody more savvy could do it quicker, but somebody less savvy might find it impossible.
Feel free to PM me if you start a new terrain oriented thread. It's easy for me to miss them among all the other art threads.
-> What i might be working on
Attempting Lucidity

AI
Developer
Posts: 2394
Joined: January 31st, 2008, 8:38 pm

Re: How To Compile On A Mac

Post by AI » June 20th, 2010, 5:08 pm

penguin wrote:There is a reason it wasn't in svn already. And that is, the project file isn't very useful without all the libraries (the main job of being the Mac packager has been getting all those libraries together in a suitable form), but it really doesn't make sense to put all those libraries (and header files) into svn - they're large, and a ton of files, and most people don't want them.

We could put JUST the project file, and people could copy over the rest from the zip, but... I don't know if it's worth it.
That's true for every OS that doesn't have a package manager, but there are 4 different project files for windows in the projectfiles dir in the repo. My idea was that, like those, it can be updated by the same people who actually add/remove source files.

User avatar
Lord-Knightmare
Forum Regular
Posts: 1138
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: How To Compile On A Mac

Post by Lord-Knightmare » June 21st, 2010, 6:40 pm

Can I just add the new changes for 1.9 in a present version of Wesnoth, such as 1.8.2 ?

User avatar
Eleazar
Retired Terrain Art Director
Posts: 2481
Joined: July 16th, 2004, 1:47 am
Location: US Midwest
Contact:

Re: How To Compile On A Mac

Post by Eleazar » June 21st, 2010, 6:54 pm

Lord-Knightmare wrote:Can I just add the new changes for 1.9 in a present version of Wesnoth, such as 1.8.2 ?
What exactly do you mean?

You can't just swap out all the .CFGs and images, 1.9 has grown too different, for instance the map won't display. A lot of them probably still work, but who knows which ones.
Feel free to PM me if you start a new terrain oriented thread. It's easy for me to miss them among all the other art threads.
-> What i might be working on
Attempting Lucidity

User avatar
Lord-Knightmare
Forum Regular
Posts: 1138
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: How To Compile On A Mac

Post by Lord-Knightmare » June 22nd, 2010, 6:45 am

What I mean is this:
Does compiling mean to download every single one of these files in a form of an installer?
My main problem is to upload my add-ons on the 1.9 server.

User avatar
Iris
Site Administrator
Posts: 6588
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: How To Compile On A Mac

Post by Iris » June 22nd, 2010, 12:25 pm

Lord-Knightmare wrote:My main problem is to upload my add-ons on the 1.9 server.
There has been no official 1.9.x release yet, so I don't see why you should worry about 1.9 add-ons yet.

Once official releases start coming out you'll be able to download ready-to-use binaries.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.

User avatar
McShark
Posts: 76
Joined: March 19th, 2008, 10:41 pm

Re: How To Compile On A Mac

Post by McShark » July 4th, 2010, 7:36 pm

For the lib-stuff: it's the same with win binaries, you have to pick them either on your own or use the zip files in the C::B thread. External binaries for compiling do not belong into a general SVN.

For the project files: Please make clear why they have an own directory "macproject/Wesnoth.xcodeproj" instead of the directory "projectfiles/xcode". I want to move the directory there but thought I should ask here before doing so (on next weekend).

McShark

BTW: Did anybody tried to compile Wesnoth with C::B for Mac OS X using the project files from projectfiles/CodeBlocks?

penguin
macOS Packager
Posts: 239
Joined: April 17th, 2004, 5:16 pm
Location: Ontario, Canada
Contact:

Re: How To Compile On A Mac

Post by penguin » July 5th, 2010, 6:05 pm

Because I didn't have this in mind when I was setting it up, and it relies on being only one directory up from root.

User avatar
McShark
Posts: 76
Joined: March 19th, 2008, 10:41 pm

Re: How To Compile On A Mac

Post by McShark » July 5th, 2010, 9:24 pm

Can you change the project files in a way that they can be used from on one subdirectory more?

penguin
macOS Packager
Posts: 239
Joined: April 17th, 2004, 5:16 pm
Location: Ontario, Canada
Contact:

Re: How To Compile On A Mac

Post by penguin » July 9th, 2010, 4:04 am

Yeah, I could. I'm just being lazy about it - how about I just update it and commit the file in projectfiles/xcode/ soon? And if I don't do it soon, you can feel free to pester me.

Locked