Ask Your Question
0

aws s3 사용 문의

asked 2017-10-26 17:11:42 +0900

steve gravatar image

안녕하세요. ifun 엔진에서 aws s3 및 dynamodb 를 사용을 하려고 합니다.

aws 가이드를 따라서 설치를 했습니다.

http://docs.aws.amazon.com/sdk-for-cp...

그리고 http://docs.aws.amazon.com/sdk-for-cp... 설명 대로 make 파일을 수정을 했습니다.

set(CMAKE_PREFIX_PATH "/home/rgame/awslee/sdk_build")
find_package(aws-sdk-cpp)

# Link to the SDK shared libraries.
add_definitions(-DUSE_IMPORT_EXPORT)

# The libraries used by your executable.
# "aws-cpp-sdk-s3" is just an example.
target_link_libraries(${PROJECT_NAME} aws-cpp-sdk-s3)

이렇게 해서 make 하면 에러가 발생이 됩니다. 고치기 전에는 make 가 잘 되는 상태였습니다.

개발환경을

ubuntu 16.04 입니다.

edit retag flag offensive close merge delete

5 answers

Sort by » oldest newest most voted
0

answered 2017-10-27 14:52:01 +0900

steve gravatar image

아래와 하면 빌드 됩니다.

#find_package(AWSSDK)
set(CMAKE_PREFIX_PATH "/home/rgame/awslee/sdk_build")
find_package(aws-sdk-cpp)

# Link to the SDK shared libraries.
add_definitions(-DUSE_IMPORT_EXPORT)

# libsodium 라이브러리를 찾아서 LIBSODIUM 에 저장한다.
find_library(
        DynamoDB
        NAMES libaws-cpp-sdk-dynamodb.so
        HINTS /home/rgame/awslee/sdk_build/aws-cpp-sdk-dynamodb
        REQUIRED)

# 위의 LIBSODIUM 에 저장되어있는 경로를 링크 대상으로 추가한다.
target_link_libraries(${PROJECT_NAME} ${DynamoDB})
edit flag offensive delete link more
0

answered 2017-10-27 14:37:57 +0900

steve gravatar image

updated 2017-10-27 14:39:39 +0900

  1. CMakeLists.txt 의 가장 아래에 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic") 추가를 하고 다시 make 한 결과입니다.

    -VirtualBox:~/workdir/hello_world/hello_world-build/debug$ make [ 6%] Built target internal_create_launchers [ 10%] Built target internal_import_manifest_dirs [ 20%] Built target internal_import_resource_dirs [ 24%] Building CXX object src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:12:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/common.h:457:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:30:31: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(Character); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:147:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:31:26: error: extra ‘;’ [-Werror=pedantic] DECLARE_CLASS_PTR(User); ^ In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0, from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10: /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:128:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:476:28: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(Character); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:512:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:836:23: error: extra ‘;’ [-Werror=pedantic] DEFINE_CLASS_PTR(User); ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:854:2: error: extra ‘;’ [-Werror=pedantic] }; ^ /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:1663:2: error: extra ‘;’ [-Werror=pedantic] }; // namespace hello_world ^ cc1plus: all warnings being treated as errors src/CMakeFiles/hello_world.dir/build.make:203: recipe for target 'src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o' failed make[2]: * [src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o] Error 1 CMakeFiles/Makefile2:228: recipe for target 'src/CMakeFiles/hello_world.dir/all' failed make[1]: [src/CMakeFiles/hello_world.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: ** [all] Error 2 VirtualBox:~/workdir/hello_world/hello_world-build/debug$

edit flag offensive delete link more

Comments

src/CMakeLists.txt 에 추가하신 게 맞는지요?

Seunghyun gravatar imageSeunghyun ( 2017-10-27 14:53:30 +0900 )edit

만약 src/CMakeLists.txt 에 추가했는데도 그렇다면 CMakeLists.txt 와 src/CMakeLists.txt 를 seunghyun@ifunfactory.com 으로 보내주실 수 있을까요?

Seunghyun gravatar imageSeunghyun ( 2017-10-27 14:55:06 +0900 )edit
0

answered 2017-10-27 14:35:32 +0900

steve gravatar image

updated 2017-10-27 14:38:43 +0900

g++ --version 결과 입니다.

VirtualBox:~$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

VirtualBox:~$
edit flag offensive delete link more
0

answered 2017-10-26 20:26:47 +0900

steve gravatar image
~/workdir/hello_world/hello_world-build/debug$ make
[  6%] Built target internal_create_launchers
[ 10%] Built target internal_import_manifest_dirs
[ 20%] Built target internal_import_resource_dirs
[ 24%] Building CXX object src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o
In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:12:0,
                 from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10:
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/common.h:457:2: error: extra ‘;’ [-Werror=pedantic]
 };  // namespace hello_world
  ^
In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0,
                 from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10:
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:30:31: error: extra ‘;’ [-Werror=pedantic]
   DECLARE_CLASS_PTR(Character);
                               ^
In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:13:0,
                 from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10:
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/character.h:147:2: error: extra ‘;’ [-Werror=pedantic]
 };  // namespace hello_world
  ^
In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0,
                 from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10:
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:31:26: error: extra ‘;’ [-Werror=pedantic]
   DECLARE_CLASS_PTR(User);
                          ^
In file included from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/../hello_world_object.h:14:0,
                 from /home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:10:
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/../object_model/user.h:128:2: error: extra ‘;’ [-Werror=pedantic]
 };  // namespace hello_world
  ^
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:476:28: error: extra ‘;’ [-Werror=pedantic]
 DEFINE_CLASS_PTR(Character);
                            ^
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:512:2: error: extra ‘;’ [-Werror=pedantic]
 };
  ^
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:836:23: error: extra ‘;’ [-Werror=pedantic]
 DEFINE_CLASS_PTR(User);
                       ^
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:854:2: error: extra ‘;’ [-Werror=pedantic]
 };
  ^
/home/rcat/workdir/hello_world/hello_world-source/src/object_model/hello_world_object.cc:1663:2: error: extra ‘;’ [-Werror=pedantic]
 };  // namespace hello_world
  ^
cc1plus: all warnings being treated as errors
src/CMakeFiles/hello_world.dir/build.make:203: recipe for target 'src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o' failed
make[2]: *** [src/CMakeFiles/hello_world.dir/object_model/hello_world_object.cc.o] Error 1
CMakeFiles/Makefile2:228: recipe for target 'src/CMakeFiles/hello_world.dir/all' failed
make[1]: *** [src/CMakeFiles/hello_world.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
edit flag offensive delete link more

Comments

  1. "g++ --version" 명령의 결과를 공유해 주시면 감사하겠습니다.
  2. CMakeLists.txt 의 가장 아래에 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic") 를 추가하여 해결되는지 확인 부탁드립니다.

감사합니다.

Seunghyun gravatar imageSeunghyun ( 2017-10-27 11:47:50 +0900 )edit
0

answered 2017-10-26 17:25:35 +0900

Seunghyun gravatar image

안녕하세요. 아이펀팩토리입니다.

빌드 에러 발생 시 출력된는 내용을 올려 주실 수 있으신지요?

edit flag offensive delete link more

Comments

너무 길어서 그런지 add comment 로 작성이 안 되어서 answer 로 달았습니다.

steve gravatar imagesteve ( 2017-10-26 20:28:12 +0900 )edit

엔진 버전은 Engine version: 1.0.0-2401xenial 입니다.

steve gravatar imagesteve ( 2017-10-26 20:32:02 +0900 )edit

CMakeLists.txt 파일은 src 폴더에 있는 파일을 수정 했습니다. hello_world/hello_world-source/src

steve gravatar imagesteve ( 2017-10-26 20:36:19 +0900 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-10-26 17:11:42 +0900

Seen: 141 times

Last updated: Oct 27 '17