Bug #1420

Client patcher compilation under Mac OS X

Added by kervala over 7 years ago. Updated about 7 years ago.

Status:Closed Start date:01/08/2012
Priority:Normal Due date:
Assignee:kervala % Done:

100%

Category:OS: Mac
Target version:Version 0.9.0

Description

Client patcher needs to be linked against Mac OS X framework to be able to use getAppBundlePath() function.

Currently, it generates an unreferenced symbol error and CMake needs -DWITH_RYZOM_TOOLS=OFF parameter to disable client tools.

History

#1 Updated by rti over 7 years ago

getAppBundlePath() is implemented in ryzom/client/src/app_bundle_utils.cpp.
It was necessary for config file loading on Mac OS X. Since client_patcher builds ryzom/client/src/client_cfg.cpp it needs the app_bundle_utils as well. The following patch should do the trick. Sorry, but I currently do not have the time to test it.

diff -r 4e4b2c1d86ef code/ryzom/tools/client/client_patcher/CMakeLists.txt
--- a/code/ryzom/tools/client/client_patcher/CMakeLists.txt     Tue Nov 15 14:55:57 2011 +0100
+++ b/code/ryzom/tools/client/client_patcher/CMakeLists.txt     Tue Jan 10 10:10:31 2012 +0100
@@ -2,6 +2,7 @@
        ${CMAKE_SOURCE_DIR}/ryzom/client/src/client_cfg.cpp
        ${CMAKE_SOURCE_DIR}/ryzom/client/src/login_patch.cpp
        ${CMAKE_SOURCE_DIR}/ryzom/client/src/login_xdelta.cpp
+       ${CMAKE_SOURCE_DIR}/ryzom/client/src/app_bundle_utils.cpp
        ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.cpp
        ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.h
 )

#2 Updated by kervala over 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:3bc4bcc3fa06.

#3 Updated by kervala over 7 years ago

  • Assignee set to kervala
  • Target version set to Version 0.9.0

#4 Updated by kervala over 7 years ago

rti wrote:

getAppBundlePath() is implemented in ryzom/client/src/app_bundle_utils.cpp.
It was necessary for config file loading on Mac OS X. Since client_patcher builds ryzom/client/src/client_cfg.cpp it needs the app_bundle_utils as well. The following patch should do the trick. Sorry, but I currently do not have the time to test it.

[...]

I already fixed that, but I forgot to link to framework :(

#5 Updated by rti over 7 years ago

Ah ok... hg pull && hg update ftw. Sorry :)

#6 Updated by kervala about 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF