failed building client on mac
Added by kuo over 8 years ago
Hello,
I am trying build ryzom on mac ,so far I have build net and nelns modules successfully,
but I choked at client building process 26%, when link libgame_share.dylib, I got lots link errors,
seems due to lacking netnet library, but I am sure CMakeLists.txt has linked $NETNET_LIBRARY into TARGET_LINK_LIBRARIES.
please see attached log.
Thanks,
-Kuo
linkerrors.txt - link error log file (216.8 kB)
Replies (3)
RE: failed building client on mac - Added by rti over 8 years ago
This are the cmake changes I currently just have locally because they are toooooo ugly to post them anywhere. But may help you a bit. :)
Index: /Users/rti/Development/ryzom/code =================================================================== diff with working copy (80ece70e9aa5) --- a/code/ryzom/client/src/CMakeLists.txt Tue May 18 19:24:01 2010 +0200 +++ b/code/ryzom/client/src/CMakeLists.txt Wed May 19 10:19:43 2010 +0200 @@ -42,14 +42,36 @@ ${CURL_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}) -TARGET_LINK_LIBRARIES(client ${PLATFORM_LINKFLAGS} +MESSAGE(${LIBWWW_LIBRARY}) + +TARGET_LINK_LIBRARIES(client "${PLATFORM_LINKFLAGS} -L/opt/local/lib" + "nel3d" + "wwwapp" + "wwwcache" + "wwwcore" + "wwwdir" + "wwwfile" + "wwwftp" + "wwwgopher" + "wwwhtml" + "wwwhttp" + "wwwinit" + "wwwmime" + "wwwmux" + "wwwnews" + "wwwssl" + "wwwstream" + "wwwtelnet" + "wwwtrans" + "wwwutils" + "wwwxml" + "wwwzip" ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY} game_share ${NELNET_LIBRARY} ${NELLIGO_LIBRARY} ${NELGEORGES_LIBRARY} - ${LUA_LIBRARIES} ${CURL_LIBRARIES} ${NELSOUND_LIBRARY} ${NELSNDDRV_LIBRARY} @@ -59,6 +81,7 @@ ${Boost_LIBRARIES} ${X11_LIBRARIES} seven_zip + lua luabind) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) Index: /Users/rti/Development/ryzom/code =================================================================== diff with working copy (80ece70e9aa5) --- a/code/ryzom/common/src/game_share/CMakeLists.txt Tue May 18 19:24:01 2010 +0200 +++ b/code/ryzom/common/src/game_share/CMakeLists.txt Wed May 19 10:19:43 2010 +0200 @@ -14,7 +14,13 @@ ENDIF(WIN32) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) -TARGET_LINK_LIBRARIES(game_share ${NELMISC_LIBRARY}) +# TARGET_LINK_LIBRARIES(game_share ${NELMISC_LIBRARY}) +TARGET_LINK_LIBRARIES(game_share "nelmisc") +TARGET_LINK_LIBRARIES(game_share "nelnet") +TARGET_LINK_LIBRARIES(game_share "nelgeorges") +TARGET_LINK_LIBRARIES(game_share "nelligo") +TARGET_LINK_LIBRARIES(game_share "xml2") +TARGET_LINK_LIBRARIES(game_share "z") SET_TARGET_PROPERTIES(game_share PROPERTIES VERSION ${NL_VERSION}) IF(WIN32)
RE: failed building client on mac - Added by rti over 8 years ago
The problem seems to be, that the FindNEL script is working differently in Ryzom and in NeLNS.
For example ${NELMISC_LIBRARY}
contains the whole path to the library which makes cmake add just "/path/to/libnelmisc.dylib" and not "-L/path/to -lnelmisc" to the compiler command line. The solution must be somewhere between NeLNS's FindNEL and Ryzom's FindNEL :)
RE: failed building client on mac - Added by kuo over 8 years ago
hmm,yes ,this really do resolve my problems, thanks!rti
btw , I think we 'd better to resolve this issue and push to repo.
-Kuo
(1-3/3)