project-navigation
Personal tools

Author Topic: Please update ufoai.org/wiki/Compile_for_Mac  (Read 3841 times)

Offline LittleJohn

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Please update ufoai.org/wiki/Compile_for_Mac
« on: November 06, 2014, 02:11:43 am »
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.

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

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

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

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

(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

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

(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.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Please update ufoai.org/wiki/Compile_for_Mac
« Reply #1 on: November 06, 2014, 03:39:55 pm »
updated the wiki article - thanks a lot.