Get errors in Linux compiling

Get errors in Linux compiling

Postby nana03435 » 06 Mar 2013, 22:17

Hi, I get some errors when compile under Linux. I use fedora 18, and in this distro, the lua version is 5.1, but the errors seem still the luabind. Please read the code below.

Thanks for your great work.

{l Code}: {l Select All Code}
$ cmake .
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found SDL: /usr/lib64/libSDL.so;-lpthread (found version "1.2.15")
-- Found SDL_ttf: /usr/lib64/libSDL_ttf.so (found version "2.0.11")
-- Found SDL_image: /usr/lib64/libSDL_image.so (found version "1.2.12")
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so 
-- Found OpenAL: /usr/lib64/libopenal.so 
-- Found VORBISFILE: optimized;/usr/lib64/libvorbisfile.so;debug;/usr/lib64/libvorbisfile.so 
-- Found Lua51: /usr/lib64/liblua-5.1.so;/usr/lib64/libm.so 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found PNG: /usr/lib64/libpng.so (found version "1.5.13")
-- Found JPEG: /usr/lib64/libjpeg.so 
-- Found Gettext: /usr/bin/msgmerge (found version "0.18.1")
-- Boost version: 1.50.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bolan/ValyriaTear-0.5.0

$ make
[  1%] Building CXX object src/CMakeFiles/valyriatear.dir/main.cpp.o
[  2%] Building CXX object src/CMakeFiles/valyriatear.dir/common/common_bindings.cpp.o
[  3%] Building CXX object src/CMakeFiles/valyriatear.dir/common/common.cpp.o
[  4%] Building CXX object src/CMakeFiles/valyriatear.dir/common/dialogue.cpp.o
[  5%] Building CXX object src/CMakeFiles/valyriatear.dir/common/global/global.cpp.o
[  6%] Building CXX object src/CMakeFiles/valyriatear.dir/common/global/global_actors.cpp.o
[  7%] Building CXX object src/CMakeFiles/valyriatear.dir/common/global/global_effects.cpp.o
[  8%] Building CXX object src/CMakeFiles/valyriatear.dir/common/global/global_objects.cpp.o
[  9%] Building CXX object src/CMakeFiles/valyriatear.dir/common/global/global_skills.cpp.o
[ 10%] Building CXX object src/CMakeFiles/valyriatear.dir/common/global/global_utils.cpp.o
[ 11%] Building CXX object src/CMakeFiles/valyriatear.dir/common/gui/menu_window.cpp.o
[ 12%] Building CXX object src/CMakeFiles/valyriatear.dir/common/gui/textbox.cpp.o
[ 13%] Building CXX object src/CMakeFiles/valyriatear.dir/common/gui/option.cpp.o
/home/bolan/ValyriaTear-0.5.0/src/common/gui/option.cpp:1132:6: warning: unused parameter ‘scroll_offset’ [-Wunused-parameter]
[ 14%] Building CXX object src/CMakeFiles/valyriatear.dir/common/gui/gui.cpp.o
[ 15%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/audio/audio.cpp.o
[ 16%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/audio/audio_descriptor.cpp.o
[ 17%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/audio/audio_input.cpp.o
[ 18%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/audio/audio_stream.cpp.o
[ 19%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/audio/audio_effects.cpp.o
[ 20%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/effect_supervisor.cpp.o
[ 21%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/mode_manager.cpp.o
[ 22%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/script_supervisor.cpp.o
[ 23%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/pause.cpp.o
[ 24%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/shop/shop_buy.cpp.o
[ 25%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/shop/shop_sell.cpp.o
[ 26%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/shop/shop_trade.cpp.o
[ 27%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/shop/shop_root.cpp.o
[ 28%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/shop/shop.cpp.o
[ 29%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/shop/shop_utils.cpp.o
[ 30%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o
[ 31%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/mode_help_window.cpp.o
[ 32%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle_effects.cpp.o
[ 33%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle_actors.cpp.o
[ 34%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle_dialogue.cpp.o
[ 35%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle_indicators.cpp.o
[ 36%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle_actions.cpp.o
[ 37%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle_utils.cpp.o
[ 38%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle_command.cpp.o
[ 39%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle.cpp.o
[ 40%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle_finish.cpp.o
[ 41%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/battle/battle_sequence.cpp.o
[ 42%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/scene.cpp.o
[ 43%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/boot/boot.cpp.o
[ 44%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/boot/boot_menu.cpp.o
[ 45%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/save/save_mode.cpp.o
[ 46%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/map/map.cpp.o
[ 47%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/map/map_dialogue.cpp.o
[ 48%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/map/map_utils.cpp.o
[ 49%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/map/map_objects.cpp.o
[ 50%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/map/map_events.cpp.o
[ 51%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/map/map_tiles.cpp.o
[ 52%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/map/map_sprites.cpp.o
[ 53%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/map/map_treasure.cpp.o
[ 54%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/map/map_zones.cpp.o
[ 55%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/menu/menu.cpp.o
[ 56%] Building CXX object src/CMakeFiles/valyriatear.dir/modes/menu/menu_views.cpp.o
[ 57%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/input.cpp.o
[ 58%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/engine_bindings.cpp.o
[ 59%] Building CXX object src/CMakeFiles/valyriatear.dir/main_options.cpp.o
[ 60%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/system.cpp.o
[ 61%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/video.cpp.o
[ 62%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/texture_controller.cpp.o
[ 63%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/texture.cpp.o
[ 64%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/image.cpp.o
[ 65%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/image_base.cpp.o
[ 66%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/interpolator.cpp.o
[ 67%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/fade.cpp.o
[ 68%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/text.cpp.o
[ 69%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/shake.cpp.o
[ 70%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/particle_manager.cpp.o
[ 71%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/particle_effect.cpp.o
[ 72%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/video/particle_system.cpp.o
[ 73%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/script/script.cpp.o
[ 74%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/script/script_read.cpp.o
[ 75%] Building CXX object src/CMakeFiles/valyriatear.dir/engine/script/script_write.cpp.o
[ 76%] Building CXX object src/CMakeFiles/valyriatear.dir/utils.cpp.o
[ 77%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/class_registry.cpp.o
[ 78%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/class_rep.cpp.o
[ 79%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/object_rep.cpp.o
[ 80%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/pcall.cpp.o
[ 81%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/scope.cpp.o
[ 82%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/stack_content_by_name.cpp.o
[ 83%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/inheritance.cpp.o
[ 84%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/class.cpp.o
[ 85%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/error.cpp.o
[ 86%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/weak_ref.cpp.o
[ 87%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/class_info.cpp.o
[ 88%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/create_class.cpp.o
[ 89%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/function.cpp.o
[ 90%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/link_compatibility.cpp.o
[ 91%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/exception_handler.cpp.o
[ 92%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/wrapper_base.cpp.o
[ 93%] Building CXX object src/CMakeFiles/valyriatear.dir/luabind/src/open.cpp.o
Linking CXX executable valyriatear
CMakeFiles/valyriatear.dir/main.cpp.o: In function `luabind::default_converter<int>::from(lua_State*, int)':
main.cpp:(.text._ZN7luabind17default_converterIiE4fromEP9lua_Statei[_ZN7luabind17default_converterIiE4fromEP9lua_Statei]+0x25): undefined reference to `lua_tointegerx'
CMakeFiles/valyriatear.dir/main.cpp.o: In function `luabind::default_converter<float>::from(lua_State*, int)':
main.cpp:(.text._ZN7luabind17default_converterIfE4fromEP9lua_Statei[_ZN7luabind17default_converterIfE4fromEP9lua_Statei]+0x25): undefined reference to `lua_tonumberx'
CMakeFiles/valyriatear.dir/main.cpp.o: In function `luabind::default_converter<std::string>::from(lua_State*, int)':
main.cpp:(.text._ZN7luabind17default_converterISsE4fromEP9lua_Statei[_ZN7luabind17default_converterISsE4fromEP9lua_Statei]+0x31): undefined reference to `lua_rawlen'
CMakeFiles/valyriatear.dir/main.cpp.o: In function `bool hoa_script::ReadScriptDescriptor::_ReadData<bool>(std::string const&, bool)':
main.cpp:(.text._ZN10hoa_script20ReadScriptDescriptor9_ReadDataIbEET_RKSsS2_[_ZN10hoa_script20ReadScriptDescriptor9_ReadDataIbEET_RKSsS2_]+0x5d): undefined reference to `lua_getglobal'
CMakeFiles/valyriatear.dir/main.cpp.o: In function `int hoa_script::ReadScriptDescriptor::_ReadData<int>(std::string const&, int)':
main.cpp:(.text._ZN10hoa_script20ReadScriptDescriptor9_ReadDataIiEET_RKSsS2_[_ZN10hoa_script20ReadScriptDescriptor9_ReadDataIiEET_RKSsS2_]+0x5b): undefined reference to `lua_getglobal'
CMakeFiles/valyriatear.dir/main.cpp.o: In function `float hoa_script::ReadScriptDescriptor::_ReadData<float>(std::string const&, float)':
main.cpp:(.text._ZN10hoa_script20ReadScriptDescriptor9_ReadDataIfEET_RKSsS2_[_ZN10hoa_script20ReadScriptDescriptor9_ReadDataIfEET_RKSsS2_]+0x5d): undefined reference to `lua_getglobal'
CMakeFiles/valyriatear.dir/main.cpp.o: In function `std::string hoa_script::ReadScriptDescriptor::_ReadData<std::string>(std::string const&, std::string)':
main.cpp:(.text._ZN10hoa_script20ReadScriptDescriptor9_ReadDataISsEET_RKSsS2_[_ZN10hoa_script20ReadScriptDescriptor9_ReadDataISsEET_RKSsS2_]+0x72): undefined reference to `lua_getglobal'
CMakeFiles/valyriatear.dir/main.cpp.o: In function `luabind::detail::basic_iterator<luabind::detail::basic_access>::equal(luabind::detail::basic_iterator<luabind::detail::basic_access> const&) const':
main.cpp:(.text._ZNK7luabind6detail14basic_iteratorINS0_12basic_accessEE5equalERKS3_[_ZNK7luabind6detail14basic_iteratorINS0_12basic_accessEE5equalERKS3_]+0xb6): undefined reference to `lua_compare'
CMakeFiles/valyriatear.dir/common/common_bindings.cpp.o: In function `luabind::default_converter<unsigned int>::from(lua_State*, int)':
common_bindings.cpp:(.text._ZN7luabind17default_converterIjE4fromEP9lua_Statei[_ZN7luabind17default_converterIjE4fromEP9lua_Statei]+0x25): undefined reference to `lua_tonumberx'
CMakeFiles/valyriatear.dir/common/common_bindings.cpp.o: In function `hoa_global::GLOBAL_TARGET luabind::detail::enum_converter::apply<hoa_global::GLOBAL_TARGET>(lua_State*, luabind::detail::by_value<hoa_global::GLOBAL_TARGET>, int)':
common_bindings.cpp:(.text._ZN7luabind6detail14enum_converter5applyIN10hoa_global13GLOBAL_TARGETEEET_P9lua_StateNS0_8by_valueIS5_EEi[_ZN7luabind6detail14enum_converter5applyIN10hoa_global13GLOBAL_TARGETEEET_P9lua_StateNS0_8by_valueIS5_EEi]+0x25): undefined reference to `lua_tonumberx'
CMakeFiles/valyriatear.dir/common/global/global_actors.cpp.o: In function `boost::mpl::if_<boost::is_void<void>, luabind::detail::proxy_function_void_caller<boost::tuples::tuple<hoa_global::GlobalCharacter* const*, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> >, luabind::detail::proxy_function_caller<void, boost::tuples::tuple<hoa_global::GlobalCharacter* const*, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >::type luabind::call_function<void, hoa_global::GlobalCharacter*>(lua_State*, char const*, hoa_global::GlobalCharacter* const&)':
global_actors.cpp:(.text._ZN7luabind13call_functionIvPN10hoa_global15GlobalCharacterEEEN5boost3mpl3if_INS4_7is_voidIT_EENS_6detail26proxy_function_void_callerINS4_6tuples5tupleIPKT0_NSC_9null_typeESH_SH_SH_SH_SH_SH_SH_SH_EEEENSA_21proxy_function_callerIS8_SI_EEE4typeEP9lua_StatePKcRSF_[_ZN7luabind13call_functionIvPN10hoa_global15GlobalCharacterEEEN5boost3mpl3if_INS4_7is_voidIT_EENS_6detail26proxy_function_void_callerINS4_6tuples5tupleIPKT0_NSC_9null_typeESH_SH_SH_SH_SH_SH_SH_SH_EEEENSA_21proxy_function_callerIS8_SI_EEE4typeEP9lua_StatePKcRSF_]+0x62): undefined reference to `lua_getglobal'
CMakeFiles/valyriatear.dir/engine/script_supervisor.cpp.o: In function `hoa_script::ScriptEngine::DropGlobalTable(std::string const&)':
script_supervisor.cpp:(.text._ZN10hoa_script12ScriptEngine15DropGlobalTableERKSs[_ZN10hoa_script12ScriptEngine15DropGlobalTableERKSs]+0x8a): undefined reference to `lua_pcallk'
CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o: In function `luabind::default_converter<unsigned char>::from(lua_State*, int)':
mode_bindings.cpp:(.text._ZN7luabind17default_converterIhE4fromEP9lua_Statei[_ZN7luabind17default_converterIhE4fromEP9lua_Statei]+0x25): undefined reference to `lua_tointegerx'
CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o: In function `luabind::default_converter<short>::from(lua_State*, int)':
mode_bindings.cpp:(.text._ZN7luabind17default_converterIsE4fromEP9lua_Statei[_ZN7luabind17default_converterIsE4fromEP9lua_Statei]+0x25): undefined reference to `lua_tointegerx'
CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o: In function `luabind::default_converter<unsigned short>::from(lua_State*, int)':
mode_bindings.cpp:(.text._ZN7luabind17default_converterItE4fromEP9lua_Statei[_ZN7luabind17default_converterItE4fromEP9lua_Statei]+0x25): undefined reference to `lua_tointegerx'
CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o: In function `hoa_shop::SHOP_PRICE_LEVEL luabind::detail::enum_converter::apply<hoa_shop::SHOP_PRICE_LEVEL>(lua_State*, luabind::detail::by_value<hoa_shop::SHOP_PRICE_LEVEL>, int)':
mode_bindings.cpp:(.text._ZN7luabind6detail14enum_converter5applyIN8hoa_shop16SHOP_PRICE_LEVELEEET_P9lua_StateNS0_8by_valueIS5_EEi[_ZN7luabind6detail14enum_converter5applyIN8hoa_shop16SHOP_PRICE_LEVELEEET_P9lua_StateNS0_8by_valueIS5_EEi]+0x25): undefined reference to `lua_tonumberx'
CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o: In function `hoa_global::GLOBAL_STATUS luabind::detail::enum_converter::apply<hoa_global::GLOBAL_STATUS>(lua_State*, luabind::detail::by_value<hoa_global::GLOBAL_STATUS>, int)':
mode_bindings.cpp:(.text._ZN7luabind6detail14enum_converter5applyIN10hoa_global13GLOBAL_STATUSEEET_P9lua_StateNS0_8by_valueIS5_EEi[_ZN7luabind6detail14enum_converter5applyIN10hoa_global13GLOBAL_STATUSEEET_P9lua_StateNS0_8by_valueIS5_EEi]+0x25): undefined reference to `lua_tonumberx'
CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o: In function `hoa_global::GLOBAL_INTENSITY luabind::detail::enum_converter::apply<hoa_global::GLOBAL_INTENSITY>(lua_State*, luabind::detail::by_value<hoa_global::GLOBAL_INTENSITY>, int)':
mode_bindings.cpp:(.text._ZN7luabind6detail14enum_converter5applyIN10hoa_global16GLOBAL_INTENSITYEEET_P9lua_StateNS0_8by_valueIS5_EEi[_ZN7luabind6detail14enum_converter5applyIN10hoa_global16GLOBAL_INTENSITYEEET_P9lua_StateNS0_8by_valueIS5_EEi]+0x25): undefined reference to `lua_tonumberx'
CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o: In function `hoa_battle::private_battle::BATTLE_TYPE luabind::detail::enum_converter::apply<hoa_battle::private_battle::BATTLE_TYPE>(lua_State*, luabind::detail::by_value<hoa_battle::private_battle::BATTLE_TYPE>, int)':
mode_bindings.cpp:(.text._ZN7luabind6detail14enum_converter5applyIN10hoa_battle14private_battle11BATTLE_TYPEEEET_P9lua_StateNS0_8by_valueIS6_EEi[_ZN7luabind6detail14enum_converter5applyIN10hoa_battle14private_battle11BATTLE_TYPEEEET_P9lua_StateNS0_8by_valueIS6_EEi]+0x25): undefined reference to `lua_tonumberx'
CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o: In function `hoa_battle::private_battle::BATTLE_STATE luabind::detail::enum_converter::apply<hoa_battle::private_battle::BATTLE_STATE>(lua_State*, luabind::detail::by_value<hoa_battle::private_battle::BATTLE_STATE>, int)':
mode_bindings.cpp:(.text._ZN7luabind6detail14enum_converter5applyIN10hoa_battle14private_battle12BATTLE_STATEEEET_P9lua_StateNS0_8by_valueIS6_EEi[_ZN7luabind6detail14enum_converter5applyIN10hoa_battle14private_battle12BATTLE_STATEEEET_P9lua_StateNS0_8by_valueIS6_EEi]+0x25): undefined reference to `lua_tonumberx'
CMakeFiles/valyriatear.dir/modes/mode_bindings.cpp.o:mode_bindings.cpp:(.text._ZN7luabind6detail14enum_converter5applyIN7hoa_map11private_map11MAP_CONTEXTEEET_P9lua_StateNS0_8by_valueIS6_EEi[_ZN7luabind6detail14enum_converter5applyIN7hoa_map11private_map11MAP_CONTEXTEEET_P9lua_StateNS0_8by_valueIS6_EEi]+0x25): more undefined references to `lua_tonumberx' follow
CMakeFiles/valyriatear.dir/engine/script/script_read.cpp.o: In function `hoa_script::ReadScriptDescriptor::OpenFile(std::string const&)':
script_read.cpp:(.text+0x33f): undefined reference to `luaL_loadfilex'
script_read.cpp:(.text+0x371): undefined reference to `lua_pcallk'
CMakeFiles/valyriatear.dir/engine/script/script_read.cpp.o: In function `hoa_script::ReadScriptDescriptor::_DoesDataExist(std::string const&, int)':
script_read.cpp:(.text+0x7fe): undefined reference to `lua_getglobal'
CMakeFiles/valyriatear.dir/engine/script/script_read.cpp.o: In function `hoa_script::ReadScriptDescriptor::ReadFunctionPointer(std::string const&)':
script_read.cpp:(.text+0xded): undefined reference to `lua_getglobal'
CMakeFiles/valyriatear.dir/engine/script/script_read.cpp.o: In function `hoa_script::ReadScriptDescriptor::OpenTable(std::string const&, bool)':
script_read.cpp:(.text+0x15cb): undefined reference to `lua_getglobal'
CMakeFiles/valyriatear.dir/engine/script/script_read.cpp.o: In function `hoa_script::ReadScriptDescriptor::DEBUG_PrintLuaStack()':
script_read.cpp:(.text+0x29be): undefined reference to `lua_tonumberx'
CMakeFiles/valyriatear.dir/engine/script/script_read.cpp.o: In function `boost::mpl::if_<boost::is_void<void>, luabind::detail::proxy_function_void_caller<boost::tuples::tuple<boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> >, luabind::detail::proxy_function_caller<void, boost::tuples::tuple<boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >::type luabind::call_function<void>(lua_State*, char const*)':
script_read.cpp:(.text._ZN7luabind13call_functionIvEEN5boost3mpl3if_INS1_7is_voidIT_EENS_6detail26proxy_function_void_callerINS1_6tuples5tupleINS9_9null_typeESB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS7_21proxy_function_callerIS5_SC_EEE4typeEP9lua_StatePKc[_ZN7luabind13call_functionIvEEN5boost3mpl3if_INS1_7is_voidIT_EENS_6detail26proxy_function_void_callerINS1_6tuples5tupleINS9_9null_typeESB_SB_SB_SB_SB_SB_SB_SB_SB_EEEENS7_21proxy_function_callerIS5_SC_EEE4typeEP9lua_StatePKc]+0x44): undefined reference to `lua_getglobal'
CMakeFiles/valyriatear.dir/engine/script/script_read.cpp.o: In function `std::ostream& luabind::adl::operator<< <luabind::adl::object>(std::ostream&, luabind::adl::object_interface<luabind::adl::object> const&)':
script_read.cpp:(.text._ZN7luabind3adllsINS0_6objectEEERSoS3_RKNS0_16object_interfaceIT_EE[_ZN7luabind3adllsINS0_6objectEEERSoS3_RKNS0_16object_interfaceIT_EE]+0x73): undefined reference to `lua_rawlen'
CMakeFiles/valyriatear.dir/engine/script/script_read.cpp.o: In function `std::ostream& luabind::adl::operator<< <luabind::adl::iterator_proxy<luabind::detail::basic_access> >(std::ostream&, luabind::adl::object_interface<luabind::adl::iterator_proxy<luabind::detail::basic_access> > const&)':
script_read.cpp:(.text._ZN7luabind3adllsINS0_14iterator_proxyINS_6detail12basic_accessEEEEERSoS6_RKNS0_16object_interfaceIT_EE[_ZN7luabind3adllsINS0_14iterator_proxyINS_6detail12basic_accessEEEEERSoS6_RKNS0_16object_interfaceIT_EE]+0x73): undefined reference to `lua_rawlen'
CMakeFiles/valyriatear.dir/luabind/src/class_rep.cpp.o: In function `luabind::detail::class_rep::constructor_dispatcher(lua_State*)':
class_rep.cpp:(.text+0x843): undefined reference to `lua_setglobal'
class_rep.cpp:(.text+0x8f1): undefined reference to `lua_callk'
class_rep.cpp:(.text+0x919): undefined reference to `lua_setglobal'
CMakeFiles/valyriatear.dir/luabind/src/class_rep.cpp.o: In function `luabind::detail::class_rep::super_callback(lua_State*)':
class_rep.cpp:(.text+0xac8): undefined reference to `lua_setglobal'
class_rep.cpp:(.text+0xb15): undefined reference to `lua_setglobal'
class_rep.cpp:(.text+0xbb0): undefined reference to `lua_callk'
class_rep.cpp:(.text+0xbcd): undefined reference to `lua_setglobal'
CMakeFiles/valyriatear.dir/luabind/src/class_rep.cpp.o: In function `luabind::detail::class_rep::static_class_gettable(lua_State*)':
class_rep.cpp:(.text+0xd5c): undefined reference to `lua_rawlen'
CMakeFiles/valyriatear.dir/luabind/src/class_rep.cpp.o: In function `luabind::detail::finalize(lua_State*, luabind::detail::class_rep*)':
class_rep.cpp:(.text+0x1083): undefined reference to `lua_callk'
CMakeFiles/valyriatear.dir/luabind/src/object_rep.cpp.o: In function `luabind::detail::destroy_instance(lua_State*)':
object_rep.cpp:(.text+0x273): undefined reference to `lua_callk'
CMakeFiles/valyriatear.dir/luabind/src/object_rep.cpp.o: In function `luabind::detail::(anonymous namespace)::set_instance_value(lua_State*)':
object_rep.cpp:(.text+0x2b6): undefined reference to `lua_getuservalue'
object_rep.cpp:(.text+0x426): undefined reference to `lua_callk'
object_rep.cpp:(.text+0x493): undefined reference to `lua_setuservalue'
CMakeFiles/valyriatear.dir/luabind/src/object_rep.cpp.o: In function `luabind::detail::(anonymous namespace)::get_instance_value(lua_State*)':
object_rep.cpp:(.text+0x51f): undefined reference to `lua_getuservalue'
object_rep.cpp:(.text+0x603): undefined reference to `lua_callk'
CMakeFiles/valyriatear.dir/luabind/src/object_rep.cpp.o: In function `luabind::detail::(anonymous namespace)::dispatch_operator(lua_State*)':
object_rep.cpp:(.text+0x725): undefined reference to `lua_callk'
CMakeFiles/valyriatear.dir/luabind/src/object_rep.cpp.o: In function `luabind::detail::push_new_instance(lua_State*, luabind::detail::class_rep*)':
object_rep.cpp:(.text+0xa54): undefined reference to `lua_setuservalue'
CMakeFiles/valyriatear.dir/luabind/src/pcall.cpp.o: In function `luabind::detail::pcall(lua_State*, int, int)':
pcall.cpp:(.text+0x87): undefined reference to `lua_pcallk'
CMakeFiles/valyriatear.dir/luabind/src/scope.cpp.o: In function `luabind::module_::operator[](luabind::scope)':
scope.cpp:(.text+0x350): undefined reference to `lua_getglobal'
scope.cpp:(.text+0x3c9): undefined reference to `lua_setglobal'
CMakeFiles/valyriatear.dir/luabind/src/create_class.cpp.o: In function `luabind::detail::(anonymous namespace)::copy_member_table(lua_State*)':
create_class.cpp:(.text+0x45): undefined reference to `lua_compare'
create_class.cpp:(.text+0xa1): undefined reference to `lua_compare'
CMakeFiles/valyriatear.dir/luabind/src/create_class.cpp.o: In function `luabind::detail::create_class::stage1(lua_State*)':
create_class.cpp:(.text+0x340): undefined reference to `lua_rawlen'
create_class.cpp:(.text+0x3e6): undefined reference to `lua_setglobal'
CMakeFiles/valyriatear.dir/luabind/src/open.cpp.o: In function `luabind::open(lua_State*)':
open.cpp:(.text+0x60f): undefined reference to `lua_setglobal'
open.cpp:(.text+0x636): undefined reference to `lua_setglobal'
open.cpp:(.text+0x692): undefined reference to `lua_setglobal'
collect2: error: ld returned 1 exit status
make[2]: *** [src/valyriatear] Error 1
make[1]: *** [src/CMakeFiles/valyriatear.dir/all] Error 2
make: *** [all] Error 2
nana03435
 
Posts: 9
Joined: 09 Jun 2012, 22:47

Re: Get errors in Linux compiling

Postby Bertram » 07 Mar 2013, 09:01

Hi nana03435, :)

I suppose you're the same person opening issue #132 on github? https://github.com/Bertram25/ValyriaTear/issues/132

Anyway, I'll copy paste here what I answered there:

thanks for your interest about Valyria Tear :)

Just in case, note that there is a package for Fedora 18 already:
http://rpms.famillecollet.com/rpmphp/zo ... ar&pkgdb=1

Also, here is the cmake invocation used from the buildspec file:
http://ablu.fedorapeople.org/valyriatear.spec

cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DUSE_SYSTEM_LUABIND=ON .

This means, you'll need to activate the system luabind provided if you want it to work, try:

{l Code}: {l Select All Code}
    cmake -DUSE_SYSTEM_LUABIND=ON .
    make clean && make


Could you try that?
User avatar
Bertram
VT Moderator
 
Posts: 1635
Joined: 09 Nov 2012, 12:26

Who is online

Users browsing this forum: No registered users and 1 guest