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!

Author Topic: can't compile FIFE on Mac OS X 10.8.4  (Read 3717 times)

raymond

  • Newbie
  • Posts: 7
    • View Profile
can't compile FIFE on Mac OS X 10.8.4
« on: June 29, 2013, 10:23:22 am »

1. step
$ git clone git://github.com/fifengine/fifengine.git

no problem

2. step
 
$ scons -c
scons: Reading SConscript files ...
Building RELEASE binaries...
scons: done reading SConscript files.
scons: Cleaning targets ...
scons: done cleaning targets.

3. step

$ scons
scons: Reading SConscript files ...
Checking for objc (using pkg-config)...no
Checking for objc (using objc-config)... no
Checking for C++ library objc... yes
Checking for png (using pkg-config)...no
Checking for png (using png-config)... no
Checking for C++ library png... no
Required lib png not found!

Libpng is installed:
$ sudo port install libpng
--->  Computing dependencies for libpng
--->  Cleaning libpng
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

System: OS X 10.8.4

What can I do? There are no "Docs" on http://fifengine.net/?
Logged

vtchill

  • Developer
  • Full Member
  • *
  • Posts: 206
    • View Profile
Re: can't compile FIFE on Mac OS X 10.8.4
« Reply #1 on: June 29, 2013, 04:38:15 pm »

Hey Raymond and welcome to FIFE!

I have not tried to compile FIFE on 10.8 but I will offer some general advice to see if it can push you along a little further.

If you look here https://github.com/fifengine/fifengine/blob/master/build/darwin-config.py#L30 you will see the configuration that is used when building on os x. This file describes which paths the build system uses when looking for include and library files. The lines defining include_dirs and lib_dirs are specifically the ones telling the build system where to look. Make sure that any libraries installed are in one of those directories and have proper permissions. If you install libs to another directory you can always either add a directory in that file or symlink it on your system to one of the directories list.

I believe prock (one of the other fife developers) has built fife on os x 10.8 so he may be able to provide more information.

Also come by our IRC channel during the week and you will probably find more people around to provide help.

Good luck and post back with any other questions/comments!
Logged

raymond

  • Newbie
  • Posts: 7
    • View Profile
Re: can't compile FIFE on Mac OS X 10.8.4
« Reply #2 on: June 30, 2013, 03:23:32 am »

Thanks for your reply.

According to http://pastebin.com/bxT8iYhx (provided from Kilian in IRC) I was almost able to compile it. But it is still to complicated: installing extra OpenAL, installing sdl and copy to fifechan. What is fifechan? Why is it not one package (fife and fifechan)? Please offer one pkg or dmg package for installation on mac os x with all current needed extra libraries that are not included in OS X.

Current problem while building fifechan:

$ cmake .

no problem

$ sudo make install
Password:
[ 84%] Built target fifechan
[ 90%] Built target fifechan_opengl
Linking CXX shared library libfifechan_sdl.dylib
ld: warning: ignoring file /usr/local/lib/libSDL_image.dylib, file was built for unsupported file format ( 0x6c 0x69 0x62 0x53 0x44 0x4c 0x5f 0x69 0x6d 0x61 0x67 0x65 0x2d 0x31 0x2e 0x32 ) which is not the architecture being linked (x86_64): /usr/local/lib/libSDL_image.dylib
Undefined symbols for architecture x86_64:
  "_IMG_Load", referenced from:
      fcn::SDLImageLoader::loadSDLSurface(std::string const&) in sdlimageloader.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libfifechan_sdl.0.1.0.dylib] Error 1
make[1]: *** [CMakeFiles/fifechan_sdl.dir/all] Error 2
make: *** [all] Error 2
« Last Edit: June 30, 2013, 04:32:10 am by raymond »
Logged

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: can't compile FIFE on Mac OS X 10.8.4
« Reply #3 on: July 03, 2013, 07:31:27 am »

Looks like SDL was built for 32 bit.  How did you install SDL?
Logged

raymond

  • Newbie
  • Posts: 7
    • View Profile
Re: can't compile FIFE on Mac OS X 10.8.4
« Reply #4 on: July 03, 2013, 08:48:31 am »

I permanently upgrade only Mac OS X. Maybe this is from an older version of Mac OS X (10.5 or 10.6).
I also download and install SDL and SDL_image from http://www.libsdl.org/
but this must be unter /Library/Frameworks

Where could I get a 64 bit version of libSDL_image.dylib and libfifechan_sdl.0.1.0.dylib for using in /usr/local/lib/ ?
« Last Edit: July 03, 2013, 08:50:10 am by raymond »
Logged

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: can't compile FIFE on Mac OS X 10.8.4
« Reply #5 on: July 03, 2013, 09:10:37 am »

It might not be the best option but you can compile them yourself, at least that's what I have always done.
Logged

raymond

  • Newbie
  • Posts: 7
    • View Profile
Re: can't compile FIFE on Mac OS X 10.8.4
« Reply #6 on: July 03, 2013, 10:05:38 am »

How can I do that: so you see: it it so much complicated to have a fully working and current Mac OS X version of unknown horizons. It is not possible that anybody here can compile unknown horizons and send it to the developer of unknown horizons?

Link: http://www.unknown-horizons.org/
« Last Edit: July 03, 2013, 10:07:13 am by raymond »
Logged

prock

  • Developer
  • Full Member
  • *
  • Posts: 236
    • View Profile
Re: can't compile FIFE on Mac OS X 10.8.4
« Reply #7 on: July 03, 2013, 10:39:49 am »

I would love to do that for you but I don't run 10.8.  I've been looking at creating a proper bundle for FIFE but I haven't got around to doing it (too much other stuff on my plate right now).
Logged

raymond

  • Newbie
  • Posts: 7
    • View Profile
Re: can't compile FIFE on Mac OS X 10.8.4
« Reply #8 on: July 03, 2013, 10:52:09 am »

Would be very nice. Hopefully an unknown horizons version built on a Mac OS X 10.6 or 10.7 system also works on OS X 10.8.

Please notify the developer on http://www.unknown-horizons.org/imprint/ and http://forum.unknown-horizons.org/viewtopic.php?f=29&t=488

Build howtos: http://www.unknown-horizons.org/download/os-x/

Thanks
« Last Edit: July 03, 2013, 12:50:14 pm by raymond »
Logged

raymond

  • Newbie
  • Posts: 7
    • View Profile
Re: can't compile FIFE on Mac OS X 10.8.4
« Reply #9 on: July 08, 2013, 07:23:49 am »

any progress on compiling unknown horizons for (Mac) OS X?
Logged