hints for installing Fawkes on Ubuntu (including Robotino 3)
If you installed OpenRobotinoAPI1 and OpenRobotinoAPI2, please change IF blocks of API1 and API2 in mk file.
Robotino 3 and Fedora don’t require this modify because they don’t have OpenRobotinoAPI1.
* Maybe replace from “else” to “endif” can avoid this problem.
vi ~/fawkes-robotino/fawkes/src/plugins/robotino/robotino.mk
from
ifneq ($(wildcard $(OPENROBOTINOAPI_DIR)/1/include/robotinoapi_version.h),) HAVE_OPENROBOTINO=1 OPENROBOTINO_API_VERSION = 1 CFLAGS_OPENROBOTINO = -DHAVE_OPENROBOTINO_API_1 \ -Wno-reorder -Wno-unused-function -Wno-delete-non-virtual-dtor \ -I$(OPENROBOTINOAPI_DIR)/1/include -I$(OPENROBOTINOAPI_DIR)/share/include LDFLAGS_OPENROBOTINO = -L$(OPENROBOTINOAPI_DIR)/1/lib/linux -L$(OPENROBOTINOAPI_DIR)/share/lib \ -lrec_robotino_com -lrec_core_lt \ -lrec_iocontrol_robotstate -lrec_iocontrol_remotestate else ifneq ($(wildcard $(OPENROBOTINOAPI2_DIR)/api2/include/rec/robotino/api2/rec_robotino_api2_version.h),) HAVE_OPENROBOTINO=1 OPENROBOTINO_API_VERSION = 2 CFLAGS_OPENROBOTINO = -DHAVE_OPENROBOTINO_API_2 \ -I$(OPENROBOTINOAPI2_DIR)/api2/include -I$(OPENROBOTINOAPI2_DIR)/common/include LDFLAGS_OPENROBOTINO = -L$(OPENROBOTINOAPI2_DIR)/api2/lib -L$(OPENROBOTINOAPI2_DIR)/common/lib \ -lrec_robotino_api2 endif endif
to
ifneq ($(wildcard $(OPENROBOTINOAPI2_DIR)/api2/include/rec/robotino/api2/rec_robotino_api2_version.h),) HAVE_OPENROBOTINO=1 OPENROBOTINO_API_VERSION = 2 CFLAGS_OPENROBOTINO = -DHAVE_OPENROBOTINO_API_2 \ -I$(OPENROBOTINOAPI2_DIR)/api2/include -I$(OPENROBOTINOAPI2_DIR)/common/include LDFLAGS_OPENROBOTINO = -L$(OPENROBOTINOAPI2_DIR)/api2/lib -L$(OPENROBOTINOAPI2_DIR)/common/lib \ -lrec_robotino_api2 else ifneq ($(wildcard $(OPENROBOTINOAPI_DIR)/1/include/robotinoapi_version.h),) HAVE_OPENROBOTINO=1 OPENROBOTINO_API_VERSION = 1 CFLAGS_OPENROBOTINO = -DHAVE_OPENROBOTINO_API_1 \ -Wno-reorder -Wno-unused-function -Wno-delete-non-virtual-dtor \ -I$(OPENROBOTINOAPI_DIR)/1/include -I$(OPENROBOTINOAPI_DIR)/share/include LDFLAGS_OPENROBOTINO = -L$(OPENROBOTINOAPI_DIR)/1/lib/linux -L$(OPENROBOTINOAPI_DIR)/share/lib \ -lrec_robotino_com -lrec_core_lt \ -lrec_iocontrol_robotstate -lrec_iocontrol_remotestate endif endif
コメントを残す