Error Compiling Client in Mac OSX Lion
Added by Laelipoo over 3 years ago
I have been following the instructions as listed on the wiki, and am compiling with make when I reach the following error:
Scanning dependencies of target prim_export
[ 69%] Built target ryzom_clientsheets
[ 69%] Undefined symbols for architecture x86_64:
"getAppBundlePath()", referenced from:
CClientConfig::getDefaultConfigLocation(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) constin client_cfg.cpp.o
ld: symbol(s) Building CXX object ryzom/tools/leveldesign/prim_export/CMakeFiles/prim_export.dir/main.cpp.o
not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [bin/ryzom_client_patcher] Error 1
make[1]: *** [ryzom/tools/client/client_patcher/CMakeFiles/ryzom_client_patcher.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 69%] Built target ryzom_mission_compiler
Linking CXX executable ../../../../bin/prim_export
[ 69%] Built target prim_export
make: *** [all] Error 2
I'm not sure how to fix this. If anyone has any ideas, please let me know.
Replies (14)
RE: Error Compiling Client in Mac OSX Lion - Added by kervala over 3 years ago
Please could you try to launch "make" without any "-j" parameters (or with "-j1") and repost your log ?
With your current report, we don't know what project is generating the error (ryzom_clientsheets, prim_export, ryzom_mission_compiler or ryzom_client_patcher) :(
Thanks :)
RE: Error Compiling Client in Mac OSX Lion - Added by Laelipoo over 3 years ago
Thank you for your swift response. I reran it as just make, and got the following:
make
[ 0%] Built target nelmisc_pch_dephelp
[ 0%] Built target pch_Generate_nelmisc
[ 9%] Built target nelmisc
[ 9%] Built target nel3d_pch_dephelp
[ 9%] Built target pch_Generate_nel3d
[ 34%] Built target nel3d
[ 35%] Built target nel_drv_opengl
[ 35%] Built target nelgeorges_pch_dephelp
[ 36%] Built target pch_Generate_nelgeorges
[ 37%] Built target nelgeorges
[ 37%] Built target nelligo_pch_dephelp
[ 37%] Built target pch_Generate_nelligo
[ 38%] Built target nelligo
[ 38%] Built target nelnet_pch_dephelp
[ 38%] Built target pch_Generate_nelnet
[ 42%] Built target nelnet
[ 43%] Built target nellogic
[ 44%] Built target nelsnd_lowlevel_pch_dephelp
[ 44%] Built target pch_Generate_nelsnd_lowlevel
[ 44%] Built target nelsnd_lowlevel
[ 44%] Built target nelsound_pch_dephelp
[ 44%] Built target pch_Generate_nelsound
[ 46%] Built target nelsound
[ 46%] Built target nel_drv_openal_pch_dephelp
[ 46%] Built target pch_Generate_nel_drv_openal
[ 47%] Built target nel_drv_openal
[ 47%] Built target nelpacs_pch_dephelp
[ 47%] Built target pch_Generate_nelpacs
[ 49%] Built target nelpacs
[ 49%] Built target ryzom_gameshare_pch_dephelp
[ 49%] Built target pch_Generate_ryzom_gameshare
[ 61%] Built target ryzom_gameshare
[ 61%] Built target ryzom_client_pch_dephelp
[ 61%] Built target pch_Generate_ryzom_client
[ 61%] Built target ryzom_clientsheets_pch_dephelp
[ 61%] Built target pch_Generate_ryzom_clientsheets
[ 65%] Built target ryzom_clientsheets
[ 93%] Built target ryzom_client
[ 94%] Built target 7zDec
[ 95%] Built target ryzom_sevenzip
[ 95%] Built target skill_extractor
[ 95%] Built target make_alias_file
[ 95%] Built target make_anim_by_race
[ 95%] Built target make_anim_melee_impact
[ 96%] Built target pd_parser
[ 96%] Built target translation_tools
[ 96%] Built target assoc_mem
[ 96%] Built target alias_synchronizer
[ 96%] Built target prim_export
[ 97%] Built target uni_conv
[ 98%] Built target csv_transform
[ 98%] Built target icon_search
[ 99%] Built target ryzom_mission_compiler_lib
[ 99%] Built target ryzom_mission_compiler
[ 99%] Built target mp_generator
[ 99%] Built target named2csv
[ 99%] Built target patch_gen
[ 99%] Built target patch_gen_service
[ 99%] Built target pdr_util
[100%] Built target stats_scan
[100%] Built target sheets_packer_pch_dephelp
[100%] Built target pch_Generate_sheets_packer
[100%] Built target sheets_packer
[100%] Built target ryzom_client_patcher_pch_dephelp
[100%] Built target pch_Generate_ryzom_client_patcher
Linking CXX executable ../../../../bin/ryzom_client_patcher
Undefined symbols for architecture x86_64:
"getAppBundlePath()", referenced from:
CClientConfig::getDefaultConfigLocation(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) constin client_cfg.cpp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [bin/ryzom_client_patcher] Error 1
make[1]: *** [ryzom/tools/client/client_patcher/CMakeFiles/ryzom_client_patcher.dir/all] Error 2
make: *** [all] Error 2
So it looks like it finished this time, but I am not sure.
RE: Error Compiling Client in Mac OSX Lion - Added by kervala over 3 years ago
Thanks a lot for your report, it should be fixed in repository now :)
RE: Error Compiling Client in Mac OSX Lion - Added by Laelipoo over 3 years ago
Thank you! Which parts do I need to redownload? The source via HG?
RE: Error Compiling Client in Mac OSX Lion - Added by molator over 3 years ago
Exactly:
hg pull && hg update
RE: Error Compiling Client in Mac OSX Lion - Added by Laelipoo over 3 years ago
Recompiling from scratch to make sure I use the updated file. I will let you know how it works out. crossing my fingers
RE: Error Compiling Client in Mac OSX Lion - Added by Laelipoo over 3 years ago
Still no go. New text file is attached:
make
[ 0%] Built target nelmisc_pch_dephelp
[ 0%] Built target pch_Generate_nelmisc
[ 10%] Built target nelmisc
[ 10%] Built target nel3d_pch_dephelp
[ 10%] Built target pch_Generate_nel3d
[ 35%] Built target nel3d
[ 36%] Built target nel_drv_opengl
[ 36%] Built target nelgeorges_pch_dephelp
[ 36%] Built target pch_Generate_nelgeorges
[ 37%] Built target nelgeorges
[ 37%] Built target nelligo_pch_dephelp
[ 38%] Built target pch_Generate_nelligo
[ 39%] Built target nelligo
[ 39%] Built target nelnet_pch_dephelp
[ 39%] Built target pch_Generate_nelnet
[ 43%] Built target nelnet
[ 43%] Built target nellogic
[ 44%] Built target nelsnd_lowlevel_pch_dephelp
[ 44%] Built target pch_Generate_nelsnd_lowlevel
[ 44%] Built target nelsnd_lowlevel
[ 44%] Built target nelsound_pch_dephelp
[ 44%] Built target pch_Generate_nelsound
[ 46%] Built target nelsound
[ 46%] Built target nel_drv_openal_pch_dephelp
[ 46%] Built target pch_Generate_nel_drv_openal
[ 47%] Built target nel_drv_openal
[ 47%] Built target nelpacs_pch_dephelp
[ 47%] Built target pch_Generate_nelpacs
[ 49%] Built target nelpacs
[ 49%] Built target ryzom_gameshare_pch_dephelp
[ 49%] Built target pch_Generate_ryzom_gameshare
[ 61%] Built target ryzom_gameshare
[ 61%] Built target ryzom_client_pch_dephelp
[ 61%] Built target pch_Generate_ryzom_client
[ 61%] Built target ryzom_clientsheets_pch_dephelp
[ 61%] Built target pch_Generate_ryzom_clientsheets
[ 65%] Built target ryzom_clientsheets
[ 92%] Built target ryzom_client
[ 93%] Built target 7zDec
[ 94%] Built target ryzom_sevenzip
[ 94%] Built target skill_extractor
[ 94%] Built target make_alias_file
[ 94%] Built target make_anim_by_race
[ 94%] Built target make_anim_melee_impact
[ 95%] Built target pd_parser
[ 95%] Built target translation_tools
[ 95%] Built target assoc_mem
[ 95%] Built target alias_synchronizer
[ 95%] Built target prim_export
[ 96%] Built target uni_conv
[ 97%] Built target csv_transform
[ 97%] Built target icon_search
[ 98%] Built target ryzom_mission_compiler_lib
[ 98%] Built target ryzom_mission_compiler
[ 98%] Built target mp_generator
[ 98%] Built target named2csv
[ 98%] Built target patch_gen
[ 98%] Built target patch_gen_service
[ 98%] Built target pdr_util
[ 99%] Built target stats_scan
[ 99%] Built target sheets_packer_pch_dephelp
[ 99%] Built target pch_Generate_sheets_packer
[ 99%] Built target sheets_packer
[ 99%] Built target ryzom_client_patcher_pch_dephelp
[ 99%] Built target pch_Generate_ryzom_client_patcher
Linking CXX executable ../../../../bin/ryzom_client_patcher
Undefined symbols for architecture x86_64:
"_CFBundleGetMainBundle", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFBundleCopyBundleURL", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFURLCopyAbsoluteURL", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFURLCopyFileSystemPath", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFRelease", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFStringGetSmallestEncoding", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFStringGetCStringPtr", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [bin/ryzom_client_patcher] Error 1
make[1]: *** [ryzom/tools/client/client_patcher/CMakeFiles/ryzom_client_patcher.dir/all] Error 2
make: *** [all] Error 2
RE: Error Compiling Client in Mac OSX Lion - Added by kervala over 3 years ago
Hum, it seems like I didn't link to Mac OS X system libs, do you really need Ryzom tools currently ? If not, you can use -DRYZOM_TOOLS=OFF on cmake command line to disable them.
Currently, I have no time to check stuff under Mac OS X, sorry :(
RE: Error Compiling Client in Mac OSX Lion - Added by Laelipoo over 3 years ago
I don't, just trying to build a basic, less cpu-hogging client. I will c-make with that flag and try it again.
RE: Error Compiling Client in Mac OSX Lion - Added by Laelipoo over 3 years ago
Kervala, I added that flag to my cmake and I am still getting errors when trying to compile the patcher. It looks like that's the problem, as it's the last file that gets processed before the error.
make
[ 0%] Built target nelmisc_pch_dephelp
[ 0%] Built target pch_Generate_nelmisc
[ 10%] Built target nelmisc
[ 10%] Built target nel3d_pch_dephelp
[ 10%] Built target pch_Generate_nel3d
[ 35%] Built target nel3d
[ 36%] Built target nel_drv_opengl
[ 36%] Built target nelgeorges_pch_dephelp
[ 36%] Built target pch_Generate_nelgeorges
[ 37%] Built target nelgeorges
[ 37%] Built target nelligo_pch_dephelp
[ 38%] Built target pch_Generate_nelligo
[ 39%] Built target nelligo
[ 39%] Built target nelnet_pch_dephelp
[ 39%] Built target pch_Generate_nelnet
[ 43%] Built target nelnet
[ 43%] Built target nellogic
[ 44%] Built target nelsnd_lowlevel_pch_dephelp
[ 44%] Built target pch_Generate_nelsnd_lowlevel
[ 44%] Built target nelsnd_lowlevel
[ 44%] Built target nelsound_pch_dephelp
[ 44%] Built target pch_Generate_nelsound
[ 46%] Built target nelsound
[ 46%] Built target nel_drv_openal_pch_dephelp
[ 46%] Built target pch_Generate_nel_drv_openal
[ 47%] Built target nel_drv_openal
[ 47%] Built target nelpacs_pch_dephelp
[ 47%] Built target pch_Generate_nelpacs
[ 49%] Built target nelpacs
[ 49%] Built target ryzom_gameshare_pch_dephelp
[ 49%] Built target pch_Generate_ryzom_gameshare
[ 61%] Built target ryzom_gameshare
[ 61%] Built target ryzom_client_pch_dephelp
[ 61%] Built target pch_Generate_ryzom_client
[ 61%] Built target ryzom_clientsheets_pch_dephelp
[ 61%] Built target pch_Generate_ryzom_clientsheets
[ 65%] Built target ryzom_clientsheets
[ 92%] Built target ryzom_client
[ 93%] Built target 7zDec
[ 94%] Built target ryzom_sevenzip
[ 94%] Built target skill_extractor
[ 94%] Built target make_alias_file
[ 94%] Built target make_anim_by_race
[ 94%] Built target make_anim_melee_impact
[ 95%] Built target pd_parser
[ 95%] Built target translation_tools
[ 95%] Built target assoc_mem
[ 95%] Built target alias_synchronizer
[ 95%] Built target prim_export
[ 96%] Built target uni_conv
[ 97%] Built target csv_transform
[ 97%] Built target icon_search
[ 98%] Built target ryzom_mission_compiler_lib
[ 98%] Built target ryzom_mission_compiler
[ 98%] Built target mp_generator
[ 98%] Built target named2csv
[ 98%] Built target patch_gen
[ 98%] Built target patch_gen_service
[ 98%] Built target pdr_util
[ 99%] Built target stats_scan
[ 99%] Built target sheets_packer_pch_dephelp
[ 99%] Built target pch_Generate_sheets_packer
[ 99%] Built target sheets_packer
[ 99%] Built target ryzom_client_patcher_pch_dephelp
[ 99%] Built target pch_Generate_ryzom_client_patcher
Linking CXX executable ../../../../bin/ryzom_client_patcher
Undefined symbols for architecture x86_64:
"_CFBundleGetMainBundle", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFBundleCopyBundleURL", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFURLCopyAbsoluteURL", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFURLCopyFileSystemPath", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFRelease", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFStringGetSmallestEncoding", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
"_CFStringGetCStringPtr", referenced from:
getAppBundlePath() in app_bundle_utils.cpp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [bin/ryzom_client_patcher] Error 1
make[1]: *** [ryzom/tools/client/client_patcher/CMakeFiles/ryzom_client_patcher.dir/all] Error 2
make: *** [all] Error 2
RE: Error Compiling Client in Mac OSX Lion - Added by kervala over 3 years ago
Oops, sorry, that's my mistake :p
-DWITH_RYZOM_TOOLS=OFF (I forgot WITH_)
RE: Error Compiling Client in Mac OSX Lion - Added by Laelipoo over 3 years ago
That worked finally. Thank you so much Kervala, I have a working client that is better on the CPU usage. Still hovers around 150, but better than nothing. Maybe it might be added to the wiki page that for Lion, those compiler flags need to be added? Just so others don't have so much stress as I. Thanks again.
RE: Error Compiling Client in Mac OSX Lion - Added by kervala over 3 years ago
Thanks :)
I opened an issue there : http://dev.ryzom.com/issues/1420
I will try to fix it next week if nobody fix it before.
RE: Error Compiling Client in Mac OSX Lion - Added by Laelipoo over 3 years ago
No, thank you for all your help.
(1-14/14)