Closed magic428 closed 4 years ago
Hi magic428,
thanks for the interest in my work and reporting the bug! This one is particularly nasty: Eigen does a lot of smart stuff using aligned memroy in order to speed up matrix operations. However this means they do not interact well with stl containers and also struct declarations. I circumvent this by deactivating the alignment in the CMakeLists, but this seems to be broken for your build environment. Could you:
catkin config --profile limo_release -x _limo_release --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-O3 -c++17"
( in the link they said that compiling with c++17 standard would solve the problem :)
Best, Johannes
PS: The time usage for tracklet_depth_ros_tool is way too much, which is why I added the O3 option (letter not numeric ;) )
Hi magic428,
thanks for the interest in my work and reporting the bug! This one is particularly nasty: Eigen does a lot of smart stuff using aligned memroy in order to speed up matrix operations. However this means they do not interact well with stl containers and also struct declarations. I circumvent this by deactivating the alignment in the CMakeLists, but this seems to be broken for your build environment. Could you:
- Tell me if you used the docker build or the normal build?
- supply the gcc version you are compiling with?
- if version > 7.0 could you try
catkin config --profile limo_release -x _limo_release --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-O3 -c++17"
( in the link they said that compiling with c++17 standard would solve the problem :)
- Clean, build, rerun and tell me the result.
Best, Johannes
PS: The time usage for tracklet_depth_ros_tool is way too much, which is why I added the O3 option (letter not numeric ;) )
Hi, Johannes,
thanks for the reply, and I have tried the "-std=c++17" that you suggested, but it didn't work.
This is the compile Flags:
cd /home/magic/ros_wspace/limo/build_limo_release/demo_keyframe_bundle_adjustment_meta; catkin build --get-env demo_keyframe_bundle_adjustment_meta | catkin env -si /usr/bin/cmake /home/magic/ros_wspace/limo/src/limo/demo_keyframe_bundle_adjustment_meta --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/magic/ros_wspace/limo/devel_limo_release/.private/demo_keyframe_bundle_adjustment_meta -DCMAKE_INSTALL_PREFIX=/home/magic/ros_wspace/limo/install_limo_release -DCMAKE_BUILD_TYPE=RelWithDebInfo '-DCMAKE_CXX_FLAGS=-O3 -std=c++17'; cd -
PS:
I use normal build instead of docker build. My gcc(or g++) version: 7.5.0.
My laptop specs is like this:
sudo lshw -short
H/W path Device Class Description
======================================================
system G7 7590 (08EB)
/0 bus 0F7T8V
/0/0 memory 64KiB BIOS
/0/38 memory 16GiB System Memory
/0/38/0 memory 8GiB SODIMM DDR4 Synchronous 2667 MHz (0.4 ns)
/0/38/1 memory 8GiB SODIMM DDR4 Synchronous 2667 MHz (0.4 ns)
/0/41 memory 384KiB L1 cache
/0/42 memory 1536KiB L2 cache
/0/43 memory 12MiB L3 cache
/0/44 processor Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Best, magic428
Hm i wonder why -DCMAKE_CXX in quotes... Could you try to build it with the docker? In that way we can ensure to habe the same environment when I debug.
Best, Johannes
Hm i wonder why -DCMAKE_CXX in quotes... Could you try to build it with the docker? In that way we can ensure to habe the same environment when I debug.
Best, Johannes
Because -DCMAKE_CXX was set like this:
catkin config --profile limo_release -x _limo_release --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-O3 -std=c++17"
I will try to build in docker next. Thanks Johannes.
Best, magic428
Hi magic,
did you try? If it worked please write a short comment so i can close the issue :)
Best, Johannes
Hi magic,
did you try? If it worked please write a short comment so i can close the issue :)
Best, Johannes
Hi, Johannes,
Sorry for not reply you. I tried build in docker and it works, then I processed normal build successfully on another PC, So I think maybe some dependency broken or not compatible.
Thanks for your work again!
Best, magic428
Hi, johannes,
Thanks for your work. I met such error when running
roslaunch demo_keyframe_bundle_adjustment_meta kitti_standalone.launch
with 04.bag.