Build client on Mac OSX 10.6.4

Added by Gulivert almost 8 years ago

Hi guys,

I tried to build the Ryzom client on Mac OSX Snow Leopard but I got a problem during the compilation. I hope someone will be able to help me.
So to make that I followed the how-to in the Wiki.

Information System :
Mac OSX Snow Leopard 10.6.4
Xcode : 3.2.4
GCC : 4.2.1
cmake : 2.8.2

It seems the problem is linking with libwww, there the last lines from the compilation :

-- Found Lua51: /opt/local/lib/liblua.a
-- Warning: Unable to find Luabind!
-- Found CURL: /usr/lib/libcurl.dylib
-- Found LibWWW: /opt/local/lib/libwwwapp.dylib;/opt/local/lib/libwwwcore.dylib;/opt/local/lib/libwwwdir.dylib;/opt/local/lib/libwwwfile.dylib;/opt/local/lib/libwwwftp.dylib;/opt/local/lib/libwwwgopher.dylib;/opt/local/lib/libwwwhtml.dylib;/opt/local/lib/libwwwhttp.dylib;/opt/local/lib/libwwwinit.dylib;/opt/local/lib/libwwwmime.dylib;/opt/local/lib/libwwwcache.dylib;/opt/local/lib/libwwwmux.dylib;/opt/local/lib/libwwwnews.dylib;/opt/local/lib/libwwwstream.dylib;/opt/local/lib/libwwwtelnet.dylib;/opt/local/lib/libwwwtrans.dylib;/opt/local/lib/libwwwutils.dylib;/opt/local/lib/libwwwxml.dylib;/opt/local/lib/libwwwzip.dylib;/opt/local/lib/libmd5.dylib
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LUABIND_INCLUDE_DIR
   used as include directory in directory /Users/Cedric/Games/ryzom/ryzom/code/ryzom/client/src

-- Configuring incomplete, errors occurred!

Thanks in advance for your help


Replies (13)

RE: Build client on Mac OSX 10.6.4 - Added by kervala almost 8 years ago

No your problem is related to Luabind :)

It seems like it didn't find it :(

RE: Build client on Mac OSX 10.6.4 - Added by Gulivert almost 8 years ago

Hmm ok, when I try again to compile the error look different. Like that :

-- DEBUG size_t is 8
-- DEBUG off_t is 8
-- Warning: Unable to find CppTest!
-- Warning: Unable to find Luabind!
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LUABIND_INCLUDE_DIR
   used as include directory in directory /Users/Cedric/Games/ryzom/ryzom/code/ryzom/client/src

-- Configuring incomplete, errors occurred!

This one confirm your "talk".

My package for lua is : 5.1.4 from macport of course. I didn't find a package for luabind...
For cpp I don't know what package I need. In macport I found these :

sudo port search cppb

cpp @20090630 (devel)    C(++) Beautifier

commoncpp2 @1.4.2 (devel)
    GNU Common C++ 2 Framework

cpphs @1.3 (devel)
    cpp implemented in Haskell.

cppunit @1.12.1 (devel)
    unit testing framework for C++

ice-cpp @3.4.1 (devel)
    Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP

log4cpp @1.0 (devel)
    configurable logging for C++

log4shib @1.0.4 (sysutils, shibboleth, devel)
    configurable logging for C++, fork of log4cpp

mcpp @2.7.2 (devel)
    Alternative C/C++ preprocessor

ncmpcpp @0.5.5 (audio)
    an ncurses mpd client inspired by ncmpc

protobuf-cpp @2.3.0 (devel)
    Encode data in an efficient yet extensible format.

tcpproxy @1.1.9 (net)
    tcpproxy is a proxy (tunnel, redirector) for TCP/IP protocols

unittest-cpp @1.4 (devel)
    lightweight unit testing framework for C++

RE: Build client on Mac OSX 10.6.4 - Added by kervala almost 8 years ago

You can try to compile Luabind version from my repository:

svn co http://svn.kervala.net/utils/packaging/luabind
cd luabind
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/local
make
sudo make install

RE: Build client on Mac OSX 10.6.4 - Added by Gulivert almost 8 years ago

Thanks for your help. Your luabind package compile well on Snow Leopard.
So now my computer still compile the command make, just hope there won't be any problems until the end of compilation.

RE: Build client on Mac OSX 10.6.4 - Added by kervala almost 8 years ago

You're welcome :)

cpptest is not needed so you can disable it with: -DWITH_NEL_TESTS=OFF

RE: Build client on Mac OSX 10.6.4 - Added by Gulivert almost 8 years ago

So I'm sad :'(
The client doesn't work... I downloaded the ryzom_client_open for Windows. I go in this folder and launch the new ryzom client fresh installed. After that, I directly have the problem report window with this error.

Dyld Error Message:
  Library not loaded: libluabind.0.dylib
  Referenced from: /Applications/ryzom_client.app/Contents/MacOS/ryzom_client
  Reason: image not found

Rather strange.. I don't know if I can use this command : whereis
I come from Linux World and it's my first try with the Apple commands. Anyway if I can use the command whereis it didn't find anything when I try to find libluabind.0.dylib

Edit : In the folder /opt/local/lib/ I have this libluabind.0.dylib. I don't know why whereis and ryzom don't find it.

RE: Build client on Mac OSX 10.6.4 - Added by kervala almost 8 years ago

Sorry, I can't help about Mac specific problems :( I will talk to rti about that, I'm sure he could help you.

RE: Build client on Mac OSX 10.6.4 - Added by Gulivert almost 8 years ago

I hope so :)
Maybe I need to export the path of the lib like something as export_lib=/opt/local/lib or something like that.
Sorry for my English. I started to learn English 3 month ago so if by while my language is strange, it's normal :p
Anyway huge thanks for your help. My first compilation on Mac OSX is done, even if the client don't work XD

RE: Build client on Mac OSX 10.6.4 - Added by Gulivert almost 8 years ago

Finally I fixed the problem. I rebuild luabind but like on the wiki page on the bottom. I didn't see this section for luabind before our discussion just on the top section about lua.
So now the Ryzom client start fine :)

Where could I post the bugs that I will find in the client?

RE: Build client on Mac OSX 10.6.4 - Added by kervala almost 8 years ago

First you should check it's not already in:

http://dev.ryzom.com/projects/ryzom/issues

You can use the search engine for that :)

And then create an issue :)

Thanks a lot

RE: Build client on Mac OSX 10.6.4 - Added by Gulivert almost 8 years ago

Now I have the client in OSX, could I play in the official server with that?
Because it's difficult to find bugs only on the open.ryzom.com:40916
I hope it's possible because now I haven't other computer with Linux or Windows to play Ryzom.

Have a nice day!

RE: Build client on Mac OSX 10.6.4 - Added by kervala almost 8 years ago

Yes, it's possible only if your client hasn't been modified :)

You just need to use client_default.cfg from official client and it should be ok

If you don't have it, you can apply this patch:

 1diff -r eaf2d6da7c20 code/ryzom/client/client_default.cfg
 2--- a/code/ryzom/client/client_default.cfg    Tue Sep 28 15:37:52 2010 +0200
 3+++ b/code/ryzom/client/client_default.cfg    Tue Sep 28 23:38:30 2010 +0200
 4@@ -39,16 +39,15 @@
 5 // NETWORK //
 6 /////////////
 7
 8-Application = { "ryzom_open", "./client_ryzom_r.exe", "./" };
 9+Application = { "ryzom_live", "./client_ryzom_r.exe", "./" };
10 BackgroundDownloader = 0;
11-PatchServer = "";
12-PatchWanted = 0;
13-SignUpURL = "";
14-StartupHost = "open.ryzom.com:40916";
15+PatchServer = "http://dl.ryzom.com/patch_live";
16+SignUpURL = "http://www.ryzom.com/subscribe";
17+StartupHost = "su1.ryzom.com:40916";
18 StartupPage = "/login/r2_login.php";
19-InstallStatsUrl = "http://open.ryzom.com:50000/stats/stats.php";
20-CreateAccountURL = "";
21-InstallWebPage = "";
22+InstallStatsUrl = "http://su1.ryzom.com:50000/stats/stats.php";
23+CreateAccountURL = "https://secure.ryzom.com/signup/from_client.php";
24+InstallWebPage = "http://dl.ryzom.com/installer/";

RE: Build client on Mac OSX 10.6.4 - Added by Gulivert almost 8 years ago

It's perfect!
Thank you so much!
I hope I will be able to help for the bugs report.
See you and thanks a lot.

(1-13/13)