[openrtm-users 02447] rtm-configについて

3 posts / 0 new
Last post
Kei Okada
Offline
Last seen: Never ago
Joined: 2011-05-17 20:20
[openrtm-users 02447] rtm-configについて

岡田です.

遅ればせながら私もopenrtm 1.1.0 に挑戦中なのですが,
いくつかディレクトリ構成が変わっているのに伴い,
rtm-configで以下の2つの機能(あるいはどちらかだけでも大丈夫でしょうか)があるといいかな,と思いました.

ただ,1.0.0 の rtm-configでもこれらのオプションを対応させなければいけないため,コストは高い気もします.
他によい方法をご存知の方がいたら教えてください.

1) XXXX/include/openrtm-1.1/rtm/idl ディレクトリだけを出力できるようになっていると,idlコンパイラなどへの引数で利用する
g++ -c -O3 -march=native -Wall -pipe -fPIC `pkg-config --cflags
opencv` -I`rtm-config --prefix`/include/rtm/idl -o calib.o calib.cpp
`rtm-config --idlc` `rtm-config --idlflags` -I`rtm-config
--prefix`/include/rtm/idl ../../idl/Img.idl
../../idl/Img.idl:6: No include path in which to find BasicDataType.idl
../../idl/Img.idl:39: Error in look-up of 'RTC::Time': 'RTC' not found
../../idl/Img.idl:47: Error in look-up of 'RTC::Time': 'RTC' not found
../../idl/Img.idl:62: Error in look-up of 'RTC::Time': 'RTC' not found
のようなコードがあったときに便利そうだ.

2) rtm-config --cflagsとすると,-Wall -fPIC
-gなども出力されますが,omniidlなどではこれらのオプションがエラーになる気がします.
rtm-config --cflags-only-I などがあるといいかな,と思いました.
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

Undefined
gbiggs
Offline
Last seen: 6 years 9 months ago
Joined: 2010-08-02 07:51
[openrtm-users 02456] rtm-configについて

岡田様

ジェフです。

提案でありがとうございます。とりあえず、2番を追加しました。

よろしくお願いいたします。

On 14/02/12 03:32, Kei Okada wrote:
> 岡田です.
>
> 遅ればせながら私もopenrtm 1.1.0 に挑戦中なのですが,
> いくつかディレクトリ構成が変わっているのに伴い,
> rtm-configで以下の2つの機能(あるいはどちらかだけでも大丈夫でしょうか)があるといいかな,と思いました.
>
> ただ,1.0.0 の rtm-configでもこれらのオプションを対応させなければいけないため,コストは高い気もします.
> 他によい方法をご存知の方がいたら教えてください.
>
> 1) XXXX/include/openrtm-1.1/rtm/idl ディレクトリだけを出力できるようになっていると,idlコンパイラなどへの引数で利用する
> g++ -c -O3 -march=native -Wall -pipe -fPIC `pkg-config --cflags
> opencv` -I`rtm-config --prefix`/include/rtm/idl -o calib.o calib.cpp
> `rtm-config --idlc` `rtm-config --idlflags` -I`rtm-config
> --prefix`/include/rtm/idl ../../idl/Img.idl
> ../../idl/Img.idl:6: No include path in which to find BasicDataType.idl
> ../../idl/Img.idl:39: Error in look-up of 'RTC::Time': 'RTC' not found
> ../../idl/Img.idl:47: Error in look-up of 'RTC::Time': 'RTC' not found
> ../../idl/Img.idl:62: Error in look-up of 'RTC::Time': 'RTC' not found
> のようなコードがあったときに便利そうだ.
>
> 2) rtm-config --cflagsとすると,-Wall -fPIC
> -gなども出力されますが,omniidlなどではこれらのオプションがエラーになる気がします.
> rtm-config --cflags-only-I などがあるといいかな,と思いました.
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

root
Offline
Last seen: 3 days 4 hours ago
Joined: 2009-06-23 14:31
[openrtm-users 02472] rtm-configについて

岡田先生

安藤です

rtm-configにpkg-config風のオプションを追加しました。
また、configure 内で利用している変数も利用できるようにしました。

$ ./rtm-config
Usage: rtm-config [OPTIONS]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
[--data-prefix[=DIR]]
[--version]
[--cxx]
[--cflags]
[--cflags-only-I]
[--cflags-only-other]
[--libs]
[--libs-only-l]
[--libs-only-L]
[--libs-only-other]
[--libdir]
[--orb]
[--idlc]
[--idlflags]
[--idlflags-only-I]
[--idlflags-only-other]
Advanced Options:
[--rtm-includedir]
[--rtm-idldir]
[--rtm-libdir]
[--rtm-datadir]
[--rtm-rtcdir]
[--rtm-ecdir]
[--rtm-rtmdir]
[--rtm-svcdir]
[--rtm-docdir]
[--rtm-exampledir]
[--coil-includedir]

変更はtrunkにコミットしましたが、近いうちにRELENG_1_0にもマージします。
少々お待ちください。
http://www.openrtm.org/redmine/projects/openrtm-aist-cxx/repository/revisions/2330

他にご意見等ありましたらよろしくおねがいします。

2012年2月14日3:32 Kei Okada :
> 岡田です.
>
> 遅ればせながら私もopenrtm 1.1.0 に挑戦中なのですが,
> いくつかディレクトリ構成が変わっているのに伴い,
> rtm-configで以下の2つの機能(あるいはどちらかだけでも大丈夫でしょうか)があるといいかな,と思いました.
>
> ただ,1.0.0 の rtm-configでもこれらのオプションを対応させなければいけないため,コストは高い気もします.
> 他によい方法をご存知の方がいたら教えてください.
>
> 1) XXXX/include/openrtm-1.1/rtm/idl ディレクトリだけを出力できるようになっていると,idlコンパイラなどへの引数で利用する
> g++ -c -O3 -march=native -Wall -pipe -fPIC `pkg-config --cflags
> opencv` -I`rtm-config --prefix`/include/rtm/idl -o calib.o calib.cpp
> `rtm-config --idlc` `rtm-config --idlflags` -I`rtm-config
> --prefix`/include/rtm/idl ../../idl/Img.idl
> ../../idl/Img.idl:6: No include path in which to find BasicDataType.idl
> ../../idl/Img.idl:39: Error in look-up of 'RTC::Time': 'RTC' not found
> ../../idl/Img.idl:47: Error in look-up of 'RTC::Time': 'RTC' not found
> ../../idl/Img.idl:62: Error in look-up of 'RTC::Time': 'RTC' not found
> のようなコードがあったときに便利そうだ.
>
> 2) rtm-config --cflagsとすると,-Wall -fPIC
> -gなども出力されますが,omniidlなどではこれらのオプションがエラーになる気がします.
> rtm-config --cflags-only-I などがあるといいかな,と思いました.
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users

Log in or register to post comments

Download

latest Releases : 2.0.0-RELESE

2.0.0-RELESE Download page

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK