前提・実現したいこと
ODEをUbuntuにインストールしたい
発生している問題・エラーメッセージ
ode-0.11.1.tar.gzを解凍し、展開先フォルダで
sh autogen.sh
./configure --enable-double-precision
してmakeしたところ
ISO C++ forbids converting a string constant to ‘char*’
エラーが発生
Making all in include make[1]: ディレクトリ '/home/{ユーザー名}/ode/include' に入ります Making all in ode make[2]: ディレクトリ '/home/{ユーザー名}/ode/include/ode' に入ります make[2]: 'all' に対して行うべき事はありません. make[2]: ディレクトリ '/home/{ユーザー名}/ode/include/ode' から出ます Making all in drawstuff make[2]: ディレクトリ '/home/{ユーザー名}/ode/include/drawstuff' に入ります make[2]: 'all' に対して行うべき事はありません. make[2]: ディレクトリ '/home/{ユーザー名}/ode/include/drawstuff' から出ます make[2]: ディレクトリ '/home/{ユーザー名}/ode/include' に入ります make[2]: 'all-am' に対して行うべき事はありません. make[2]: ディレクトリ '/home/{ユーザー名}/ode/include' から出ます make[1]: ディレクトリ '/home/{ユーザー名}/ode/include' から出ます Making all in drawstuff make[1]: ディレクトリ '/home/{ユーザー名}/ode/drawstuff' に入ります Making all in src make[2]: ディレクトリ '/home/{ユーザー名}/ode/drawstuff/src' に入ります /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../ode/src -I../../include -DDEFAULT_PATH_TO_TEXTURES='"../../drawstuff/textures/"' -DdDOUBLE -g -O2 -MT drawstuff.lo -MD -MP -MF .deps/drawstuff.Tpo -c -o drawstuff.lo drawstuff.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../ode/src -I../../include -DDEFAULT_PATH_TO_TEXTURES=\"../../drawstuff/textures/\" -DdDOUBLE -g -O2 -MT drawstuff.lo -MD -MP -MF .deps/drawstuff.Tpo -c drawstuff.cpp -o drawstuff.o In file included from ../../include/ode/ode.h:40:0, from drawstuff.cpp:44: ../../include/ode/misc.h:59:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] FILE *f = (const char*)stdout); ^ ../../include/ode/misc.h:59:16: error: could not convert ‘(const char*)stdout’ from ‘const char*’ to ‘FILE* {aka _IO_FILE*}’ FILE *f = (const char*)stdout); ^ Makefile:427: recipe for target 'drawstuff.lo' failed make[2]: *** [drawstuff.lo] Error 1 make[2]: ディレクトリ '/home/{ユーザー名}/ode/drawstuff/src' から出ます Makefile:367: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: ディレクトリ '/home/{ユーザー名}/ode/drawstuff' から出ます Makefile:504: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1
補足情報(FW/ツールのバージョンなど)
ODE-0.11.1
Ubuntu 18.04.2 LTS
を使用
あなたの回答
tips
プレビュー