Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
macosxrelease [2012/12/23 10:54] socapex |
macosxrelease [2013/04/02 03:00] socapex [The Xcode Project] |
||
---|---|---|---|
Line 18: | Line 18: | ||
== Updating localization == | == Updating localization == | ||
- | Unfortunately, since ManaPlus has certain problems in compiling through the usual CMake, I wasn't able to setup a nice workflow for the translations (see [[#Problems and Improving the Workflow]]). So, you will have to download a nightly build (the linux one) and overwrite the Xcode/locale/ folder with the one from the nightly build. This should ensure you have the latest translations. | + | No need to do anything special here, I have include an automatic script to automagically compile the localizations. Make sure you have gettext installed through macports. |
Now that everything is up to date, you can try to hit Run to test out the build. If it fails, it is probably because you didn't add everything needed, or that a new library has been added (see [[#Working with libraries]]). | Now that everything is up to date, you can try to hit Run to test out the build. If it fails, it is probably because you didn't add everything needed, or that a new library has been added (see [[#Working with libraries]]). | ||
Line 121: | Line 121: | ||
Just add it before or after the existing ones. The $(SRCROOT) will transform to the correct path to your project. | Just add it before or after the existing ones. The $(SRCROOT) will transform to the correct path to your project. | ||
- | Et voila! You are done. The library will get included inside the application bundle, along with everything it needs (I don't think you even need to add dependencies...). Now your glad you didn't use a dynamic library, aren't you. | + | Et voila! You are done. The library will get included inside the application bundle, along with everything it needs (I don't think you even need to add its dependencies...). Now your glad you didn't use a dynamic library, aren't you. |
== Conclusion == | == Conclusion == | ||
Line 127: | Line 127: | ||
Use static libraries. | Use static libraries. | ||
- | Oh, and finally, to make sure all went well, compile the application, navigate to its location. Right click and select Show Package Content. Navigate to the executable (Contents > MacOS > ManaPlus). In terminal, type 'otool -L ' with the space, and drag the ManaPlus executable onto the terminal to get its full path. Now press enter, you should not see any library that points to /opt/local/lib, and if you used a static library, you shouldn't see it either. | + | Oh, and finally, to make sure all went well, compile the application, navigate to its location. Right click and select Show Package Content. Navigate to the executable (Contents/MacOS/ManaPlus). In terminal, type 'otool -L ' with the space, and drag the ManaPlus executable onto the terminal to get its full path. Now press enter, you should not see any library that points to /opt/local/lib, and if you used a static library, you shouldn't see it either. |
===== Problems and Improving the Workflow ===== | ===== Problems and Improving the Workflow ===== |