Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

compile error #907

Closed
TomohitoAndo opened this issue Sep 25, 2015 · 4 comments
Closed

compile error #907

TomohitoAndo opened this issue Sep 25, 2015 · 4 comments

Comments

@TomohitoAndo
Copy link
Contributor

@syohex

最新版のコンパイル時に以下のようなエラーが出ましたが、何のエラーかわかりますか。

/home/ando/Autoware/ros/src/computing/perception/detection/packages/cv_tracker/nodes/dpm_ocv/dpm_ocv.cpp: In constructor ‘objectDetect::objectDetect()’:
/home/ando/Autoware/ros/src/computing/perception/detection/packages/cv_tracker/nodes/dpm_ocv/dpm_ocv.cpp:76:39: error: ‘use_gpu’ was not declared in this scope
  if (!private_nh_.getParam("use_gpu", use_gpu)) {
                                       ^
[ 93%] Built target points2vscan
Scanning dependencies of target kf_track
[ 93%] Building CXX object computing/perception/detection/packages/cv_tracker/CMakeFiles/kf_track.dir/nodes/kf_track/kf_track.cpp.o
make[2]: *** [computing/perception/detection/packages/cv_tracker/CMakeFiles/dpm_ocv.dir/nodes/dpm_ocv/dpm_ocv.cpp.o] エラー 1
make[1]: *** [computing/perception/detection/packages/cv_tracker/CMakeFiles/dpm_ocv.dir/all] エラー 2
make[1]: *** 未完了のジョブを待っています....
@syohex
Copy link

syohex commented Sep 25, 2015

c5afe0a の修正が不十分です(ifdefで囲むべきところが囲まれていません).

下記のパッチを適用して再度試してみてください.

diff --git a/ros/src/computing/perception/detection/packages/cv_tracker/nodes/dpm_ocv/dpm_ocv.cpp b/ros/src/computing/perception/detection/packages/cv_tracker/nodes/dpm_ocv/dpm_ocv.cpp
index 8a027be..364ec8b 100755
--- a/ros/src/computing/perception/detection/packages/cv_tracker/nodes/dpm_ocv/dpm_ocv.cpp
+++ b/ros/src/computing/perception/detection/packages/cv_tracker/nodes/dpm_ocv/dpm_ocv.cpp
@@ -73,9 +73,11 @@ objectDetect::objectDetect() :
        object_class = "car";
    }

+#if defined(HAS_GPU)
    if (!private_nh_.getParam("use_gpu", use_gpu)) {
        use_gpu = false;
    }
+#endif

    std::string default_model;
    // switch (type) {

@TomohitoAndo
Copy link
Contributor Author

素早い対応ありがとうございます。
上記の修正を加えてコンパイルしてみたところ、通ることが確認できました。
この修正、どうすればいいでしょうか。

@syohex
Copy link

syohex commented Sep 25, 2015

autowarefoundation/autoware#64 に修正を出しました. ご確認ください.

@manato
Copy link
Contributor

manato commented Sep 25, 2015

お手数おかけいたしました。
ありがとうございます。

@syohex syohex closed this as completed Sep 25, 2015
@mitsudome-r mitsudome-r transferred this issue from autowarefoundation/autoware Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants