UFO:Alien Invasion

Technical support => Mac => Topic started by: LittleJohn on November 06, 2014, 12:51:27 am

Title: UFOAI 2.6 builds on 10.9 but has issues
Post by: LittleJohn on November 06, 2014, 12:51:27 am
First, I would like taking the opportunity to thank all developers for the great work on providing UFOAI to us. Currently, I would like to contribute for the 2.6_dev version after having enjoyed 2.4_stable during Mac OS X 10.7.x and 10.8.x with the binaries found.

I was able to compile the current 2.6_dev on 10.9.5 and to make a dmg file which installs nicely.

However, the game shows a bug and crashes each time when selecting the "Firebird D" ship:

The "Stileto" and all other menu areas for a campaign in the main base seem to be functional.

(1) Which data should I provide to you for improving the source code?

(2) Besides the successful build of a DMG there seems to be some potential to improve the compiling.

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 openal-soft

My current environment used for compiling is:

However, the configuration phase did not find all headers of installed ports:

I am unsure on the below headers:

Please find below the comprised output of all compile phases. Furthermore, there were tons of warnings which included but were not limited to quite a bunch of warning: 'register' storage class specifier is deprecated [-Wdeprecated-register] statements.

Quote
##

configure

use c compiler: cc
use c++ compiler: c++
Debug build
Compile for darwin
Compile for i386
Disable ccache
Found cc cc
Found cxx c++
Using bindir /usr/local/bin/
Using datadir /usr/local/games/ufo/
Using libdir /usr/local/lib/
Using prefix /usr/local
Enable hard linked cgame
Setting custom data directory
Setting custom library directory
Found zip from zip
Found python from python
Found doxygen from doxygen
Could not find xvid.h
Found theora/theora.h
Found execinfo.h
Could not find bfd.h
Found sys/utsname.h
Could not find link.h
Could not find jpeglib.h
Found zlib.h
Found png.h
Could not find CUnit/Basic.h
Could not find mxml.h
Found SDL.h
Found SDL_mixer.h
Found SDL_ttf.h
Found SDL.h
Found SDL_mixer.h
Found SDL_ttf.h
Could not find picomodel.h
Found gtk/gtk.h
Found gtksourceview/gtksourceview.h
Found libxml/parser.h
Found AL/al.h
Found gtk/gtkglwidget.h
Build modules:
Build cgame-campaign
Build cgame-multiplayer
Build cgame-skirmish
Build game
Build memory
Build testall
Build ufo
Build ufo2map
Build ufoded
Build ufomodel
Build uforadiant
Build ufoslicer

##

make

...
===> LD [ufoslicer]

##

make lang models maps-sync

...
* base/maps/ice/ice_craft_ufo_scout.map version mismatch, skip update
...
903 upgraded, 1 version mismatched, 0 already up to date

##

make macinstaller

...
* base/maps/ice/ice_craft_ufo_scout.map version mismatch, skip update
...
903 upgraded, 1 version mismatched, 0 already up to date
...
   zip warning: 0models.pk3 not found or empty
...
   zip warning: 0pics.pk3 not found or empty
...
   zip warning: 0videos.pk3 not found or empty
   zip warning: zip file empty
...
done
...
created: ufoai-2.6-dev-macosx-universal.dmg
cp: /opt/local/lib/pango*/lib/pango/*/modules/pango-basic-*.so: No such file or directory
make: *** [copybinaries-uforadiant] Error 1

Further remarks:

Most important:
The DMG-file ufoai-2.6-dev-macosx-universal.dmg installs nicely and runs on OS X 10.9 besides both the issues mentioned above and the final error message in the compiling before.