RefBoxの更新(2023/04/25版)
大会用の作業メモ
Fedora のrefbox をmakeしたらエラーが出たので,その対処のメモ.
まずは準備.
cd git clone https://github.com/robocup-logistics/rcll-refbox cd rcll-refbox make all -j4
--> Omitting APR based password verification support (apr-util not found) --- Compiling clips-rest-api/clips-rest-api.cpp (C++) /home/refbox/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/refbox/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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~
clips-rest-api でエラーが出るけど,apr-utilが見つからないって言っているので,入れてみる.
sudo dnf install apr-util-devel
-Werror=write-stringsに関しては,refboxのmakeエラー(2023/02/10版)を参照.
/etc/buildsys/config.mk に CFLAGS_BASE += -Wno-write-strings CLIPS_OLD_63_API = TRUE を追加.
Fedora33だから,gccが古いままだったんですね.
コメントを残す