RefBox のmakeのメモ

# RefBox 本体のインストール
sudo apt-get install -y libmicrohttpd-dev rapidjson-dev libaprutil1-dev libwebsocketpp-dev
cd
git clone https://github.com/robocup-logistics/rcll-refbox.git
cd rcll-refbox
make

あれ,エラーが出た….

/home/robotino/rcll-refbox/src/libs/rest-api/clips-rest-api/clips-rest-api.cpp: In member function ‘Fact llsfrb::ClipsRestApi::gen_fact(CLIPS::Fact::pointer&, bool)’:
/home/robotino/rcll-refbox/src/libs/rest-api/clips-rest-api/clips-rest-api.cpp:179:27: error: ISO C++ forbids converting a string constant to ‘char*’ [-Werror=write-strings]
  179 |   PrintFact(env_->cobj(), (const char *)"ProcPPForm", (struct fact *)fact->cobj(), FALSE, FALSE);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

ここは,CLIPS_OLD_63_APIだったら,(char *)で型変換し,違ったら(const char *)で型変換しています.
元々のソースは(char *)で作業していたようなので,そちらに戻しましょう.

robotino@robotino:~/rcll-refbox$ tail -n 5 etc/buildsys/config.mk 

CLIPS_OLD_63_API = YES

endif # __buildsys_config_mk_

(CLIPS_OLD_63_APIは,どこで定義しているんだろう…。見当たらないような…)

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

*