#!/bin/sh # # 使用方法: # OpenRTM-aistのソースを展開したディレクトリで実行してください。 # インストールするディレクトリへのパスを、引数で指定します。 # ./config.sh ディレクトリパス # # 2008/05/16 木村 新規作成 # 05/22 木村 インストールディレクトリを、引数で指定するように変更 # 引数チェック if [ $# -eq 0 ] then echo "config.sh : There is no argument" exit 1 fi if [ ! -d $1 ] then echo "config.sh : There is no directory" exit 1 fi patch_maker(){ cat <> configure.patch patch < configure.patch # configure実行 ./configure --prefix=$1 \ CXX=/usr/bin/arm-linux-gnu-g++ \ CC=/usr/bin/arm-linux-gnu-gcc \ CXXFLAGS=-s \ CFLAGS=-s \ --build=i386-linux-gnu \ --host=arm-linux-gnu \ --target=arm-linux-gnu \ --with-ace-includes=/usr/arm-linux-gnu/ace \ --with-ace-lib=/usr/arm-linux-gnu/lib \ --with-omniorb=/usr/arm-linux-gnu \ --with-includes=/usr/arm-linux-gnu/include # makeも実行する場合は、コメントを外してください #make #make install exit 0