FIFE forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

FIFE 0.4.0 has been released on 15th of January, 2017!

Pages: [1] 2

Author Topic: OS X Snow Leopard - build issues  (Read 10578 times)

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
OS X Snow Leopard - build issues
« on: September 05, 2009, 12:56:14 pm »

Hi all,

Just thought I'd let you know that I've upgraded to Snow Leopard and am having some difficulties with MacPorts.  There are a few dependencies (like libsdl) that DO NOT currently build.  There is a ticket open at MacPorts to fix the problem (see: http://trac.macports.org/ticket/20235.  In the mean time I am working on an alternate way to build FIFE on Snow Leopard.  I will post my findings here.
Logged

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #1 on: September 28, 2009, 11:26:47 am »

I just tried re syncing my port file and building libsdl and it worked!!!  Looks like the problem has been fixed.  I'm continuing building the rest of FIFE's deps and will report my findings here.
Logged

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #2 on: September 28, 2009, 11:53:00 am »

Just hit another road block... one of guichan's dependencies doesn't compile (allegro) so back to square one.
Logged

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #3 on: September 28, 2009, 12:30:52 pm »

Unfortunately whoever maintains the guichan port has allegro listed as a dependency and allegro does not build.   What I did was remove allegro as a dependency and voila it works!

Goto the /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/libguichan directory and apply this patch to the Portfile:

Code: [Select]
22c22
< depends_lib     path:lib/pkgconfig/sdl.pc:libsdl port:libsdl_image port:mesa
---
> depends_lib     path:lib/pkgconfig/sdl.pc:libsdl port:libsdl_image port:allegro port:mesa

That should work for you.  If not let me know.
Logged

superfluid

  • Newbie
  • Posts: 3
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #4 on: October 01, 2009, 01:21:35 pm »

Prock++ I'll try this tonight!
Logged

hoffi

  • Newbie
  • Posts: 18
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #5 on: November 22, 2009, 05:05:36 am »

Hi,
i tried to compile it on my mac (10.6.2) and got this error:
Code: [Select]
... -lvorbis -lm -logg -lguichan_sdl -lz -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -lguichan
sh: o: command not found
Copy("engine/swigwrappers/python/_fife.so", "engine/libfife.so")
scons: *** [engine/swigwrappers/python/_fife.so] engine/libfife.so: No such file or directory
scons: building terminated because of errors.
Here is all: http://www.copypastecode.com/15782/

And there is always
Code: [Select]
sh: o: command not found... what is o?
« Last Edit: November 22, 2009, 05:10:57 am by hoffi »
Logged
Hackintosh - (Intel i7 - 2600k, ATI Radeon HD6870 1GB VRAM, 8 GB RAM, 128 GB OCZ Vertex4 SSD)
Mac OS X 10.8

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #6 on: November 22, 2009, 08:19:58 am »

For whatever reason scons is trying to use 'o' as your compiler tool.  Just a few things...  What version of XCode do you have?  What version of GCC do you have selected (gcc -v)? Can you also paste the output of this command:  "port installed".
Logged

hoffi

  • Newbie
  • Posts: 18
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #7 on: November 23, 2009, 07:04:12 am »

port installed: http://paste.ideaslabs.com/show/tsEHV6ypbH

I have the newest Xcode version: 3.1.3 (Xcode IDE: 1191.0, Xcode Core: 1192.0, ToolSupport: 1186.0)

gcc and g++ 4.2
Logged
Hackintosh - (Intel i7 - 2600k, ATI Radeon HD6870 1GB VRAM, 8 GB RAM, 128 GB OCZ Vertex4 SSD)
Mac OS X 10.8

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #8 on: November 23, 2009, 09:05:12 am »

Hmm.. I dont see any obvious problems.   I did notice however that your ports are a little outdated.  When was the last time you ran "sudo port selfupdate && sudo port upgrade oudated"?  I know I had some issues with my ports after upgrading to Snow Leopard.  What I ended having to do was uninstall ALL my ports, then upgrade MacPorts and install all the ports again.  Kindof a pain I know but thats what I had to do.  Unfortunately I cannot remember the specific issue I was having.

Here are the ports I currently have installed:  http://fife.pastebin.com/f4268c8ca
Logged

hoffi

  • Newbie
  • Posts: 18
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #9 on: December 28, 2009, 01:49:14 pm »

k i got it compiled but fife crashes when it execs the pump function...

Error message: http://fife.pastebin.com/f46738c7d
Installed Ports: http://fife.pastebin.com/f41c1ed3c

looks like python cant find yaml... but i have it installed... ???
Logged
Hackintosh - (Intel i7 - 2600k, ATI Radeon HD6870 1GB VRAM, 8 GB RAM, 128 GB OCZ Vertex4 SSD)
Mac OS X 10.8

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #10 on: December 28, 2009, 07:26:01 pm »

I notice you have python_select installed.... which version of python do you have selected?   Did you try installing pyaml from source?  I believe that's what I had to do.
Logged

mvBarracuda

  • Administrator
  • Sr. Member
  • *
  • Posts: 411
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #11 on: December 29, 2009, 12:49:38 am »

Btw.: It looks like you can now use guichan 0.8.2 on OSX.

Quote from the IRC channel last night:
Quote
2009-12-28T23:54:43  <tommyd3mdi> Hi! Just wanted to drop in to tell you that you can remove the note about MacPorts only shipping guichan 0.8 here: http://wiki.fifengine.net/Building:Mac:SCons
2009-12-28T23:54:44  <UH-Guard2> Title: Building:Mac:SCons - FIFE development wiki (at wiki.fifengine.net)
2009-12-28T23:54:51  <tommyd3mdi> I've updated it today to 0.8.2
2009-12-29T00:01:31  <tommyd3mdi> a tiny patch is needed which is included in the MP distribution - I hope the fix will be accepted by upstream as well (see http://code.google.com/p/guichan/issues/detail?id=122)
2009-12-29T00:01:32  <UH-Guard2> Title: Issue 122 - guichan - guichan 0.8.2: linkage fails with undefined symbols under Mac OS X 10.5.8 (Intel) - Project Hosting on Google Code (at code.google.com)
Logged

hoffi

  • Newbie
  • Posts: 18
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #12 on: December 29, 2009, 08:02:44 am »

I notice you have python_select installed.... which version of python do you have selected?   Did you try installing pyaml from source?  I believe that's what I had to do.

I have selected version 2.6.1
and i have pyyaml installed with macports and from source...
Logged
Hackintosh - (Intel i7 - 2600k, ATI Radeon HD6870 1GB VRAM, 8 GB RAM, 128 GB OCZ Vertex4 SSD)
Mac OS X 10.8

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #13 on: December 29, 2009, 08:17:50 am »

hmm... can you import it manually without any errors like so:

Code: [Select]
computer:~ prock$ python
Python 2.6.4 (r264:75706, Oct 30 2009, 13:50:05)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>>
Logged

hoffi

  • Newbie
  • Posts: 18
    • View Profile
Re: OS X Snow Leopard - build issues
« Reply #14 on: December 29, 2009, 11:04:29 am »

no tried this also... but dont work
Logged
Hackintosh - (Intel i7 - 2600k, ATI Radeon HD6870 1GB VRAM, 8 GB RAM, 128 GB OCZ Vertex4 SSD)
Mac OS X 10.8
Pages: [1] 2