Technical support > Mac

Please update ufoai.org/wiki/Compile_for_Mac

(1/1)

LittleJohn:
The information on MacPorts in section "Contribute" and the page on "Compile for Mac" are quite helpful.

However, IMHO the page ufoai.org/wiki/Compile_for_Mac needs an update as follows.

(1)

Please delete:

--- Quote ---Add headerpad_max_install_names LDFLAGS to MacPorts
Modify /opt/local/share/macports/Tcl/port1.0/portconfigure.tcl configure.ldflags to
default configure.ldflags {"-L${prefix}/lib -Wl,-headerpad_max_install_names"}
This change is only needed if you would like to create dmgs.
--- End quote ---

This information seems to be outdated. More important, with MacPorts 2.3.2 and UFOAI 2.6_dev you can successfully build a DMG without changes to the default MacPorts setup.

(2)

Please improve:

--- Quote ---Step 2: Install dependencies
sudo port install libsdl-framework libsdl_mixer-framework libsdl_ttf-framework \
 jpeg libpng XviD libtheora gtk2 gtkglext gtksourceview2 libtheora XviD git-core \
 p7zip python26
--- End quote ---

The information quoted above seems to be both ambiguous and outdated.

With MacPorts 2.3.2 and UFOAI 2.6_dev you can successfully build a DMG with the following dependencies:

--- Quote ---sudo port install libsdl-framework libsdl_mixer-framework libsdl_ttf-framework \
 jpeg libpng XviD libtheora gtk2 gtkglext gtksourceview2 git p7zip python27 \
 doxygen libsdl2 libsdl2_mixer libsdl2_ttf
--- End quote ---

The last line contains additional ports which allows more headers to be found appropriately during the configure phase.

(3)

Please correct:

--- Quote ---Step 3: Compilation
Toward the bottom, substitute this export command:
export PATH=$PATH:/opt/local/bin:opt/local/sbin:opt/local
--- End quote ---

The a.m. paths are incomplete and would fail. The more correct export command should read:

--- Quote ---export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local
--- End quote ---

(4)

Furthermore, it may help the unaware reader if the text shows more details on the compiling phases.

Change from:

--- Quote ---To compile the binaries, just type (after the configure call was successful).
make
--- End quote ---

to the more explicit text:

--- Quote ---Change directory into the main ufoai folder.
cd ufoai
Establish the appropriate configuration for compiling.
configure
To compile the binaries, just type (after the configure call was successful).
make
--- End quote ---

(5)

Furthermore, the information on Fink might need an update, I presume. Unfortunately, I discontinued with fink and thus cannot provide an improved text.

Hope this helps.

Mattn:
updated the wiki article - thanks a lot.

Navigation

[0] Message Index

Go to full version