
Ubuntu日本語フォーラム

ログインしていません。
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が通りません。
オフライン
「通りません」だけでは何が何だかわかりません。
エラーメッセージとか、その他必要となるもの(Ubuntuのバージョン・gccなどのバージョン等)を記入して下さい。
オフライン
本当にすみませんでした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
オフライン
何度もすみません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;
オフライン
遠慮しないでエラーメッセージをどーんと全部載せないとわからないです。全部プログラム内でのエラーなので何かソースをいじってなければ別の問題だと思いますので。
build-essentialとかは入っているんですね。
BBCodeのヘルプ(BBCodeってリンクが下にありますね)をみて、「コード」にして置くと見やすいです。
オフライン
↓エラーメッセージです。
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 );
};オフライン
Ubuntuのバージョンは18.04 LTS です。
gccのバージョンは7.3.0です。
カーネルのバージョンは4.15.0です。
glibcのバージョンは2.27です。
オフライン