build make 시 오류 문의

asked 2019-11-13 17:23:11 +0900

yongjupark gravatar image

안녕하세요 현재 정상적으로 ifun server를 이용하고 있는 프로젝트 source를 svn으로 다른 컴퓨터에서 사용하려고 하고있습니다.

project-source폴더 전체를 커밋 후 다른 컴퓨터에서 해당 project-source폴더를 받은 후 빌드를 진행하였으나,

make 도중에 에러가 발생하여 문의드립니다. 에러 내용은 아래와 같습니다.

root@server-XPS-8920:~# cd sfrserver-build/debug root@server-XPS-8920:~/sfrserver-build/debug# make Scanning dependencies of target internal_create_launchers [ 1%] Generating sfrserver.matchmaker-launcher [ 3%] Generating sfrserver.matchmaker-local [ 5%] Generating sfrserver.game-launcher [ 7%] Generating sfrserver.game-local [ 9%] Generating sfrserver.lobby-launcher [ 11%] Generating sfrserver.lobby-local [ 11%] Built target internal_create_launchers Scanning dependencies of target internal_import_manifest_dirs [ 12%] Generating manifests/matchmaker/MANIFEST.json [ 14%] Generating manifests/game/MANIFEST.json [ 16%] Generating manifests/lobby/MANIFEST.json [ 16%] Built target internal_import_manifest_dirs Scanning dependencies of target internal_import_resource_dirs [ 18%] Generating resources/game_data [ 20%] Generating resources/client_data [ 22%] Generating resources/json_protocols [ 22%] Built target internal_import_resource_dirs Scanning dependencies of target funapi_utf8_file_check [ 24%] Checking if files are valid UTF-8... [ 24%] Built target funapi_utf8_file_check [ 25%] Generating funapi/network/fun_message.pb.cc, funapi/network/fun_message.pb.h, funapi/network/fun_message_pb2.py [ 27%] Generating funapi/distribution/fun_dedicated_server_rpc_message.pb.cc, funapi/distribution/fun_dedicated_server_rpc_message.pb.h, funapi/distribution/fun_dedicated_server_rpc_message_pb2.py [ 29%] Generating funapi/distribution/fun_rpc_message.pb.cc, funapi/distribution/fun_rpc_message.pb.h, funapi/distribution/fun_rpc_message_pb2.py [ 31%] Generating funapi/service/multicast_message.pb.cc, funapi/service/multicast_message.pb.h, funapi/service/multicast_message_pb2.py [ 33%] Generating funapi/service/redirect_message.pb.cc, funapi/service/redirect_message.pb.h, funapi/service/redirect_message_pb2.py [ 35%] Generating funapi/management/maintenance_message.pb.cc, funapi/management/maintenance_message.pb.h, funapi/management/maintenance_message_pb2.py [ 37%] Generating funapi/network/ping_message.pb.cc, funapi/network/ping_message.pb.h, funapi/network/ping_message_pb2.py [ 38%] Generating sfrserver_rpc_messages.pb.cc, sfrserver_rpc_messages.pb.h, sfrserver_rpc_messages_pb2.py [ 40%] Generating sfrserver_loggers.h, sfrserver_loggers.cc, /root/sfrserver-source/mono/ActivityLog/sfrserver_loggers.cs [ 42%] Generating sfrserver_messages.pb.cc, sfrserver_messages.pb.h, sfrserver_messages_pb2.py [ 44%] Generating sfrserver_dedicated_server_rpc_messages.pb.cc, sfrserver_dedicated_server_rpc_messages.pb.h, sfrserver_dedicated_server_rpc_messages_pb2.py Scanning dependencies of target sfrserver [ 46%] Building CXX object src/CMakeFiles/sfrserver.dir/object_model/sfrserver_object.cc.o In file included from /usr/include/funapi/system/logging.h:16:0, from /usr/include/funapi.h:56, from /root/sfrserver-source/src/object_model/../object_model/common.h:17, from /root/sfrserver-source/src/object_model/../sfrserver_object.h:12, from /root/sfrserver-source/src/object_model/sfrserver_object.cc:10: /root/sfrserver-source/src/object_model/../object_model/common.h: In member function ‘ValueType sfrserver::MapRefBase<keytype, valuetype="">::GetAt(const KeyType&) const’: /root/sfrserver-source/src/object_model/../object_model/common.h:349:19: error: ‘class fun::AttributeValue’ has no member named ‘IsNull’ LOG_IF(FATAL, r.IsNull()) << "wrong key: " << key; ^ In file included from /root/sfrserver-source/src/object_model/../sfrserver_object.h:12:0, from /root/sfrserver-source/src/object_model/sfrserver_object.cc:10: /root/sfrserver-source/src/object_model/../object_model/common.h: In member function ‘void sfrserver::MapRefBase<keytype, valuetype="">::SetAt(const KeyType&, const ValueType&)’: /root/sfrserver-source/src/object_model/../object_model/common.h:359:41: error: no matching function for call to ‘fun::Object::SetMapElement(const string&, fun::AttributeValue, fun::AttributeValue)’ AttributeValue(ConvertTo<>(value))); ^ In file included from /usr/include/funapi.h:32:0, from /root/sfrserver-source/src/object_model/../object_model/common.h:17, from /root/sfrserver-source/src/object_model/../sfrserver_object.h:12, from /root/sfrserver-source ... (more)

edit retag flag offensive close merge delete

Comments

다음 두가지 내용에 대한 확인을 부탁드립니다. 1. 이전에 정상적으로 동작하던 서버와 빌드에 실패하는 서버에 설치된 아이펀 엔진 버전이 동일한지 확인하시고, 2. ~/sfrserver-build 디렉터리(빌드디렉터리)를 삭제. 3. ~/sfrserver-source/setup_build_environment --type=makefile 실행해서 빌드 디렉터리를 다시 생성. 4. 빌드 진행.

jwlee gravatar imagejwlee ( 2019-11-14 11:24:47 +0900 )edit

위와 같이 진행했을 때에도 빌드에 실패한다면, ~/sfrserver-source/src/object_model 디렉터리의 파일 중 확장자가 json 인 파일만 남기고 모두 삭제한 다음에 다시 빌드 해 봐 주시기 바랍니다.

jwlee gravatar imagejwlee ( 2019-11-14 11:26:17 +0900 )edit

네 확인 감사합니다.

yongjupark gravatar imageyongjupark ( 2019-11-14 11:56:07 +0900 )edit