お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2018-06-17 10:11:04

satoggg
新しいメンバ
登録日: 2018-06-17

agent2dがインストールできません

https://osdn.jp/projects/rctools/downloads/55186/agent2d-3.1.1.tar.gz/
ここからダウンロードして

$ tar xzvf agent2d-3.1.1.tar.gz
$ cd agent2d-3.1.1
$ ./configure
$ make

と入力したのですが、makeが通りません。

オフライン

 

#2 2018-06-17 10:13:39

array
メンバ
登録日: 2007-03-13

Re: agent2dがインストールできません

「通りません」だけでは何が何だかわかりません。
エラーメッセージとか、その他必要となるもの(Ubuntuのバージョン・gccなどのバージョン等)を記入して下さい。

オフライン

 

#3 2018-06-17 10:54:51

satoggg
新しいメンバ
登録日: 2018-06-17

Re: agent2dがインストールできません

本当にすみませんでしたm(_ _)m

エラーメッセージ
error: ‘constexpr’ needed for in-class initialization of static data member ‘const double {anonymous}::DeflectingEvaluator::not_shoot_ball_eval’ of non-integral type [-fpermissive]
     static const double not_shoot_ball_eval = 10000;

Ubuntuのバージョン
Ubuntu 18.04 LTS

オフライン

 

#4 2018-06-17 11:00:48

satoggg
新しいメンバ
登録日: 2018-06-17

Re: agent2dがインストールできません

何度もすみませんm(_ _)m
エラーメッセージのコピペの範囲を間違えていたかもしれませんので
もう一度記載させていただきます。

chain_action/tackle_generator.cpp:71:25: error: ‘constexpr’ needed for in-class initialization of static data member ‘const double {anonymous}::DeflectingEvaluator::not_shoot_ball_eval’ of non-integral type [-fpermissive]
     static const double not_shoot_ball_eval = 10000;

オフライン

 

#5 2018-06-17 17:19:39

array
メンバ
登録日: 2007-03-13

Re: agent2dがインストールできません

遠慮しないでエラーメッセージをどーんと全部載せないとわからないです。全部プログラム内でのエラーなので何かソースをいじってなければ別の問題だと思いますので。
build-essentialとかは入っているんですね。
BBCodeのヘルプ(BBCodeってリンクが下にありますね)をみて、「コード」にして置くと見やすいです。

オフライン

 

#6 2018-06-17 17:27:30

satoggg
新しいメンバ
登録日: 2018-06-17

Re: agent2dがインストールできません

↓エラーメッセージです。
 

コード:

average_formation.cpp: In member function ‘bool AverageConfGenerator::openTargetFormation(const char*)’:
average_formation.cpp:98:12: error: cannot convert ‘rcsc::Formation::Ptr {aka boost::shared_ptr<rcsc::Formation>}’ to ‘bool’ in return
     return M_target_formation;

↓問題と思われる箇所です。
 

コード:

#include <rcsc/formation/formation.h>
#include <rcsc/formation/formation_dt.h>

#include <iostream>
#include <fstream>

using namespace rcsc;
using namespace rcsc::formation;

class AverageConfGenerator {
private:
    Formation::Ptr M_base_formation;
    Formation::Ptr M_target_formation;
public:

private:
    Formation::Ptr openFormation( const char * filepath );

    bool openBaseFormation( const char * filepath );
    bool openTargetFormation( const char * filepath );

public:

    bool generate( const char * base_filepath,
                   const char * target_filepath );
};

オフライン

 

#7 2018-06-17 17:31:35

satoggg
新しいメンバ
登録日: 2018-06-17

Re: agent2dがインストールできません

Ubuntuのバージョンは18.04 LTS です。
gccのバージョンは7.3.0です。
カーネルのバージョンは4.15.0です。
glibcのバージョンは2.27です。

オフライン

 

#8 2018-06-17 17:51:02

array
メンバ
登録日: 2007-03-13

Re: agent2dがインストールできません

ここをみて、librcscを再作成した方がいいのでは?
エラーがrcscの戻り値が違うという風になっていますよね。

オフライン

 

Board footer

Powered by FluxBB