FangGet / BundleFusion_Ubuntu_Pangolin

a porting for BundleFusion working on ubuntu, with Pangolin as visualizer
Other
122 stars 32 forks source link

Failed to build !! #9

Closed wk738126046 closed 3 years ago

wk738126046 commented 3 years ago

Hi, thanks for the great job. I can't build successfully like this:

_In file included from /home//BundleFusion/include/mLib/include/mLibCore.h:150:0, from /home//BundleFusion/include/mLib.h:7, from /home/BundleFusion/include/stdafx.h:2, from /home//BundleFusion/src/Bundler.cpp:1: /usr/local/include/opencv2/viz/types.hpp: At global scope: /home//BundleFusion/include/mLib/include/core-util/keycodes.h:22:31: error: expected identifier before numeric constant**

define KEY_UP 38

/home//BundleFusion/include/mLib/include/core-util/keycodes.h:22:31: error: expected ‘}’ before numeric constant /home//BundleFusion/include/mLib/include/core-util/keycodes.h:22:31: error: expected unqualified-id before numeric constant In file included from /usr/local/include/opencv2/viz.hpp:49:0, from /usr/local/include/opencv2/opencv.hpp:104, from /home//BundleFusion/include/RGBDSensor.h:7, from /home//BundleFusion/include/CUDAImageManager.h:2, from /home/*/BundleFusion/src/Bundler.cpp:7: /usr/local/include/opencv2/viz/types.hpp:295:34: error: expected ‘)’ before ‘action’ KeyboardEvent(Action action, const String& symbol, unsigned char code, int modifiers); /usr/local/include/opencv2/viz/types.hpp:297:13: error: ‘Action’ does not name a type; did you mean ‘ctime’? Action action; ctime /usr/local/include/opencv2/viz/types.hpp:331:1: error: expected declaration before ‘}’ token } / namespace cv */_

the environment is ubuntu16/GCC7 /opencv3.4/CUDA10.1. please how to fix it ?? thanks a lot.

FangGet commented 3 years ago

never came up with this problem, it seems relates to opencv viz problem. my compile env is showed at the screenshot: image

jcyhcs commented 2 years ago

@wk738126046
i also got this problem, how can you resolve it? please tell me! thx

ph-code-repo commented 2 years ago

@jcyhcs ensuring you have opencv4.3.0 or higher worked for me. I also had to enforce gcc version 6 to compile the CUDA functions properly.