Technical support > Mac

compiling ufoai 2.5-dev on os x 10.8 mountain lion

(1/3) > >>

jotsetung:
hi there!

I really enjoy playing ufoai a lot, so I downloaded and installed the 2.5-dev version on my os x 10.8.2 and it run well, with some sudden crashes though.
therefore I decided to compile it on my own and it worked out. back in december I could compile 2.5 on mountain lion and it runs without crashes.

I updated the source code again last week and now there is no way to compile a working version. it compiles ok, but I can not start it. on startup it crashes because of a failed video initiation:


------- video initialization -------
SDL version: 1.2.15
I: desktop depth: 32bpp
I: video memory: 0
I: Available resolutions: 1920x1178 (1)
I: video driver: x11
I: setting mode -1
I: set multisample buffers to 0
I: set swap control to 0
SDL SetVideoMode failed: X11 driver not configured with OpenGL
Failed to set video mode 1024x768 fullscreen.
I: set multisample buffers to 0
I: set swap control to 0
SDL SetVideoMode failed: X11 driver not configured with OpenGL
Video subsystem failed to initialize
FS_RemoveFile: remove /Users/jo/Documents/UFOAI-2.5-dev/base/keys.cfg
Segmentation fault: 11

I suspect that ufoai is compiled i386 instead of x86_64, and mountain lion is only able to run 64 bit code. is there a way to tell the configure call or to modify the darwin.mk to compile it 64 bit?

or any other hints what might go wrong?
any help appreciated!

cheers, jo

geever:

--- Code: ---SDL SetVideoMode failed: X11 driver not configured with OpenGL

--- End code ---

You need a driver for your videocard that support openGL and hardware 3D acceleration.

-geever

ovvldc:
@ geever: Mac OS X may not get as many driver updates as Windows, but it does actually come with drivers for OpenGL that have accelerated 3D. It is used by the OS for lots of UI animations..

@ jotsetung: Did you try to install the latest XQuartz? They've been taking care of some bugs that broke Wine, for instance.

jotsetung:
ovvldc is right, the driver should not be the problem.

and yes, I installed the latest Xquartz (2.7.4) that is equivalent to xorg-server 1.13.0. this version should have the openGL bug fixed. I even tried the xorg-server 1.13.1 from macports; same problem.

no I'm reinstalling gtk2, cairo and pango without the x11 (default for macports) but the quartz support; maybe (hopefully) that fixes it... let's see.

jotsetung:
ok, reinstalled now some packages from macports without x11 support (hoping that it uses quartz instead):

sudo port install cairo -x11 +quartz gtk2 +no_x11 +quartz pango +no_x11 +quartz gtksourceview2 +quartz gtkglext +quartz libsdl +no_x11

(based on people reporting similar problems: http://lists.gnu.org/archive/html/linphone-developers/2012-12/msg00053.html)


ufoai compiles, but when I want to start it it complains:

------- video initialization -------
Video SDL_Init failed: No available video device


so that's not working. I will now try to install an older version of the libsdl, as it seems that recently there have been made some changes (see http://trac.macports.org/ticket/37562).

let's see how that works out...

Navigation

[0] Message Index

[#] Next page

Go to full version