Building Freeablo

Post Reply
zykis
Posts: 6
Joined: Sat Nov 29, 2014 7:51 pm

Building Freeablo

Post by zykis »

So, i am wondering if anyone got some troubles, while building this project?
I have a few, so the help would be appreciated :)

1)lybtomcrypt has a dependency "libtommath", that is no longer available via brew.
Since there is no "http://libtom.org" exists
So the question: is that library is necessary?

2)freetype builds for x86_64, but not for i386 arch. So the libRocket gives an appropriate error.
Even i set up an --universal option for it
$ brew options freetype
--universal
Build a universal binary
Any idea how to build freetype for arch i386?

User avatar
wheybags
Site Admin
Posts: 86
Joined: Thu Apr 24, 2014 9:01 pm
Location: Ireland

Re: Building Freeablo

Post by wheybags »

Hey, I'm not really an osx person so I can't help too much.
That said, I've set up an osx vm and I' trying to get freeablo bulding there, so I can get back to you once I succeed :p.
Alternatively, if you get it working before me, please post what you did :p

User avatar
wheybags
Site Admin
Posts: 86
Joined: Thu Apr 24, 2014 9:01 pm
Location: Ireland

Re: Building Freeablo

Post by wheybags »

Hey, so I got it working on my vm.
When compiling libRocket, it seems the makefile generated is wrong, but the xcode project works fine.
If you add -G xcode to your cmake params when running cmake for librocket it should build through the xcode gui. You can then put the .dylib files wherever you want and reference them via the ROCKET_ROOT environment variable when cmaking freeablo.
There's a few python-related bits you'll have to do too: libRocket/bin contains rocket.py, and building with python bindings enabled should create _rocketcore.so and _rocketcontrols.so, put these three files in resources/python, and you should be good to go.
As for libtom*-related errors, I didn't run into this at all, sorry :(

zykis
Posts: 6
Joined: Sat Nov 29, 2014 7:51 pm

Re: Building Freeablo

Post by zykis »

Oh, gosh....
I am still on my way with building libRocket right now.
Trying to finish it via cmake. (Could probably use XCode, but wanna try to finish it in that way)
There was a problem with freetype building architechture. On 65%. Issue found here: https://github.com/libRocket/libRocket/issues/90
Now, it's fails on 87% ... If i wont succeed tomorrow, i'll do it via XCode
Thanks for trying it out ;)

User avatar
wheybags
Site Admin
Posts: 86
Joined: Thu Apr 24, 2014 9:01 pm
Location: Ireland

Re: Building Freeablo

Post by wheybags »

Hey, I actually make a brew tap for libRocket - http://github.com/wheybags/homebrew-librocket
It _should_ work (works for me :p)

EDIT: hold up, doesn't quite work yet :p

zykis
Posts: 6
Joined: Sat Nov 29, 2014 7:51 pm

Re: Building Freeablo

Post by zykis »

Yeah, can see you've done a lot of work here.
I'll try it out now ;)
[EDIT]
It seems that building libRocket on MacOS X 10.10 with XCode 6.1 or higher may confront the next problem:

Code: Select all

"clang: error: invalid arch name '-arch -fPIC'"
The issue discussed here: https://github.com/libRocket/libRocket/issues/229
But since I am completely out of build architecture theme (e.g. "i386" or "x86_64" ), I can't really understand, what is going on there.
Will try to resolve this A.S.A.P
P.S.: What architecture are you aiming on? x86_64? Or it's make no difference, since all contributes are just a code pieces?
[EDIT]
libRocket successfully build for x86_64. Just need to make some changes in CMakeLists.txt, described in the link above

zykis
Posts: 6
Joined: Sat Nov 29, 2014 7:51 pm

Re: Building Freeablo

Post by zykis »

I've build it at last! :)

Ghuntar
Posts: 11
Joined: Tue Apr 29, 2014 12:31 pm

Re: Building Freeablo

Post by Ghuntar »

You lucky !

I'm stuck at the librocket compiling. After having install the "brew tap wheybags/homebrew-librocket" (which says "ok"), I'm launching the "brew install --HEAD librocket" but it fails in a way that none of you specified :

Code: Select all

xxxxxxx$ brew install --HEAD librocket
==> Installing librocket from wheybags/homebrew-librocket
==> Cloning https://github.com/libRocket/libRocket.git
Updating /Library/Caches/Homebrew/librocket--git
==> Checking out revision 07f61ed4805ff86a5a08251eb4e18c38060fb93f
==> cd Build && cmake . -G Xcode -DBUILD_PYTHON_BINDINGS=On
==> cd Build && xcodebuild -project libRocket.xcodeproj/ -configuration Release


The following build commands failed:
	Ld libRocket.build/Release/RocketCore.build/Objects-normal/i386/libRocketCore.1.3.0.0.dylib normal i386
(1 failure)

READ THIS: http://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/wheybags/homebrew-librocket/issues


If any of you have an idea...
The only clue I have from brew doctor is the version of xquartz that seems outdated (2.7.6 instead of 2.7.7).

User avatar
wheybags
Site Admin
Posts: 86
Joined: Thu Apr 24, 2014 9:01 pm
Location: Ireland

Re: Building Freeablo

Post by wheybags »

Do you have the other dependencies installed as universal binaries?
If not, you can uninstall + then reinstall with --universal (should be just boost-python for librocket iirc)

zykis
Posts: 6
Joined: Sat Nov 29, 2014 7:51 pm

Re: Building Freeablo

Post by zykis »

First of all, I've build it with CMake. Not via brew.
There was some changes, that i provide to CMakeLists.txt, since there is an issue with building for i386, as I have mentioned earlier.
The second difference - I was building just a Makefiles. Without -G Xcode specified.
About the dependencies - there are only Freetype, as i remember.
But installing Freetype, I was also having problems with output architecture.
So, try to check this output:

Code: Select all

artem$ file /usr/local/Cellar/freetype/2.5.3_1/lib/libfreetype.a
it should be universal:

Code: Select all

/usr/local/Cellar/freetype/2.5.3_1/lib/libfreetype.a: Mach-O universal binary with 2 architectures
/usr/local/Cellar/freetype/2.5.3_1/lib/libfreetype.a (for architecture i386):	current ar archive random library
/usr/local/Cellar/freetype/2.5.3_1/lib/libfreetype.a (for architecture x86_64):current ar archive random library
btw: What OSX version do you have installed? 10.10 Yosemite? And what about XCode? 6.1?

Post Reply