Open garaemon opened 9 years ago
そうですね,最近気がつきました.
#!/usr/bin/env roseus
(setq ros::*compile-message* t)
(ros::roseus-add-msgs "sensor_msgs")
(setq ros::*compile-message* nil)
roseus-add-msgs-with-compile関数か,roseus-add-msgsに:compile tにするような変更がひつようでしょうか.
この問題そのものは compile-file-if-src-newer-so の引数(この形は多分コンパイルできない)+途中でファイルを消している(roseus.cppからできるroseus.soが消える) https://github.com/jsk-ros-pkg/jsk_roseus/blob/master/roseus/euslisp/roseus.l#L359
が原因におもいます.そもそもcompile-file-if-src-newer.so でファイルを消しているのはなぜでしょうか?
packagename/hogehoge.lをコンパイルした時に、 コンパイルしたファイル名を pckagename_hogehoge.so したくて、 hogehoge.l をコンパイルしてできた hogehoge.so を packagename_hogehoge.so にコピーして、 hogehoge.so を消しているようです。
とりあえずmvしなくても第二引数でディレクトリを指定できそうです.
また,出力先はメッセージファイルのあるdevel/share/roseus/ros/
https://github.com/k-okada/jsk_roseus/commit/a91c18e388aa05559acb478a49c64b36ea9bb1c6
share/roseus/ros/ ここだと、debに入れた場合はパーミッションが必要なところにならないでしょうか?
パッケージのコンパイル時にコンパイルするという作戦はどうでしょうか?
2015年7月17日金曜日、Yohei Kakiuchinotifications@github.comさんは書きました:
share/roseus/ros/ ここだと、debに入れた場合はパーミッションが必要なところにならないでしょうか?
— Reply to this email directly or view it on GitHub https://github.com/jsk-ros-pkg/jsk_roseus/issues/333#issuecomment-122161564 .
✉︎ from iPhone
/opt/ros .. にある.msg から CMAKE_PREFIX_PATH/devel/share .. に .l をつくって,その.l から同じ位置に.soを作るので問題ないと思います.
問題あるとするとjadeで.lが/optにインストールされている場合かと思います.
◉ Kei Okada
On Fri, Jul 17, 2015 at 12:51 PM, Yohei Kakiuchi notifications@github.com wrote:
share/roseus/ros/ ここだと、debに入れた場合はパーミッションが必要なところにならないでしょうか?
— Reply to this email directly or view it on GitHub https://github.com/jsk-ros-pkg/jsk_roseus/issues/333#issuecomment-122161564 .
デフォルトで ros::compile-messages を t にすればそうなると思います.
◉ Kei Okada
2015-07-17 12:53 GMT+09:00 Ryohei Ueda notifications@github.com:
パッケージのコンパイル時にコンパイルするという作戦はどうでしょうか?
2015年7月17日金曜日、Yohei Kakiuchinotifications@github.comさんは書きました:
share/roseus/ros/ ここだと、debに入れた場合はパーミッションが必要なところにならないでしょうか?
— Reply to this email directly or view it on GitHub < https://github.com/jsk-ros-pkg/jsk_roseus/issues/333#issuecomment-122161564>
.
✉︎ from iPhone
— Reply to this email directly or view it on GitHub https://github.com/jsk-ros-pkg/jsk_roseus/issues/333#issuecomment-122161946 .
ros::_compile-messages_をtにするとload package://ができなくなります。
テストコード
エラー
ちなみに、
*compile-messages*
をnilにすれば動く